Personalized Community is here!
Quickly customize your community to find the content you seek.
Have questions on moving to the cloud? Visit the Dynamics 365 Migration Community today! Microsoft’s extensive network of Dynamics AX and Dynamics CRM experts can help.
2021 Release Wave 1Discover the latest updates and new features to Dynamics 365 planned April 2021 through September 2021.
Release overview guides and videos Release Plan | Preview 2021 Release Wave 1 Timeline
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Program | Finance and Operations TechTalks | Customer Engagement TechTalks | Upcoming TechTalks | All TechTalks
I have a workflow for approving Leave Request but getting the error;
Stopped (error): X++ Exception: The hierarchy provider did not return any users. at SysWorkflowHierarchyProvider-resolveSysWorkflowHierarchyProvider-resolveHierarchySysWorkflowQueue-resume
This happens after the manager as approved the workflow as shown in screenshot;
I assume its something to do with the way the workflow could be setup? However there isn't a way to say 'Stop when its been approved'
Anyone have any ideas?
What is the position title for the Manager? Is it the same mentioned in the screenshot?
No it isn't, but we definitely don't want the workflow to keep going until it gets to the CEO for every leave request. Is there not an option for once it to be "Approved" it stops and makes the leave request approved?
Or do you need to make a workflow for every hierarchy?
E.g If the hierarchy is Employee -> Manager -> CEO. The employee holiday should be approved by the Manager and stop, the Managers should be approved by the CEO and stop, and the CEO's auto approved.
I do think the issue with how the workflow/hierarchy is structured as this Manager is the last person in his particular hierarchy I believe. Do you know the best way to structure it?
The easiest solution is to define stop condition based on Line manager level. Condition below stops always for first manager in the line. Meaning when the direct manager approves the request, the workflow is finished. You only need to be careful about CEO, because he has no direct manager. For that scenario you need to create some condition in the workflow and use different workflow thread for CEO approval.
Thanks! That has done the trick! For some reason the notification of it being "Approved" is failing due to a translation error but I have disabled that for now.
I have bumped into another problem now that the Manager has approved the task and the workflow status is completed.
How ever for some reason its still locked as submitted and hasen't filtered through to here;
Any ideas on what could be stopping it?
Does this happen for all the leave request that go through this workflow or just this one?
It seems to be all of them. I do only have it hooked up to these two individuals currently as I am just in test. I have an auto-approval one which seems to be work correctly and I can view the approved time off. I will attach some images of the workflow incase someone spots anything...
Can you share more information about this conditional decision you have in there?
Some screenshots could help.
Escalation and time limit are un ticked.
Also just to add, really all I am trying to do is make it so an employee can request a holiday -> Manager can approve or deny based on the position hierarchy.
If i am going about this the wrong way please let me know
Leave request (manager approval)-18.104.22.168.xml
Can you try this workflow configuration then?
Hope I understood the requirement correctly.
And for the CEO I would create a conditional decision, before the approval step that is included in the configuration provided. So if it's CEO --> auto-approve or send it to HR, or whatever your business it. If not, go into the approval step for the line manager.
That has worked perfectly! Thank you for your help.
Would you be able to answer a final question? Will the workflow work in this way;
3 users: Bob -> Jim -> Tom
If Bob requests a holiday, only Jim has to approve it.
If Jim requests a holiday, only tom has to approve it.
For the CEO I am going to make a seperate leave type called "Director Holiday" so it should be ok.
Yes, your assumption is correct.
The approval will go only to the direct manager.
Glad I could help!
Business Applications communities