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: User not found at SysWorkflowHierarchyProvider-resolve

(0) ShareShare
ReportReport
Posted on by 563

Dear Experts,

I use Microsoft Dynamic AX 2012 

I have a problem on my workflow

I get this error on view history workflow

Stopped (error): X++ Exception: User not found
at SysWorkflowHierarchyProvider-resolve
SysWorkflowHierarchyProvider-resolveHierarchy
SysWorkflowQueue-resume

pastedimage1566457305045v3.png

Logical flow that I want to achieve is all workers need approval from their head or supervisor

Here is my Workflow setup

pastedimage1566457109244v1.png

pastedimage1566457131261v2.png

When I see user relation of the account, I think it's the correct

pastedimage1566457493855v4.png

And already assign to work position

pastedimage1566457634689v5.png

And I don't get any problem on supervisor position

pastedimage1566457847849v6.png

Is there any solution or suggestion how to check and solve this issue?
Thank in advance

Regards,

Bintang

*This post is locked for comments

I have the same question (0)
  • Bintang Profile Picture
    563 on at
    RE: Workflow Stopped (error): X++ Exception: User not found at SysWorkflowHierarchyProvider-resolve

    On User Relation form (System administrator > Common > Users > User relation).

    As we can see there are 2 named Esti.

    When I select with query they have different RecId.

    And the correct one is the second Esti who connect with the worker position. 

    pastedimage1566528626425v1.png

    If I go to all worker form, I only see 1 Esti, that's the reason why we confuse to choose when create a user relation.

    pastedimage1566529010274v2.png

    So I select with sql query to choose the correct one to solve this issue.

    I hope it make you clearer about the problem.

    You can ask more if you still don't get it.

  • Ludwig Reinhard Profile Picture
    Microsoft Employee on at
    RE: Workflow Stopped (error): X++ Exception: User not found at SysWorkflowHierarchyProvider-resolve

    Hello Bintang,

    I am not sure if I got the problem.

    What does the screenprint show above? Where and how did you open it?

    Is this the user form in the system admin module where you have the user Esti... twice?

    Would be great if you could help us understanding this issue.

    Many thanks,

    Ludwig

  • Bintang Profile Picture
    563 on at
    RE: Workflow Stopped (error): X++ Exception: User not found at SysWorkflowHierarchyProvider-resolve

    Hi Ludwig Reinhard,

    The big issue why workflow stopped is because user relation Person does not related to Worker Position

    When create user relation, the Person show multiple and that's make a mistake

    pastedimage1566470215158v1.png

    My solution is signing correct Person with Worker position assigned

    Signing workflow originator solve error notification on workflow setup, but didn't affect to the main issue why the workflow stopped 

    Thank you Ludwig Reinhard

  • Ludwig Reinhard Profile Picture
    Microsoft Employee on at
    RE: Workflow Stopped (error): X++ Exception: User not found at SysWorkflowHierarchyProvider-resolve

    Hi Bintang,

    I thought your issue got resolved because you verified the answer in one of your previous posts.

    Can you let us know:

    1) the person who originates the workflow?

    2) the managerial hierarchy and where the workflow originator is included in this hierarchy?

    Some screenprints would be good.

    Thanks,

    Ludwig

  • Bintang Profile Picture
    563 on at
    RE: Workflow Stopped (error): X++ Exception: User not found at SysWorkflowHierarchyProvider-resolve

    Hi Martin Dráb,

    I'm sorry if I make duplicate or multiple thread, I thought it's different problem because it shows different error message

    I don't know how to debug workflow, but finally I get what's the problem

    The problem is same as my thread, but at this time on supervisor user relation

    I trace with this query

    select DIRPERSONUSER.USER_, HcmPosition.POSITIONID from DIRPERSONUSER inner join DIRPARTYTABLE on DIRPERSONUSER.PERSONPARTY = DIRPARTYTABLE.RECID

    inner join HCMWORKER on DIRPERSONUSER.PERSONPARTY = HCMWORKER.Person

    inner join HcmPositionWorkerAssignment on HCMWORKER.recid = HcmPositionWorkerAssignment.Worker

    inner join HcmPosition on HcmPosition.RECID = HcmPositionWorkerAssignment.POSITION

    where DIRPERSONUSER.RECID = [USER RELATION RECORD ID]

     [USER RELATION RECORD ID] is from this form

    pastedimage1566462502974v1.png

    I don't know why, when I choose Person on User Relation it show multiple Person with same name, and it make many user relation problem like my thread before

    pastedimage1566462694074v2.png

    So what should I do with this thread?

    Thank for your respond Martin Dráb

  • Martin Dráb Profile Picture
    236,240 Most Valuable Professional on at
    RE: Workflow Stopped (error): X++ Exception: User not found at SysWorkflowHierarchyProvider-resolve

    Is this somehow related to your previous thread Workflow Stopped (error): X++ Exception: The hierarchy provider did not return any users?

    Did you try to debug the code? If so, what you have found?

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Community Member Profile Picture

Community Member 2

#1
Guy Terry Profile Picture

Guy Terry 2 Moderator

#1
Martin Dráb Profile Picture

Martin Dráb 2 Most Valuable Professional

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans