"On Error" option do not work on at least Sort node

Describe the problem/error/question

Settings “on error” set to continue using error output doesn’t work at least on Sort node.
Node just throwing an error without going to error branch.

Screen from my nodes


Information on your n8n setup

  • n8n version: 1.79.2

hello @rafuru

Unset the switch “Always Output Data” from the Split Out node or add an IF node checking that the $json object is not empty.

If i unset AOD, workflow will stop. I have a loop there so it’s not feasible solution.
I will add IF node as manual check, thanks.
But problem is still to repair.

Maybe n8n will add that functionality to the Sort node, but it’s quite rare case to use the Sort node. As not all nodes actually support the Error branch. Better to submit a bug report via the GitHub

Do you, by chance, know if any way to know what nodes do support it is there? Any explicit listing or underlying principle?

I don’t have a list, but mostly all base nodes should work with it.

You can check manually if the node TS file contains the new method this.continueOnFail(), like here

1 Like

Thank you for the tip!

Looks like IF channels errors (faulty items) to the false branch when it should throw exception but either of Continue options is selected.

It’s quite difficult to break the If node, as almost all expressions will be evaluated to the undefined in case of issues

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