"On Error" does not work as it should


Just upgraded to 1.18 from 0.230

I have a node that phrases an array. In 0.230 if some items were “empty” the workflow would just proceed and return the “remaining” data.

In 1.18 even though i tell it to continue, it does not pass on the output.


and on the next node…

How can i get it back to working?

Share the output returned by the last node

Information on your n8n setup

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

as a workaround, i am now counting the items in the array and use an if statement:

if there is a better way?

1 Like

Hi @xewonder, this change behavior is expected after upgrading to n8n v1 I am afraid. This is explained in a bit more detail here:

The continue setting only applies to the node logic itself, but the expression is resolved outside of the node-specific logic. Perhaps you want to consider a different expression here not relying on the exact amount of items of your Get next positions node? For example:

{{ $('Get next positions').all().map(e => e.json.position2).join('') }}

This should work regardless of the number of items on your Get next positions node. I’ve tested this using this example workflow:

1 Like

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