Edit Fields Node outputting errors to success branch instead of error branch

Describe the problem/error/question

Not sure if this is intended behavior but when I have an error in the Edit Fields node it outputs as part of the output branch and not the error branch (when continue with error branch is enabled). I also have a broader question about testing errors - ie how would I simulate in error with any node to set my error checking logic up?

What is the error message (if any)?

N/A see image below

Please share your workflow

Share the output returned by the last node

Information on your n8n setup

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

There is a syntax error (e.g. {{ $json.locatio }} with a misspelled closing brace) in an Edit Fields node, execution is not branched to the Error Branch even when it is enabled.

This is not a bug — it is designed into some nodes like Set, Edit Fields, and other “transformer” nodes in n8n.

Nodes like Edit Fields don’t throw an exception that interrupts the flow, but rather internally capture the expression evaluation error and include it as part of the output object, especially when:

The “Continue On Fail” option is implicit (even if it’s not visible),
The node isn’t configured to force an error.

In these cases, n8n considers the node execution “successful,” even with errors in the data, and therefore continues on the Success branch.

@Erick_Torres Thank you for the quick answer. My syntax error was intentional to try and trigger the error branch but I guess that makes sense. Do you know if there is someway to trigger a test error of a node to get it’s structure (in my case for logging) or is there some sort of unified error structure that each node follows?

Looks like a bug to me.

If the syntax error cause the workflow to stop.

Then it should go through Error path

Flag to @bartv or there is some misunderstanding here.


I would suggest use a IF node to determine if the location is object or not and throw error on false path.

“If” node is my current solution - how would I flag @bartv? Is there an official way to report bugs?

Please don’t flag team members for help - we’re already up to our ears in work :slight_smile:

1 Like

Apologies I’m new and unfamiliar with this platform. Any ideas on if this intentional or a bug?

Sorry and got it!
Thanks for the notice