$input.all() is taking the next item instead of the current run

Describe the problem/error/question

I am experiencing this issue:

I am using the code node with the expression $input.all().

This is my flow:

loop getting 1 item per run, process this item, and go to the next item in the next run.

Sometimes I experienced that the code node with $input.all() was returning the value from the next execution.

Example:

run 1 value 123, after code node value 123,

run 50 value 617, after code node value is 756

run 51 value 756, after code node value is 879

run 52 value 879, after code node value is 415

What is the error message (if any)?

No error message

Please share your workflow

Information on your n8n setup

  • n8n version: 1.51.0
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app): selfhosted
  • Operating system: macos

@Gabriele_Bracciali see here

3 Likes

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