web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Flow in an infinite lo...
Power Apps
Unanswered

Flow in an infinite loop when sending approvals.

(0) ShareShare
ReportReport
Posted on by 212

Hi all, I have never ran into this problem before using power automate. I have a power app that will send out approvals when the user submits a form. However, with the flow I'm using. I'm getting an infinite loop of approvals. Repeating sending to the same people over and over. Has anyone ever ran into this problem? I'm not understanding where the loop is coming from. 

 

This is an image of the start of my flow. The steps are repeating so one approval is needed before sending it to the next one.

 

JBennett12_0-1680700088887.png

 

 

Thank you!

Categories:
  • LaurensM Profile Picture
    12,516 Moderator on at

    Hi @JBennett12,

     

    The When an item is created or modified trigger, especially 'Modified', might be the cause of the endless loop. When you update the same record within the flow e.g. before sending out the approval or after it's approved, and the modified trigger condition is still true for that record - it will start another flow run.

     

    When using 'Modified' as a flow trigger, it is important to prevent the flow from executing a second time when the record is updated within the flow run itself. The same applies for the create action - when the flow creates another record in the same list, it will start another flow run.

     

    An easy fix (to the Modified issue) would be making the flow trigger condition more specific. An example could be: only start the flow if the record has a status 'To be started' and once the flow is triggered the status would be instantly updated to 'To be approved'.

     

    If this solves your question, would you be so kind as to accept it as a solution.

    Thanks!

  • JBennett12 Profile Picture
    212 on at

    Thank you @LaurensM for the response.

     

    So I can further understand your explanation. My flow has it where the user can save the form (however many times) and submit the form (just once). So if the user saves the form, 3 times. When they finally click 'submit', will the flow run 3 or 4 times? I'm thinking this might be the issue, but I'm not too familiar with power automate yet.

     

    Thank you again!

     

     

  • LaurensM Profile Picture
    12,516 Moderator on at

    Hi @JBennett12,

     

    This will depend on what the 'Save' and 'Submit' buttons do (what is the code behind it) and how the flow is triggered (on Modified, Created or both).

     

    Could you provide some more details about those 2 aspects. 😊

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 405 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 368

#3
WarrenBelz Profile Picture

WarrenBelz 244 Most Valuable Professional

Last 30 days Overall leaderboard