Loop node executes 'DONE' branch before 'LOOP' branch?

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

Information on your n8n setup

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

I’m on the n8n cloud env.
Anyone else able to make sure the ‘Done’ branch is run only after all the loops are executed?

I have the same issue. Did not found a solution so far :frowning:

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.