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

Update Item Infinite Loop

 

Hi,

 

I have a flow on a Sharepoint list. The trigger is: "When an item is created or modified"

The flow then updates a field depending on the value of another field using the  "Update Item" action.

 

The problem is the "update item" action in itself triggers the flow again, resulting in an infinite loop.

 

Can't see an obvious way to prevent. Thought of the idea of creating a boolean for each record as a semaphore to prevent an update if the field is set to true. Must be an easier way though.

1 REPLY 1
Community Support Team
Community Support Team

Re: Update Item Infinite Loop

Yes, if the list configured within trigger and Update item action is the same, it will fall into a loop.

 

The method you could consider is basically the same as you described, adding extra fields to determine if it is the expected value.

If not, then even if Flow has been triggered, Update item action will no longer be executed and the loop will be terminated.

Please refer to the methods mentioned in these links to configure Flow, hope to help you improve the current situation:

https://flow.microsoft.com/en-us/blog/advanced-flow-of-the-week-when-a-new-item-is-created-automatic...

https://medium.com/@krishnangshu.banerjee/https-indianjackofalltrade-com-how-to-stop-infinite-loop-o...

 

In addition, user have already made feedback on this issue and got the attention of PG. Please consider voting for this idea:

https://powerusers.microsoft.com/t5/Flow-Ideas/Disable-Event-Firing-when-Flow-updates-a-SharePoint-l...

Hope it helps.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.

thirdimage

Flow Community User Group Member Badge

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

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 Flow Community Video Gallery!

Users Online
Currently online: 214 members 3,240 guests
Please welcome our newest community members: