Understanding Flow Failures
When a step in your workflow fails, the default behavior is to stop execution:A failed step causes the entire workflow to stop with status
FAILED, and subsequent steps don’t execute.Error Handling Options
Every action step in Activepieces supports error handling configuration:Configure Error Handling
1
Select a Step
Click on any action step in your workflow.
2
Open Error Handling
In the step configuration panel, find the Error Handling section.
3
Enable Options
Toggle the options you need:
- Continue on Failure: Flow continues even if this step fails
- Retry on Failure: Automatically retry the step before failing
Continue on Failure
When enabled, the workflow continues executing even if the step fails:When to Use
Optional Operations
Non-critical steps like logging, analytics, or notifications.
Fallback Logic
When you have alternative steps to handle failures.
Best Effort
Operations that should try but not block the workflow.
Parallel Operations
When processing multiple items and some can fail.
Example: Optional Notification
Retry on Failure
Automatically retry a step before marking it as failed:Retries use exponential backoff to avoid overwhelming failing services.
When to Use
Network Requests
Network Requests
API calls that might fail due to temporary network issues.
Rate Limited APIs
Rate Limited APIs
Services that might return rate limit errors.
Database Operations
Database Operations
Database queries that might face temporary connection issues.
File Operations
File Operations
File uploads or downloads that might be interrupted.
Combining Error Handling Options
You can enable both options for maximum resilience:Error Detection Patterns
Check Step Status
In subsequent steps, check if a previous step failed:Handle Missing Data
Use null coalescing for safe data access:Error Notification Patterns
Send Alert on Failure
Log All Errors
Create a dedicated error logging step:Flow-Level Error Handling
Failed Step Information
Retry Entire Flow
- Manual Retry
- Automatic Retry
From the flow runs page, click Retry on a failed run.
Error Handling in Loops
When a step fails inside a loop:Continue Loop on Errors
To process all items even if some fail:Best Practices
Enable Retries for External APIs
Enable Retries for External APIs
Always enable retry for external API calls that might be temporarily unavailable.
Use Continue on Failure Sparingly
Use Continue on Failure Sparingly
Only enable for truly optional steps. Critical operations should fail the workflow.
Validate Data Early
Validate Data Early
Check data validity before expensive operations.
Log Errors for Debugging
Log Errors for Debugging
Create a logging step that runs even on failures.
Test Failure Scenarios
Test Failure Scenarios
Test your workflows with:
- Invalid data
- Network timeouts
- API errors
- Missing required fields
Common Error Scenarios
HTTP 404 Errors
Runtime Errors in Code
Connection Errors
Debugging Failed Runs
1
View Run History
Navigate to the Runs tab to see all executions.
2
Click Failed Run
Click on a run with status
FAILED.3
Identify Failed Step
The failed step is highlighted with error details.
4
Review Error Message
Read the error message to understand what went wrong.
5
Check Step Input
Verify the input data that caused the failure.
6
Fix and Retry
Update the flow or data, then retry the run.
Next Steps
Debugging
Learn how to debug workflows
Monitoring
Monitor workflow health
Loops & Branches
Handle errors in control flow
Best Practices
Build resilient workflows