ERROR: Past Node Data Wont pass through Code Nodes After a few test runs (Version 1.46.0) (Cloud)

Data from nodes before a code node can no longer be used after a few runs of a workflow without the issue. This is works fine for production workflows but occurs in test workflows in the cloud workspace since the update to 1.46.0. This makes workflows unusable after they have been tested many times. Nodes input is missing when they have worked hundreds of times before. This error goes away after a few hours but then reoccurs again after a more test runs.

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:

hello @Jeremy_C

The error is quite straightforward. You are trying to access an item, that is not possible to access. On the screen you can see that the Code19 node has 2 items, but after the Code11 Node you have only 1 item, so you can’t access the .item property hereafter. You either must use $<nodename>.last().json or $<nodename>.first().json if you want access last item or the first one.

But If you have more than 2 items - this logic won’t work at all