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 III
Super User III

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 blogPower 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?

 

abm
Super User III
Super User III

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 blogPower 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.

 

 

 

abm
Super User III
Super User III

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 blogPower Automate Video Tutorials

Helpful resources

Announcements
MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MSFTBizAppsLaunchEvent

Experience what’s next for Power Virtual Agents

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Users online (18,460)