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" step is som...
Power Automate
Answered

"Do until" step is sometimes ignoring variable check in condition

(0) ShareShare
ReportReport
Posted on by 9

Hi guys,

Key word is "sometimes". I have built flow with "Do until", to keep sending approves until manager of manager of manager has approved. It goes from doing it once to up to 3 cycles. It works! And then I noticed, that 1 out of 10 runs - it fails. No error. It simply doesn't go for another round.

I made a mockup flow just to emphasize on logic:

GBZ_0-1693464543215.png

In real flow:

- 1st condition is doing "Approval stuff", and deciding if it is approved, if not - ending it

- 2nd condition is checking what role has approved, if it was not the person we need, we do nothing, just simple compose step telling us that we go for another cycle in "Do until" because variable value hasn't changed.

 

In reality, I found out, that those few times it ran only 1 cycle, went to "compose" saying lets do it again, then it simply left "Do until" and did whatever is afterwards. No fail, no error, simply left the cycle.

And yes, after the loop there is step setting "status" in my list and in this case it would say "Doing". So flow itself confirms, that there was a value and it should have continued "doing until"

 

Has anyone been in same situation? Any ideas?

 

Also - my plan for this case is manually additionally setting "status" to "Doing" even tho it already has that value.

Categories:
I have the same question (0)
  • Verified answer
    GBZ Profile Picture
    9 on at

    Probably solved. In "Change Limits":

    • Count: 5
      • as expected. It will not run more than 5 cycles
    • Timeout: PT1H (default value)
      • changed it to P5D
      • behavior was that cycle is not cancelled after 1 hour, however it doesn't go for another round if it lasted longer than 1 hour. So it is successfully ended without errors or cancellations.

    More about ISO 8601:

    GBZ_0-1694006355041.png

     

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 505

#2
Haque Profile Picture

Haque 446

#3
Valantis Profile Picture

Valantis 395

Last 30 days Overall leaderboard