My guess is it’s the loop delay. The loop function has a built-in delay of about 5 minutes per cycle, this is to prevent accidental infinite loops from overloading the server. Depending on the situation you can sometimes lay it out differently so you don’t need as many cycles or run different cycles simultaneously through parallel actions. The For Each action can also be used to loop and doesn’t have a delay, but it needs a (dummy) collection variable input that needs at least as many entries as the number of cycles you want the loop to go through which can be a bit cumbersome.
Ok, not very helpful to use Loop then. But I saw that even after couple of hours, there were no more items created. Am I missing any other settings or its some kind of bug?
It’s difficult to say from this side. Workflow history can sometimes reveal where a workflow currently is in progress (like what it has done and what is still pending) or give specific errors. The loop delay should just show the loop as still in progress (yellow coloured action in the history overview), and with an inactive time since the last cycle, but it really shouldn’t take hours to start the next cycle. What does the workflow history show with regards to the loop? Is it in progress and pending, is it complete (green colour), is there an error (you can find in the detailed workflow history)?
Hi @Nayan20
As @BobR has stated, its difficult to pinpoint the root cause of the issue(s).
You need to DEBUG your workflow. Use as many or Log to History action as you need during the debugging process.
1 Log action before entering LOOP
1 Log action at the start of the LOOP
X Log action inside the LOOP. Show LOOP variables
1 Log action at the end of the LOOP
1 Log action after exiting LOOP
Test with the following workflow scenario
- Count is 0. No Looping (does not enter Loop)
Outcome. Log for Before Enter and After Exit - Count is 1. Perform loop action once and exit
- Count is 2.
- Count is 3 or more
Hopefully this can help to troubleshoot the issues
Perhaps adding a Commit Pending Actions action after the item creation and the calculation...