Problem with items in the cycle node

Describe the problem/error/question

The problem is so: When i give into the cycle two different images, on the output of the cycle node there is the first image for the first run and the second image for the second run, but when I move to the next node there is the first image for both first and second run of the cycle on the input of the node.

Please share your workflow

Cycle node on the output:
First run:


Second run:

Cycle node on the input of the next node:
First run:


Second run:

Information on your n8n setup

  • n8n version:
    1.77.3 (Self Hosted)
  • Database (default: SQLite): Don’t know
  • n8n EXECUTIONS_PROCESS setting (default: own, main): Main
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
  • Operating system: Windows

Hello @ivankry I think this is likely an issue with binary data handling across Cycle node iterations. Try these fixes:

  1. Add a “No Operation” node immediately after your Cycle node - this resets item structure and often fixes binary data passing issues

  2. Alternative approach - instead of Cycle, try to split it in batches

  3. If you must use Cycle, add this Function node after it:

// Fix binary data reference
return {
  json: $input.item.json,
  binary: $input.item.binary
};

This issue happens because binary data references can get mixed up when passing through the Cycle node’s iterations.

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