cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
psbabu
Level: Powered On

ms-flow executed twice

I have created 2 flows for Dynamics CRM, one that is triggered when an record is created, and the other for when the record is updated.

In a weird manner, both are triggered twice when a new record is created/updated.

Has anyone raised that before?

6 REPLIES 6
CollabTechie
Level 8

Re: ms-flow executed twice

@psbabu  - Can you please show us a screen grab of your flow?

Thanks,
CT

psbabu
Level: Powered On

Re: ms-flow executed twice

When record is created,it will sync to external application  and send an email notification-it is working as expected.

After some time the flow will run and do the same action without any action from dynamics CRM side.

Create Action:

CreateAction.PNG

Expected:Whether it fail/success,it should be run one time only.

Issue:

CreateActiontwise.PNG

KirshanthanJ
Level: Powered On

Re: ms-flow executed twice

Hi

 

Please check if you any other automations  in CRM updating the record. You can check the record's Audit to see if any update was done for the system in background. 

 

Thanks!

Kirsh

psbabu
Level: Powered On

Re: ms-flow executed twice

Hi Krish,

 

I verified all possible areas in CRM and MSFlow. We have't get this type of issue earlier. Recently, we got some latest Power Platform updates. May be that is the cause of this issue.

We can avoid that by using "Is sync" bool field. But why it is triggering twice?

 

Thanks,

S

KirshanthanJ
Level: Powered On

Re: ms-flow executed twice

Hi 

 

Does the execution flowing some pattern ? Like I see exactly after 2 hours it gets triggered. Also does the second triggered flow always fails ?

 

Thanks!

Kirsh

psbabu
Level: Powered On

Re: ms-flow executed twice

There is no time frame. If record already synced/contained in external system,It will fail (Like 2 mail) and send error notification.That is fine.

Initially,when record created in CRM(ex: Test-1)

->It will get all required details and create record in external system.

->if everything is fine,It sends success email to users.

->If any error during the creation process,it will send error notification.

 

After some time,the same action(same record-Test-1) was triggered with out any action from CRM side.

Also If we create an other record (ex:Test-2),it is executed as expected.But It is taking previous one which is already synced(ex:Test-1) and do the creation action.

 

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (4,916)