cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Johhny
New Member

Do Until running Once - Approval flow

Hello,

 

I'm having an issue with my Do Until loop only running once, maybe I'm just not understanding how the loop works exactly.

 

I set the variable to "Pending", I want it to loop and send reminders till it gets approved. Once it is approved it will set the variable to "Complete", which meets the condition and stops.

 

What happens is when it hits the 2 day mark (if they haven't approved it yet), it sends them a reminder email and the loop stops. Still waiting on Approval to go through.

 

My Flow:

 

Approval Flow - Do Until.PNG

 

Thanks,

Johnathon

1 ACCEPTED SOLUTION

Accepted Solutions
ScottShearer
Super User
Super User

@Johhny 

In the loop action, click on Change limits.  Take a look at the timeout.  By default the loop will stop after 60 loops or one hour - whichever comes first.  Is your loop timing out?  You might try setting the timeout to P30D for 30 days.

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

View solution in original post

4 REPLIES 4
ScottShearer
Super User
Super User

@Johhny 

In the loop action, click on Change limits.  Take a look at the timeout.  By default the loop will stop after 60 loops or one hour - whichever comes first.  Is your loop timing out?  You might try setting the timeout to P30D for 30 days.

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

View solution in original post

@ScottShearer 

 

Oh, so the "PT1H" will automatically do a loop for timeout? It's not based on the delay loop?

 

I'm assuming that's the issue then, thanks!

@Johhny 

Correct - your loop is timing out.  If the top of the loop is hit after 1 hour, it will time out.

Configure per my screen shot below to extend the timeout to 30 days (max time a Flow can run):

Limit.jpg

 

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

@ScottShearer 

 

Great, thanks for the help!

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (1,159)