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 hierarchy provider: Worker ID not set

(0) ShareShare
ReportReport
Posted on by 1,235

Hi All,

Recently I was testing free text invoice workflow under the AR module. Afer submit the free text invoice, I was hitting the following error.

Stopped (error): X++ Exception: Worker ID not set or record not found for %1, %2. Verify that the extended data type matches, and that the worker exists.

at SysWorkflowHierarchyProvider-resolve
SysWorkflowHierarchyProvider-resolveHierarchy
SysWorkflowQueue-resume

In the workflow, the assignment was used Hierarchy Type and the Start From was set to Workflow originator. The user who submit the free text invoice was the system admin. I can't figured out which part went wrong. I had check the hierarchy of position it looks correct. What could be the possible issue here?

Any advice is much appreciated.

Thanks.

Regards,
Teh

*This post is locked for comments

I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    300,716 Super User 2025 Season 2 on at
    RE: AX 2012 R3 CU9 Workflow error

    Hi Ya Teh,

    If the hierarchy provider is used, AX uses the position hierarchy to find the manager of the submitter. Can you verify if this admin user has a manager according to the position hierarchy?

  • Venedict Profile Picture
    1,235 on at
    RE: AX 2012 R3 CU9 Workflow error

    Hi Andre,

    Thanks for reply. Yes, there is manager for the worker.

    6505.Capture.JPG

    Above diagram is from Position Hierarchy. Tim Litton is the admin and reporting to Charlie Carson.

    6505.Capture.JPG

    21516.Capture.JPG

    Any other thing was missing out ?

    Thanks.

    Regards,
    Teh

  • Martin Dráb Profile Picture
    237,668 Most Valuable Professional on at
    RE: Workflow hierarchy provider: Worker ID not set

    Check if these workers are linked to users.

  • Venedict Profile Picture
    1,235 on at
    RE: Workflow hierarchy provider: Worker ID not set

    Hi Martin,

    It was linked. Both Tim and Charlie is linked to respective users.

    0045.Capture1.JPG

    0045.Capture1.JPG

  • André Arnaud de Calavon Profile Picture
    300,716 Super User 2025 Season 2 on at
    RE: Workflow hierarchy provider: Worker ID not set

    Hi Ya Teh,

    Can you check if Tim has multiple employments/positions? Workflow will use the primary. Do you also have a screenshot how you did the setup in  the workflow?

  • Venedict Profile Picture
    1,235 on at
    RE: Workflow hierarchy provider: Worker ID not set

    Hi Andre,

    I had search the position hierarchy by Tim Litton name, so far I only found 1 position assigned to Tim.

    Below is some screen shoot for my workflow.

    workflow1.JPG

    workflow1.JPG

    workflow2.JPG

  • Martin Dráb Profile Picture
    237,668 Most Valuable Professional on at
    RE: Workflow hierarchy provider: Worker ID not set

    If you don't see anything wrong, consider asking a develop to debug the code for you.

  • Verified answer
    André Arnaud de Calavon Profile Picture
    300,716 Super User 2025 Season 2 on at
    RE: Workflow hierarchy provider: Worker ID not set

    Hi Ya Teh,

    Can you try to set the condition for the manager level on value '1'.

    I assume the user Tim did submit the workflow, right?

  • Venedict Profile Picture
    1,235 on at
    RE: Workflow hierarchy provider: Worker ID not set

    Hi Andre,

    It looks ok after change the manager level to 1. I will test again with another user which have more reporting manager.

    Thanks again for your advice.

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Priya_K Profile Picture

Priya_K 4

#2
Alexey Lekanov Profile Picture

Alexey Lekanov 3

#3
Scott_itD Profile Picture

Scott_itD 2 Community Manager

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans