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.
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?
This could be the timeout of Do until loop which is default to a minute (60 seconds).
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.
According to this article you can set the maximum of 5000 which is 72 hours.
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.
I haven't tested to confirm it but my best guess is it will timeout.
You can set timeout in approvals.