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 / Issue with Do until loop
Power Automate
Answered

Issue with Do until loop

(0) ShareShare
ReportReport
Posted on by 11

I have a Power Automate flow with 5 switch conditions. The first 3 cases have a delay of 25 seconds, the 4th case has a delay of 6 seconds, and the 5th case has a delay of 2 seconds. The default case is also there. The flow works fine when the delays are 25 seconds, 6 seconds, and 2 seconds, respectively. However, when I change the delays to 24 hours, 6 hours, and 2 hours, respectively, the flow exits after the first case.

Categories:
I have the same question (0)
  • Verified answer
    David_MA Profile Picture
    13,912 Super User 2026 Season 1 on at

    Do until loops have a default timeout of 1 hour, which is why you had no trouble with your delays when they were seconds. You need to change the limits in your do until. For example, after whatever you have in your do until loop, add a delay of 1 hour. Then you will need to figure out how many times you want it to loop before it times out. The max number of loops is 5,000, but with a 1-hour delay the 30-day workflow timeout will be reached first. 

     

    For example, I have a do until where I send a reminder e-mail every two days until the approval has been completed.

    David_MA_0-1689264095182.png

    The approval needs to complete within four weeks (28 days). So, I have my loop limit set to 14 and the delay set to 48 hours.

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!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 251 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 239

#3
Expiscornovus Profile Picture

Expiscornovus 220 Most Valuable Professional

Last 30 days Overall leaderboard