Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Business Process Flow Corruption?

(0) ShareShare
ReportReport
Posted on by 306

Hi,

We have a business process flow with a workflow that fires on process completion.  It is firing multiple times (up to 9 times) when a user clicks the 'Finish' button in the process flow.  It is a simple workflow and can be run on demand with it only firing once.

To test, I created a new business process flow with one stage and one step with the workflow firing on process completion.  This worked as expected.  However, as I built the process flow out to contain more stages and steps, the multiple firing started happening again (on clicking 'Finish').

There are no other workflows or JS running. This really does seem to be an error with the business process flow.  Has anyone else had this issue?

Thanks for any pointers,

*This post is locked for comments

  • BusyIntelligence Profile Picture
    560 on at
    RE: Business Process Flow Corruption?

    Running to exactly the same issue. It seems all previous versions of the BPF are executed each time.

    I completely removed some email sending steps from my BPF and republished it (me and the users got irritated about tons of 10-double mails).

    Still, even after removing these steps, emails are still send. That's why I assume the use of previous versions of the BPFs.

    Just logged a call at MS.....hope for a solution!

  • BharatPremji Profile Picture
    2,485 on at
    RE: Business Process Flow Corruption?

    Hi guys,

    Have a look at this thread:

    community.dynamics.com/.../284348

    Regards

  • Ashley Visagie Profile Picture
    85 on at
    RE: Business Process Flow Corruption?

    Thanks for the reply, Nick - not what I was hoping for obviously, but I appreciate your response.

  • Community Member Profile Picture
    on at
    RE: Business Process Flow Corruption?

    I had to recreate the bpf from scratch, and instead of having workflows fired within the BPF, I created another workflow that was hooked up to the BPF entity itself, firing on attach and stage change, that checked the stage and fired when it was the appropriate stage. I did have a case going with Microsoft who agreed it was an issue but I didnt have the time to pursue it so not sure where it ended up. I still have the same functionality, just a bit more work to get there. I also have a bit more control and flexibility in the separate workflow, so not all bad....

  • Ashley Visagie Profile Picture
    85 on at
    RE: Business Process Flow Corruption?

    Hi,

    Any updates/fixes/workarounds for this issue? We have multiple BPFs that trigger a workflow on Stage Exit that have the same issue.

    One BPF, in particular, is triggering a workflow 13 times which generates 13 email notifications!

    Any help would be appreciated.

    Ashley

  • Community Member Profile Picture
    on at
    RE: Business Process Flow Corruption?

    Hi,

    We are seeing the exact same problem. We are triggering a workflow on stage exit, and it is firing multiple times (over 20). I even have a check in the workflow to ensure it only fires once, yet they are all triggered simultaneously so the check fails. As a result the performance is horrendous (to the point of being unusable) when changing stages, and we end up with 20+ identical emails queued, created by the triggered workflow, when it should just be the one.

    I am about to log with Microsoft, would be good to know of any other cases I can tag along with it. Has anyone found a workaround that doesn't involve dropping the BPF and recreating (this is not practical given the MI that hangs off it and all the all the in flight stages in use)?

    Thanks,

    Nick

  • mluce Profile Picture
    306 on at
    RE: Business Process Flow Corruption?

    This seems to be a bug. We are running version 1612 (9.0.1.425) (DB 9.0.1.425) online.

    We can recreate it as below;

    - Create a workflow that creates a contact record.

    - Create a BPF over your custom entity and add the workflow as a global workflow firing on process completion.

    - Check that one contact record was created when the 'finish' button was pressed.

    - Edit the BPF by adding a stage or step and click 'update'.

    - Run through the process again.

    - Check that one contact record is created (there is two for some reason).

    We are seeing that every time the BPF is updated, it will cause that global workflow to run for each time it has been edited. So if we edit the BPF 5 times, then the workflow will run 5 times whenever a person clicks the 'finish' button.

    Would be interesting to see if this happens for anyone else.

  • Suggested answer
    gdas Profile Picture
    50,091 Moderator on at
    RE: Business Process Flow Corruption?

    Hi ,

    I believe you created workflow  in the event -  record is created . Can you please change the event - field changes . This is because every time when you are moving stages BPF is internally call save() method of the entity.

    And make your workflow asynchronous. Hope this helps.

  • TomSmelser Profile Picture
    1,570 on at
    RE: Business Process Flow Corruption?

    Have you tried recreating the worklow?

    May be worth a try.

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Microsoft Dynamics CRM (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 83 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 52

#3
Victor Onyebuchi Profile Picture

Victor Onyebuchi 6

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans