AI Help

How do I pass an error from an n8n sub-workflow back to its parent?

Define whether child failure should fail the parent or return an explicit error result, and configure both workflows to honor that contract.

Steps to follow

  1. Inspect whether the parent waits for the sub-workflow and how the execute node handles errors.
  2. For required work, preserve failure propagation. If returning error data, give it an explicit status and branch on it in the parent.
  3. Record parent and child execution IDs and test a controlled child failure. Continued execution must still reflect the failed business action.

Example in practice

Illustrative example. A child enrichment timeout leads the parent to review_required instead of publishing a completed enrichment result.

Related AI help

Official guidance

n8n documentation