web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Workflow Stopped (error): X++ Exception: The hierarchy provider did not return any users.

(0) ShareShare
ReportReport
Posted on by 563

Dear Experts,

I use Microsoft Dynamic AX 2012 R

I have a problem on my overtime request workflow

I get this error on view history workflow

Stopped (error): X++ Exception: The hierarchy provider did not return any users.
at SysWorkflowHierarchyProvider-resolve
SysWorkflowHierarchyProvider-resolveHierarchy
SysWorkflowQueue-resume

I check the hierarchy and he has Worker Head

pastedimage1566359116290v1.png

Here is workflow setup

pastedimage1566359231848v2.png

pastedimage1566359271746v3.png

I see some error on Workflow Setup, but I don't know is it affect the problem or not

pastedimage1566359343187v4.png

And here is the role of Worker Head 

pastedimage1566359535215v5.png

If you have any solution and suggestion, please provide me

Thank in advance

Regards,

Bintang

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Khushhal Garg Profile Picture
    1,514 on at
    RE: Workflow Stopped (error): X++ Exception: The hierarchy provider did not return any users.

    Hi Tahata, can you check user relations on user Yenti and see if employee is setup there to make sure employee/worker is linked to user. Please attach screenshot. Also, attach screenshot for Basic settings tab in workflow setup to see owner.

  • Bintang Profile Picture
    563 on at
    RE: Workflow Stopped (error): X++ Exception: The hierarchy provider did not return any users.

    Hi Khushhal Garg ,

    Here is Relation of user 

    pastedimage1566364232254v2.png

    and Here is The Head Worker

    pastedimage1566364301556v3.png

    Here is the Basic Setting of workflow, but I think it doesn't affect the problem because some user can do the workflow succesfully

    pastedimage1566364418512v4.png

  • Verified answer
    Ludwig Reinhard Profile Picture
    Microsoft Employee on at
    RE: Workflow Stopped (error): X++ Exception: The hierarchy provider did not return any users.

    Hello Bintang,

    The error message says that the workflow owner is not valid.

    Can you change the owner of this workflow?

    Just open the workflow and click on one of the whitespace and then select property where you should be able to see the owner, the email template assigned and alike.

    Change the owner, activate this workflow change and try again.

    Best regards,

    Ludwig

  • Suggested answer
    Khushhal Garg Profile Picture
    1,514 on at
    RE: Workflow Stopped (error): X++ Exception: The hierarchy provider did not return any users.

    Definitely, the problem is with hierarchy. Can you check workers are assigned correct positions and Report to position is setup correctly to Yeti's position on Ali's position record. Can you double check it?

  • Suggested answer
    Ludwig Reinhard Profile Picture
    Microsoft Employee on at
    RE: Workflow Stopped (error): X++ Exception: The hierarchy provider did not return any users.

    Hello Bintang,

    I just saw your last message now. Please enter a valid owner in your last screenprint. This should resolve the issue.

    Best regards,

    Ludwig

  • Bintang Profile Picture
    563 on at
    RE: Workflow Stopped (error): X++ Exception: The hierarchy provider did not return any users.

    Hi Khushhal Garg,

    Allright here is the position of user Ali

    pastedimage1566368713986v1.png

    And here is the position of Worker Head

    pastedimage1566368855355v2.png

    Please kindly check it

  • Bintang Profile Picture
    563 on at
    RE: Workflow Stopped (error): X++ Exception: The hierarchy provider did not return any users.

    Hi Ludwig Reinhard,

    I already set the owner , the error on workflow setup is gone, but the workflow still stopped with the same error

    pastedimage1566369171673v1.png

  • Khushhal Garg Profile Picture
    1,514 on at
    RE: Workflow Stopped (error): X++ Exception: The hierarchy provider did not return any users.

    I see Report to position set on Ali.

    pastedimage1566371114002v1.png

  • Bintang Profile Picture
    563 on at
    RE: Workflow Stopped (error): X++ Exception: The hierarchy provider did not return any users.

    I don't find any hierarchy name, where I can set it?

    pastedimage1566370522601v1.png

  • Bintang Profile Picture
    563 on at
    RE: Workflow Stopped (error): X++ Exception: The hierarchy provider did not return any users.

    Here is the user who doesn't have a problem with workflow
    The Relationship section is empty too 

    pastedimage1566371403235v1.png

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Tocauer Profile Picture

Martin Tocauer 4

#2
AlissonGodoy Profile Picture

AlissonGodoy 2

#2
Nayyar Siddiqi Profile Picture

Nayyar Siddiqi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans