cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
abd3127
Level 8

Do until terminate

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

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Do until terminate

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

 

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Community Support Team
Community Support Team

Re: Do until terminate

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

 

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (5,583)