UI Input/Output confused with two code nodes

I have two code nodes, each set to “Run once for each item”. In my case, there is only one row, consisting of an array of records.

What is the error message (if any)?

After running the workflow:

  • When I double click on Step 1, the input shown is the input for step 1 but the output shown is the output for step 2.
  • When I double click on Step 2, both the input and the output displayed are the output for step 2.

Please share your workflow

Share the output returned by the last node

Information on your n8n setup

  • n8n version: 1.64.3
  • Database (default: SQLite): Postgres
  • n8n EXECUTIONS_PROCESS setting (default: own, main): main
  • Running n8n via (Docker, npm, n8n cloud, desktop app): npm
  • Operating system: Amazon Linux 2023

Hey @Lee_S , your example indeed produces unexpected results. We will look further into why it is happening. I can only assume right now that it has something to do with consecutive use of Code nodes.

Thanks for bringing it to our attention.