Error Management
An error in a workflow is not a failure in itself: it is a signal. This guide describes the complete incident management lifecycle in Ecosystem — anticipate failures, capture errors, analyze the causes, and resolve incidents — so no failed execution goes without an exploitable trace.
The lifecycle of an error
| Phase | Goal | Ecosystem component |
|---|---|---|
| Anticipate | Prevent the propagation of corrupted data | Extractors, Condition node |
| Capture | Centralize the failure logic | On Error node, Stop on failure option |
| Analyze | Understand the exact state at the moment of the error | Traces |
| Resolve | Restart cleanly after the fix | Trace replay |
1. Anticipate (prevention)
Validate API responses with extractors
Systematically use extractors (JSONPath) in your HTTP(S) Request nodes. If critical data is missing from the response, the node fails immediately instead of propagating corrupted data to the following nodes.
The HTTP node injects its response into context.lastResponse:
{
"lastResponse": {
"status": 201,
"success": true,
"headers": {
"content-type": "application/json",
"ratelimit-remaining": "49"
},
"data": {
"id": "12345",
"status": "created"
}
},
"orderId": "12345"
}
In this example, a JSONPath extractor $.data.id copied the identifier into context.orderId. Without this value, the node fails — and the failure is then handled by the On Error node.
Check business content with a Condition node
An API can respond 200 OK while returning invalid business content (empty list, missing field, unexpected value). After each HTTP request, place a Condition node that checks the state of the response:
{{lastResponse.success}} === true && {{lastResponse.data.items.length}} > 0
- True branch: processing continues
- False branch: switches to dedicated logic (alert, fallback, On Error node)
2. Capture (reaction)
The On Error node, an overall safety net
The On Error node is the safety net of your workflow: it centralizes the failure logic (alert by email, log to an external system, rollback) as soon as a node of the workflow fails. It is a starting point: you cannot connect to it, it triggers automatically on an error.
It receives the error information from the failing node:
{
"error": {
"message": "HTTP 503 Service Unavailable",
"code": "HTTP_ERROR",
"details": {}
},
"node": "Get_Customer_Profile",
"lastResponse": {
"status": 503,
"success": false
}
}
The "Stop execution on failure" option
On each node, the Stop workflow execution on failure option decides whether an error stops the whole workflow or whether the execution continues:
| Value | Behavior | Recommended use |
|---|---|---|
true (default) | The workflow stops immediately — or forwards the error to the connected On Error node | Critical steps: payment, stock update, database write |
false | The workflow continues; the error remains available in lastResponse | Non-blocking steps: optional enrichment, logging |
3. Analyze (debugging)
Reading a trace
The execution trace is the source of truth for debugging: it contains the exact state of the context and data at the moment of the error, node by node. In the event of an incident, always start from the failing node, check its error message, then go back up the workflow.
Anonymization vs visibility
By default, Ecosystem hides certain sensitive data in traces. If you need to see the details of a complex technical error, check the anonymization settings of the node concerned (Anonymize option): disable it only if necessary and temporarily.
Never deanonymize personal data (PII): a non-anonymized trace contains the raw data details. To diagnose, prefer a test execution or a replay in Complete mode on non-sensitive data.
4. Resolve (remediation)
Replaying a trace
From the trace history, you can rerun a failed execution after fixing a configuration or waiting for a third-party service to come back online:
- Open the failed trace
- Fix the workflow or the input data
- Click Rerun the workflow — the replay also lets you choose a different tracing mode for a complete diagnosis
- Check the new execution in the history
Checklist
- Every HTTP call has an extractor on the critical data
- A condition checks
lastResponse.successafter each request - An On Error node centralizes the failure alerts
- Critical steps have the Stop on failure option enabled
- Nodes handling PII remain anonymized