Skip to main content

Notifications

Microsoft Dynamics AX (Archived)

Workflow failed when position is vacant

Posted on by Microsoft Employee

Hello, 

We are using a workflow to approve Purchase requisition and Invoices. The workflow is based on position hierarchy (all worker are link to one position and one position report to another one).

We have an issue when a position is vacant, the workflow stopped because it cannot find any user to assign the workflow item. I wonder if there is a way to setup a rule to go directly to the level up if one position is vacant. 

For example A & B report to C, and C report to D. If A create a PR, the workflow goes to C. Issue is if C is a vacant position, can we setup the workflow to go directly to D in this case?

Thanks for your help

*This post is locked for comments

  • Suggested answer
    fatihgork Profile Picture
    fatihgork 3,815 on at
    RE: Workflow failed when position is vacant

    Hello Violaine,

    How far does your workflow go and where does it stop?

    Are you using signing limits, and are they seperate for each of those positions?

    If you are using signing limits, and your workflow goes to a higher position according to this,the following setup can be helpful.

    If open positions' job ids get set to a signing limit of zero, you will be able to set this condition in "exclude users" condition. And you would not be getting any error unless your top position is open,too; Or it has insufficient signing limit. 

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Workflow failed when position is vacant

    Hello Baber,

    Thanks for your answer, but it is not working. The conditions are based on the employee and not the position.

  • Suggested answer
    Jonathan  Halland Profile Picture
    Jonathan Halland 11,304 on at
    RE: Workflow failed when position is vacant

    Hi Violaine.

    What I have found is that if you are creating some advanced assignment rules the easiest option is always to create a custom Partipant provider for the workflow.

    As an alternative in this example you could customise the Hierarchy provider to automatically skip these steps.

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Workflow failed when position is vacant

    Functionally I don't think this is possible, however can be done using a minor customization in workflow class "WorkflowConfigPersonPicker".

  • syed baber Profile Picture
    syed baber 11,627 on at
    RE: Workflow failed when position is vacant

    Hi Violaine,

    I assume that you are using the assignment type Hierarchy in the workflow configuration. Have you tried to add the condition for 'Exclude users with the following conditions' under Hierarchy options tab as shown below?

    7367.image.jpg

    Thanks,

    Baber.

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

New! Quick response templatesâš¡

Save time with the new custom templates!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,056 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans