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

Community site session details

Session Id : xIT4rE6MsKrsR//ZFMMlQV
Power Automate - Building Flows
Answered

Do Until Loop not working

Like (1) ShareShare
ReportReport
Posted on 16 Jan 2024 05:43:31 by 14

My loop is currently only running once when it should keep looping. Currently when reviewing the flow I cannot see the issue as the condition is not meant which means variable keepLooping remains true. Pictures attached, help would be greatly appreciated or even an image with a working flow to copy.

  • Verified answer
    New-AzGuru Profile Picture
    177 on 16 Jan 2024 at 21:40:10
    Re: Do Until Loop not working

    This is a "Do Until" loop, which means it will only loop until a condition is met.

     

    In the screenshot, you have it set to Loop Until your value is TRUE.

     

    So in the conditional, the NO path is chosen, then at the end it sets the boolean to TRUE.  So then the loop will exit since it only loops until it's true.  I think it's a little confusing because you have the boolean variable named "KeepLooping" and you set it to TRUE.  So it "sounds" like it should keep looping, but it's a DO UNTIL true loop.  Hope that makes sense LOL.

     

    Easiest way to fix this in your screenshot is change the loop until condition.  Set it as "KeepLooping is equal to FALSE"

  • v-xiaochen-msft Profile Picture
    on 16 Jan 2024 at 06:18:57
    Re: Do Until Loop not working

    Hi @Daniel37 ,

     

    The 'do until' action will execute once and then check the condition at the first time.

    In other words, no matter what condition you set, it will run at least once.

    The 'do until' action you set is to stop when the variable is true, so it stops for the second time.

     

    Best Regards,

    Wearsky

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

Announcing our 2025 Season 2 Super Users!

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 2

Loading complete