Hello. Based on your screenshots, it seems to me that
It looped twice but failing on the second loop. Notice that the first code node (debug code before) ran twice but the next node errored. That’s why the looping is stopped. Any error in any node would stop the execution. You can use Retry On Fail setting or On Error settings to handle errors in nodes, so execution continues even if there’s an error.
It likely failed the second time because you have the reset option set in the Loop Over Items node. The reset option would pass the data from the the last node in the loop (in this case the Execute Command ) instead of the original input list. Setting that back to the default false
I also recommend disabling Always Output Data from the Loop Over Items node here. That’s why the done branch on the Loop node has 2 items. The done branch only should output once when the looping is done in order to be useful.
Hi @Mutasem –> I have a quick question. So after the loop runs for 17 items (in my case], how do i get out of the loops? Would it automatically identify that the loop is finished, it should now go ot hte done chain? On the done chain, i can set the next steps?