Route API errors to ErrorHandlingSchema
Recipe Tools
What it does
When a real-time call arrives for the Master Orchestrator, this automation monitors for errors and routes them to ErrorHandlingSchema. It enriches each error by searching the Global Error Code Table lookup table before logging the entry.
Who it's for
Engineering teams who need to centralize API error handling and track issues across callable integrations and external APIs.
How teams use this
Centralize errors from callable integrations
When a callable integration fails, the error is automatically routed to ErrorHandlingSchema with full context. The team sees all integration errors in one place without manual logging.
Track external API failures
External API errors are captured and added to ErrorHandlingSchema in real time. The lookup table enriches each error with standard codes so the team can identify patterns.
Add custom error severity levels
Extend the lookup table to include severity levels and set a condition to filter only critical errors into a separate alert list. This requires adding a severity column to the Global Error Code Table.
Route errors to incident management
Retarget this automation to send ErrorHandlingSchema entries to an incident management system instead of just logging them. The flow stays the same and only the final destination changes.
How it works
- Listen for a new call. A real-time call event arrives for the Master Orchestrator in Workato Service, starting this automation to monitor for errors.
- Create error schema list. Workato App creates an ErrorHandlingSchema list to hold all errors captured during this execution cycle.
- Route by origin type. Check if the error origin is a callable integration or external API. Add the error to ErrorHandlingSchema. If neither, fetch integration details first.
- Enrich error with code table. Search the Global Error Code Table lookup table to find matching error codes and details, then add the enriched entry to ErrorHandlingSchema.