cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Infinite Loop in flow warning

Hi all,

 

I have a trigger from sharepoint when an item is update.

 

I'll basically check the field "Send For Approval" as my flag with the following options:

  1. Yes (Trigger flow)
  2. No (Do nothing)
  3. Processed (Means flow has started the approval process) 

However, when i try to put an update after my approval flow i keep getting the infinite loop warning.

flow.JPG

 

Hence, i was wondering where did i wrong?

3 REPLIES 3
manuelstgomes
Super User
Super User

Hi @Anonymous 

 

Your Power Automate is triggering when something in a list is changed. Is your update on that list? If so here's what happens:

  1. Flow is triggered when there's a change in list A
  2. Flow runs the actions
  3. Flow updates list A
  4. Since there was an update in list A Flow triggers

 

Here's your loop.

 

Is this the case?

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Cheers
Manuel

Anonymous
Not applicable

Hi @manuelstgomes ,

 

Yes, that's correct my flow would be triggered when there is an item is created or updated. 

 

There is additional information which is required to be manually entered prior to the commencement of the flow.

 

Hence, I have a flag which is the field "Send for approval. The flow approval will only be triggered when the flag is "Yes".  Else the flow would end.

 

But here comes the complicated part when I am trying to update the flag of the item.

 

Essentially I am trying to accomplish the following:

 

  1. If the field flag is No/Processed Do nothing
  2. If the flag is yes start the approval process
    1. Update the flag to "Processed" to prevent repeated triggering.

 

However, after approval when I try to update the item it would prompt me the infinite loop warning.

hemrhk
Responsive Resident
Responsive Resident

There are multiple ways to stop the infinite loop in Power Automate, Kindly read the below articles for a better idea,

Power Apps Form and Flag Column:

https://365stack.in/index.php/2021/12/12/how-to-stop-infinite-flow-trigger-in-power-automate-using-f... 

CSOM Update:

https://365stack.in/index.php/2021/12/31/how-to-stop-infinite-flow-trigger-in-power-automate-using-c... 

Multiple Lines of Text as Flag Column:

https://365stack.in/index.php/2021/12/30/how-to-stop-infinite-loop-using-in-power-automate-using-mul... 

 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Top Kudoed Authors
Users online (1,185)