Looping multiple flows with a merge node

Describe the problem/error/question

I want to use 2 looping flows to combine in one merge node.

The first is a loop where 3 images get collected. This loop should be done for every input image. So if i put in 2 images it should create 6 images in total. In every loop that should fill slot 1,2 and 3.

The second loop I want to loop only once. This is where data gets collected once as a reference for the other images that get passed in.

In the first iteration everything works fine. But in the second iteration the second loop doesn’t output any data ( i think because it doesn’t get triggered) but the data is already there.

So in the second iteration i want to put the result from the first iteration into the fourth slot (in the merge node) and that should get repeated for every iteration.

But that doesnt work right now, sadly…

First iteration seen below, it should be like this every iteration, but the ‘floorplans’ get left out in the other iterations:

What is the error message (if any)?

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

Information on your n8n setup

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

I never encounter that error, at first look what I can suggest you is to check if you really need that loop over items node. n8n automatically loops nodes when you have more than one data entry.

By default, n8n nodes are designed to process a list of input items (with some exceptions, detailed below). Depending on what you’re trying to achieve, you often don’t need the Loop Over Items node in your workflow. You can learn more about how n8n processes multiple items on the looping in n8n page.

Sadly I will not be able to help you further on this, but the community is very active and you should get an answer @Joris_van_Aken :slight_smile: