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 Automate / Do until results in in...
Power Automate
Unanswered

Do until results in infinite loop

(1) ShareShare
ReportReport
Posted on by

Hello all,

I have this flow below, the left side of the condition works well but the right side results in infinite loop. The issue i am trying to solve is when an approval request is rejected it should update the sharepoint list status column to declined so that the requester makes corrections and resubmit via a form and then the flow runs again. 

LawrenceOrewa_0-1720842238440.png

 

LawrenceOrewa_2-1720842350586.png

 

Appreciate your help. Thanks

 

 

Categories:
I have the same question (0)
  • Michael E. Gernaey Profile Picture
    53,932 Moderator on at

    Hi @LawrenceOrewa 

     

    Please add pictures, from a flow that run, where it ran forever. Please include specifically the Apply to Each, which you say is an infinite loop.

     

    I see nothing in there that would do that we code it is 


    If I have helped you, I would really appreciate if you please Mark my answer as Resolved/Answered, and give it a thumbs up, so it can help others

    Cheers

    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

  • Sayan Profile Picture
    818 Moderator on at

    Hey @LawrenceOrewa 

     

    I can see that you are using an Control Action that is "Do Until". This Action executes a block of Action until the Condition is satisfied. So, in case of your flow the condition is not satisfied that's why it goes to infinite loop.

     

    Please remove that Action and use only "Condition" action then the flow will not go to infinite loop.

     

    Sayan_0-1720858472808.png

    ------------------------------------------------------------------------------------------------------------------------------

    if my solution helps you, please gives a Thumbs up 👍 and Marks as a Solution ✔️. It motivates to solve more problems.

    Thanks,

    Sayan Patra

    RPA Developer

     

  • LawrenceOrewa Profile Picture
    on at

    Hi @Sayan,

         Thank your very much. Yes i get your point. However, i looking for a situation whereby when the approval reject the request the flow should restart the approval again when the requester resubmit perhaps after making corrections.

  • Sayan Profile Picture
    818 Moderator on at

    Hey @LawrenceOrewa 

     

    You should limit that how many times to try for Approval else It will go on infinite loop.

     

    ------------------------------------------------------------------------------------------------------------------------------

    If my suggestion helps you, please gives it a Thumbs up 👍 and Marks as a Solution ✔️. Which Motivates to solve more problems.

    Thanks,

    Sayan Patra | Consultant RPA Developer

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 86 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 55

#3
Ellis Karim Profile Picture

Ellis Karim 53 Super User 2026 Season 1

Last 30 days Overall leaderboard