Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX forum
Answered

Workflow hierarchy provider: Worker ID not set

Posted on by 1,217

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

Categories:
  • YA TEH Profile Picture
    YA TEH 1,217 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.

  • Verified answer
    André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 290,263 Super User 2024 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?

  • Martin Dráb Profile Picture
    Martin Dráb 228,112 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.

  • YA TEH Profile Picture
    YA TEH 1,217 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

  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 290,263 Super User 2024 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?

  • YA TEH Profile Picture
    YA TEH 1,217 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

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

    Check if these workers are linked to users.

  • YA TEH Profile Picture
    YA TEH 1,217 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

  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 290,263 Super User 2024 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?

Helpful resources

Quick Links

Dynamics 365 Community Update – Sep 9th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,263 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,112 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans