Debug Flows using execution logs, step-by-step inspection, and testing tools to identify and fix issues.
The fastest way to debug is running the Flow with test inputs:
The panel shows each step’s input, output, and execution time.
View detailed logs for all Flow executions:
Logs include:
See Working with Logs for more details.
In the test execution panel, click any step to see:
This helps identify which step is failing or producing unexpected output.
Error: Cannot read property 'output' of undefined
Cause: Referencing a step that hasn’t executed yet or doesn’t exist.
Fix: Check step name spelling and execution order.
Error: Request failed with status 401
Cause: API authentication issues or invalid endpoint.
Fix: Verify API keys, check headers, test endpoint externally.
Error: Step execution timed out
Cause: Step took too long (default 5-minute step timeout, 15-minute Flow timeout).
Fix: Optimize slow operations or adjust the step timeout.
Error: Unexpected token in JSON
Cause: Malformed JSON in request body or transform step.
Fix: Validate JSON syntax, check for unquoted strings or trailing commas.
Insert transform-data steps to inspect variable values. Flow variables are available by their outputVariable name:
Check the step output in the execution results to see the returned values.
Build Flows step by step, testing after each addition:
If a step has complex logic, break it into smaller steps:
Instead of one transform step doing everything, use:
This makes it easier to see where logic fails.
Add fallbacks to prevent null reference errors:
Run Flows with edge cases: empty inputs, null values, large datasets, invalid data. This reveals issues that normal testing might miss.
Test both branches:
Check that variables referenced in conditions exist and have expected types.
If Flows are slow:
Add validation steps at the beginning of Flows using a transform-data step: