How do I handle errors in my pathways?#
When designing your flow logic, it's a good practice to consider potential errors, and set up methods to handle them gracefully. With an error pathway, you can control how Ensemble responds to a pathway execution failure.
Before you begin#
Investigating errors#
Failed executions can be investigated using:
Testing and debugging#
- Learn how to test node inputs and outputs
- Learn how to debug a pathway with data from earlier executions
Create and set an error pathway#
For each pathway, you can set an error pathway in pathway Settings. It runs if an execution fails. This means you can, for example, send email or Slack alerts when a pathway execution errors. The error pathway must start with the Error Trigger.
You can use the same error pathway for multiple pathways.
Cause a pathway execution failure using Stop And Error#
When you create and set an error pathway, Ensemble runs it when an execution fails. Usually, this is due to things like errors in node settings, or the pathway running out of memory.
You can add the Stop And Error node to your pathway to force executions to fail under your chosen circumstances, and trigger the error pathway.