Node-RED Loop Issue: Second File Not Processing in Second Loop

Hi everyone,

I’m encountering a peculiar issue with a loop in my Node-RED workflow and I’m hoping someone can help me troubleshoot it.

Workflow Overview:

My flow is designed to:

Download two files from an FTP server using the “FTP2” node.
Loop through each of these files using the “Loop Over Items1” node.
Inside the first loop, perform another loop (“Loop Over Items”) for further processing of each file.
Process the data and send it via a POST request using the “post_pdf2M1” node.
Finalize the flow with the “Replace Me1” node.
The Problem:

The first file downloaded from FTP is processed correctly, going through both loops and completing the flow. However, the second file only goes through the first loop (“Loop Over Items1”) and does not enter the second loop (“Loop Over Items”).
I try with different pdfs, the promblem is always and only for the second file.

Any insights or suggestions on why the second file isn’t being processed in the second loop would be greatly appreciated!

Thanks in advance for your help!

Information on your n8n setup

  • **n8n version:**1.76.1
  • **Database (default: SQLite):**default
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • **Running n8n via (Docker, npm, n8n cloud, desktop app):**docker
  • **Operating system:**win 11 24h2

Hey @Alessio_Lanzillotta , it looks like you need to reset the 2nd loop. See Loop Node Only Processes the First Item - How to Fix? - #12 by Jon for explanation and details.

2 Likes