Nested loop execute arrays only once

Hello everyone,

I am working on a workflow in n8n where I have a “Loop Over Items” node that should iterate over an array of data (containing Defender information) to perform an update query.

The flow is structured as follows:

  • “Loop Machines4”: manages the data for multiple customers (each customer has a separate array with Defender data).
  • Each time the loop moves to the next customer, the “Loop Over Items” node should iterate over the items of the corresponding array for the new customer’s data and perform the update query.

The issue I’m encountering is that when the loop moves to the next customer, the array with Defender data is correctly loaded, but the “Loop Over Items” node never enters the loop to perform the update for the new customer’s items. It seems that the new array of data is not being handled correctly or passed properly to the “Loop Over Items” node.

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:

Hey @EastinV welcome to the community!

I’ve found the editor to struggle with rendering updates to a running workflow with nested loops so would advise checking the external output to validate rather than relying on the cached data/numbers given in the canvas.

I think it would help if you could provide a simplified version of the problem eg. strip away most of the nodes and just leave in the minimum + loops - and see if it’s reproduceable. If you can, definitely share it in this thread again.

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