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 Automate
Answered

Do until terminate

(0) ShareShare
ReportReport
Posted on by 320

How do i terminate a do until action if a condition is not met in that loop?

Categories:
I have the same question (0)
  • Verified answer
    v-xida-msft Profile Picture
    on at

    Hi @abd3127,

     

    Could you please share a screenshot of your flow's configuration?

    Do you want to terminate a Do Until action if the condition is always not met in that loop?

     

    There is no direct way to terminate a "Do Until" action in Microsoft Flow currently. If you would like this feature to be added in Microsoft Flow, please submit an idea to Flow Ideas Forum:

    https://powerusers.microsoft.com/t5/Flow-Ideas/idb-p/FlowIdeas

     

    In addition, you could consider take a try to set a time out for the "Do Until" action. I assume that you want to terminate the "Do Until" action if the Condition is not met after 2 hour. You could take a try to configure your flow as below:16.JPG

    Within "Do Until" action, click "Chane limits", Count property (Default value is 60) set to empty, the Timeout property set to following formula:

    PT2H

    If the Condition is not met after 2 hour, the "Do Until" action would occur time out error. You could also configure a Run after action for the "Do Until" action, if the "Do Until" action times out, send an time out notification to you.17.JPG

    18.JPG

     

     

     

    More details about configuring a Run After action, please check the following article:

    https://flow.microsoft.com/en-us/blog/error-handling/

     

     

    Best regards,

    Kris

     

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…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 378 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 273 Super User 2025 Season 2

#3
Expiscornovus Profile Picture

Expiscornovus 135 Most Valuable Professional

Last 30 days Overall leaderboard