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 circular

(0) ShareShare
ReportReport
Posted on by

Hello!

I would like to create a workflow, which has a feedback loop in it.

I have a conditional decision. If the condition is false, I want to return to a previous task in my workflow, but i get the error "A sequence flow is invalid because it points to a previous workflow element. You cannot create a circular workflow". How can I solve this?

Thank you for your help in advance.

*This post is locked for comments

I have the same question (0)
  • Verified answer
    André Arnaud de Calavon Profile Picture
    299,704 Super User 2025 Season 2 on at
    RE: Workflow circular

    Hi Hun,

    This is not possible. It should be a flow from start to end. You can only have conditions or parallel tasks, but it is not allowed to refer back to a previous element. This to prevent an endless loop.

    Can you describe the situation where you would like to have this? I'm curious.

  • Jonathan  Halland Profile Picture
    11,310 on at
    RE: Workflow circular

    Hi Hun.

    As per Andre's request, can you post the scenario that you are looking to solve. We have had a similar looping requirement in the past with regards to multiple approval levels that I was able to create a workaround for. E.G. Each person in a chain of responsibility must approve a record until a person with the correct limits also approves.

    Kind regards

  • Hun33 Profile Picture
    on at
    RE: Workflow circular

    Thanks for the reply. My employer wants me to create a workflow, with the following situation: You have a document (let's say a vendor invoice with an attachment). When you submit your invoice, you need other people to approve. If they don't approve, you need to make changes in the attachment, and try again. I said resubmitting a simple workflow would solve this, but he insisted, that workflows like this were available in SAP, and i should try to find a solution.

    (Here is a picture about the workflow I need to create: www.dropbox.com/.../wf.png)

  • André Arnaud de Calavon Profile Picture
    299,704 Super User 2025 Season 2 on at
    RE: Workflow circular

    This is not how AX workflow works. If a person returns the workflow, you can make changes and resubmit. So AX is not SAP. When the approval is pending, you are usually not allowed to make any changes in AX.

    But what is the difference? If it worked in SAP, someone had to tell the workflow to retry when finished changing the attachment. Now it is a button called Resubmit in AX...

    So in fact it is supported, but "he" should have bought SAP now if "he" does not like this AX workflow.

  • Verified answer
    Jonathan  Halland Profile Picture
    11,310 on at
    RE: Workflow circular

    Hi Hun.

    The scenario you describe is exactly what the return / resubmit cycle does in AX. What exactly does your employer not like about this?

    I suspect it may simply be about the terminology that the users are encountering e.g. "Return" / "Reject" or "Resubmit". If this is the case you can simply change the labels for the action buttons to read something that reflects what they are doing better e.g. "Request change", "Continue" etc....

  • Hun33 Profile Picture
    on at
    RE: Workflow circular

    Hello,

    Thank you both for your help!

    Kind regards

    Hun

  • Geert G Profile Picture
    on at
    RE: Workflow circular

    Dear,

    I have a simmilar issue. I have a workflow on vendor invoices. There the need to review the matching discrepancies. I would like that the workflow only continous when the invoice has no matching discrepacnies left.

    I tried to add a task and work with an occasional decission when the review task was finished he checks that there are no more matching discrepancies left. At this time I have the error "circular workflow". 

    How can I prevent the workflow to go to the next step when they click accept but there are still matching discrepancies ?

    Many thanks in advance for your help.

    Kind regards

  • Jonathan  Halland Profile Picture
    11,310 on at
    RE: Workflow circular

    Hi Geert.

    You can add additional checks in the code behind on the "complete" menu-item for your review task. In this code you can prevent the user from "Completing" the step until all descrepencies have been resolved.

  • Geert G Profile Picture
    on at
    RE: Workflow circular

    Hi Thanks for your answer however I try to find a standard solution.

    Kind regards

  • Mohamed-Amine HAMDAOUI Profile Picture
    72 on at
    RE: Workflow circular

    Hi,

    I dont realy understand why standard doesn't allow creating a go back to a previsous worflow element? Any one from that can explain, why this restriction is implemented?

    For example I have a workflow composed of 2 Task and next 2 approval : Task1->Approval1 -> Task2 -> Approval2 I want to set workflow :

    • go back to the Task2 if the Approval2 is rejected. 
    • No one takes Task2 within the time, go back to Task1

    As a developer, I forced the worklow to accept the version that contain the loop (conditional decision) and Enable it. And It works fine!

    Best regards,

    Mohamed Amine

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…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Tocauer Profile Picture

Martin Tocauer 4

#2
AlissonGodoy Profile Picture

AlissonGodoy 2

#2
Community Member Profile Picture

Community Member 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans