Loop Done happens more than once

Describe the problem/error/question

I am exiting a loop with 2 items on “Done” - Why?!

I want to understand and also a work around as it looks like a bug.

What is the error message (if any)?

no error message

Please share your workflow

Share the output returned by the last node

2 items:

Information on your n8n setup

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

Goodmorning @Roee_Aizman, the node that grabs these items is the `search records` node. So in Airtable you search the records from the base Project leads and table leads. There is no filter on this query and a limit of 2. So if there are more than one leads in this table it will always generate 2 items as result.

The loop node will always output the same amount of items as it’s being fed. Could you elaborate on the goal of the workflow? Maybe I can help further.

Hey ntoll01

Loop should LOOP the number of times and DONE should occur ONCE, right?

Why Done is running twice.
I have 2 items which runs in the loop and I want DOne to run once and send me the third email
It is just for testing and I should have 3 emails and not 4.
What cause the “Done” to run more than once?
I am asking myself what is “Done”? Done is what happens after everything completes…

Sorry, what do you mean I connected the loop to itself?

When first loop finishes I want to do the second loop and expect only 1 Done.

I didnt connect the loop to itself

1 Like

Tried myself as well… i think this it supposed to work the Loop node.

When the loop finishes processing, the “Done” branch outputs all the items that were originally input to the Loop node. This allows you to perform actions on the entire set of processed items after the loop completes. The number of items output on “Done” will match the number of items that entered the loop, and the structure of each item will depend on the processing done inside the loop.

If you want to aggregate or summarize the results into a single item (for example, to pass all results to a single node like an AI agent), you can use the Aggregate node after the loop. This will combine all the items into one, which is often useful for downstream processing that expects a single input object rather than an array of items.

Yu are just missunderstans the purpouse of the node itself.

It is not happening all the time so I will be greatful if someone expert can look into it.
Done happens once.

Can someone look into this and help me understand why and howcome n8n decides to be a stranger to the Done mechanism? or what am I doing wrong?

1 Like