Bug in Merge node?

Merge node in

Describe the problem/error/question

I have a Merge node that is supposed to choose the items from Branch 1.

What is the error message (if any)?

So, given these inputs:

Input 1: N items
Input 2: 1 item

I expect the node to produce exactly N items.

Instead, the node outputs sometimes 1 item, sometimes N items, sometimes <N items. The result seems to depend on the order of arrival of data on inputs 1 and 2.

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

When the node returns just 1 item instead of the correct N, it is always some random item from the correct branch, input 1,

Information on your n8n setup

  • n8n version: 1.114.3
  • Running n8n via (Docker, npm, n8n cloud, desktop app): docker
  • Operating system: Linux

Oh wait, does “30 items total” in my picture above really mean that the number of items is 30 across all runs, not 30 items in the current run. Something like that?

Correct u have multiple runs there, so that will be the cause of your issues.

1 Like

Ok, “Run” of what? the whole workflow? just than node?

How can i reset the “Runs”, so that the counts of items on the workflow UI made sense?

Runs of the previous node next to the checkmark it says how many if not just the one.

Depends on ur flow. Every node runs for all inputs so it is getting multiple inputs somewhere.

Have u done the courses?

No, I have not done any courses. The good thing is that N8N is so intuitive that I (almost) understand it from day one, except some one off surprises like this one…

Thanks for helping me fill those gaps! It is more or less clear now.

1 Like

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