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

Notifications

Announcements

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,335 Super User 2025 Season 2 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 Super User 2025 Season 2 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 Super User 2025 Season 2 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard