cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
NoNameOH
Frequent Visitor

Switch Case Set Variable not working consistently

In one of our workflow, we have switch case statement within do until with set variables that navigates to different case. At times, the Do loop is completed without transfering to case statement.

NoNameOH_0-1593468606121.png

Even though value is what is expected in the Case Statement, some times it's  ending the loop without going to the case statement.

 

This behavior is inconsistent since it works at times. This used to work without any issues and we are seeing this change today; Either when approved or rejected it's not working correct.

 

How do we fix this issue?

5 REPLIES 5
abm
Super User
Super User

Hi @NoNameOH 

 

This could be the timeout of Do until loop which is default to a minute (60 seconds).

 

https://powerusers.microsoft.com/t5/General-Power-Automate/Do-Until-Need-help-understanding-limits/t...

 

There won't be any errors of timeout. It simply skips the Do Until loop and execute the next step after 60 seconds.

 

Try increasing the limit and see if that works or not.

 

Thanks

 

Thanks

 

 



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials
NoNameOH
Frequent Visitor

What's the max limit that can be set ? This powerautomate runs at the tenant level. Is there any way to prevent it from happenning?

 

Hi @NoNameOH 

 

According to this article you can set the maximum of 5000 which is 72 hours.

 

https://www.sharepointsiren.com/2018/10/approval-flow-with-weekly-reminder-getting-passed-30-day-lim...

 

Thanks

 

 



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials
NoNameOH
Frequent Visitor

Does it continuously check the do until loop if so, what's the time frame? if the action is not completed within 72 hours , will it time out?

 

The Do until has a couple of approvals it goes  to next state when the approval in the previous state is complete. So, the Do until has to stay active for 30 days. I was planning to cap to 5000 iterations with timelimit P30D. Should we add delays to every switch/case ? if so, can you recommend some limits.

 

 

 

Hi @NoNameOH 

 

 I haven't tested to confirm it but my best guess is it will timeout. 

 

You can set timeout in approvals.

 

https://www.o365dude.com/2018/06/02/timeout-flow-approvals/

 

Thanks

 

 



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials

Helpful resources

Announcements
Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Users online (2,016)