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 failed when position is vacant

(0) ShareShare
ReportReport
Posted on by

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

I have the same question (0)
  • syed baber Profile Picture
    11,633 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.

  • Suggested answer
    Community Member Profile Picture
    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".

  • Suggested answer
    Jonathan  Halland Profile Picture
    11,310 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.

  • Community Member Profile Picture
    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
    fatihgork Profile Picture
    3,817 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. 

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