Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

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

Posted on by 555

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

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

    Thank you so much for your comment Ludwig, I had the same error and it got solved by changing the owner. I would still like to understand why some owners are valid and some are not?

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

    Allright, It solved my problem because the relation of the Worker Ali was wrong

    Thank you so much for your help Khushhal Garg and Ludwig Reinhard

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

    Try deleting user relation for user Yenti and recreating it. It might help. Also, what is the current active version number on this workflow?

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

    I just realize this form and workflow are fully customize in need of Human Resource department

    This form and workflow used to create Overtime Request for all workers and need approval from their Head or Supervisor

    Some workers don't have any problem in this workflow, only specific workers have this problem

    Last nigh I did something : 

    - Clear AUC and XPPIL

    - Full compile

    - Full CIL

    - Syncronize

    But workflow still stopped error

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

    Hi Bintang,

    Who is the workflow originator in your case?

    Can you identify this user/person?

    Is this user/person included in your hierarchy at the bottom level?

    Best regards,

    Ludwig

  • Bintang Profile Picture
    Bintang 555 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

  • Bintang Profile Picture
    Bintang 555 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

  • Khushhal Garg Profile Picture
    Khushhal Garg 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
    Bintang 555 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

  • Bintang Profile Picture
    Bintang 555 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

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans