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
- Inspect whether the parent waits for the sub-workflow and how the execute node handles errors.
- For required work, preserve failure propagation. If returning error data, give it an explicit status and branch on it in the parent.
- 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
- How do I merge n8n branches by a record ID instead of item position?
- How do I stop an AI enrichment workflow from overwriting a manually edited Sheets row?