Skip to main content

Notifications

Power Automate - Using Flows
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

 

 

  • Sayan Profile Picture
    Sayan 694 on at
    Re: Do until results in infinite loop

    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

     

  • Re: Do until results in infinite loop

    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
    Sayan 694 on at
    Re: Do until results in infinite loop

    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

     

  • FLMike Profile Picture
    FLMike 31,242 on at
    Re: Do until results in infinite loop

    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

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,508

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,839

Leaderboard

Featured topics

Restore a deleted flow