Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
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.

  • Verified answer
    GBZ Profile Picture
    9 on at
    Re: "Do until" step is sometimes ignoring variable check in condition

    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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow