Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested answer

what causes a workflow to fire too often?

(0) ShareShare
ReportReport
Posted on by

Nothing fancy.  It is supposed to fire on status change of an order (onSubmit) and it fires 2 or more times.

SubmitOrder.PNG all the update does is set Date Submitted to the session execution time.

If I did this in a plugin, I wouldn't expect there to be multiple status change events.  Why should there be many here?

Setting the date should not be a status change.  Other threads speak of infinite loops.  Status change should not act infinitely.

I've seen this on other workflows that are just too simple to be a developer issue, e.g. the assign template step to generate a quote pdf.

  • Community Member Profile Picture
    on at
    RE: what causes a workflow to fire too often?

    I promise as soon as I get a chance to run through these diagnostics and report back!

    In the mean time, there is one plugin step but it is registered on CalculatePrice message.  There are 3 other workflows but two are on create and one is on another field change.  Create certainly shouldn't be in the cards for Submit and if it were the update I would expect to see one additional execution instead of some variable count.  Again, it doesn't smack of a development issue -- not arguing, just sharing my thoughts.

  • Suggested answer
    Charles Abi Khirs Profile Picture
    3,569 on at
    RE: what causes a workflow to fire too often?

    Hello,

    Since there are no Plugins/WFs/JS involved with this action, I suggest to open a ticket with Microsoft support in order to resolve this issue as it might be a bug in the product.

  • LeoAlt Profile Picture
    16,331 Moderator on at
    RE: what causes a workflow to fire too often?

    Hi partner,

    I created a new workflow with the same steps of yours and when I change the status to Submitted, this workflow only ran one time.

    pastedimage1580349448085v1.png

    So there should be some other processes or plug-ins or other possibilities which may cause this situation. Please do the following check.

    1.Enable the field audit of status and monitor this field for several changes when trigger the workflow.

    2.Check if there is any other processes or plug-in work with order.

    Best Regards,

    Leo

  • rthompson Profile Picture
    1,530 on at
    RE: what causes a workflow to fire too often?

    Hi,

    Can you duplicate the same issue in your development account.

    If so,  I would do the following.

    This is base on me not knowing what your order entity is doing.

    I would turn on the Trace log.

    My first check review your javascript onSave event to see what that is doing.

    Then I would check my plugins if any.

    Then I would disable the workflow and enable the workflow.

    I am sure 1 of the 3 is causing your issue.

  • Fubar Profile Picture
    2,752 on at
    RE: what causes a workflow to fire too often?

    Turn on the audit history and see if there are updates / status changes happening or if there is just 1 entry.

    Possibly try unchecking status change and change it to trigger on Status Reason change and see what happens.  Can also try switching it to real-time to see what happens.

  • Community Member Profile Picture
    on at
    RE: what causes a workflow to fire too often?

    ps- I'm getting these even though the auto delete is activated.  Could this be some sort of phantom system job creation?

  • Community Member Profile Picture
    on at
    RE: what causes a workflow to fire too often?

    I wouldn't lie to you

    noLie.PNG

  • rthompson Profile Picture
    1,530 on at
    RE: what causes a workflow to fire too often?

    Hi,

    Can you duplicate the same issue in your development account.

    If so,  I would do the following.

    This is base on me not knowing what your order entity is doing.

    I would turn on the Trace log.

    My first check review your javascript onSave event to see what that is doing.

    Then I would check my plugins if any.

    Then I would disable the workflow and enable the workflow.

    I am sure 1 of the 3 is causing your issue.

  • Suggested answer
    Adrian Begovich Profile Picture
    1,019 Super User 2025 Season 1 on at
    RE: what causes a workflow to fire too often?

    Hi TallyHoDukey,

    You need to enable the Automatically delete completed workflow jobs (to save disk space) option to be absolutely sure that the same workflow is executing multiple times within the same minute. It is possible that another workflow or plugin is running on the Order entity in parallel.

  • Community Member Profile Picture
    on at
    RE: what causes a workflow to fire too often?

    Yes, but I'm not talking about over time.

    This workflow is firing multiple times within the same minute for the same status change event.

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

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

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,278 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,002 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans