HELP: LOOP executes DONE before actions, then DONE again for each action loop

ScreenRecording2025-02-09at22.52.59-ezgif.com-video-to-gif-converter

Describe the problem/error/question

Loop over Items executes the items in this order:

  1. DONE branch with the ‘split out’ data
  2. Loop branch #1
  3. DONE branch with #1 data
  4. LOOP branch #2
  5. DONE branch with #2 data

and so on

What is the expected flow?

Finish the loops, then execute the DONE branch with the aggregated JSON from all the loops results

Please share your workflow

I’m getting the same “error”.
Well, it’s not an error, but it’s not running as expected.

So these 4 first items ran as expected.
When it came back to loop again, the fifth run went straight to “done”.

Have you figure it out?

Not yet… I am trying to add an “IF” node as first element of the DONE branch, and set a boolean expression of ‘does the loop have 0 items remaining’ and only then progress. Still working on it to see if it helps…

I think I found the solution here:

pay attention to the “reset” and the “$prevNode.name === “if”” part.

Worked for me!
Hope that helps you

1 Like