Error handling & Monitoring
How to handle errors in Frends Processes.
Process error handling
Catch shape

Error Subprocess

Monitoring Rules

Last updated
Was this helpful?
How to handle errors in Frends Processes.
Frends implements multiple ways to handle errors from Processes. While the best option is to have no errors, working with multiple external systems means not everything is controlled by Frends.
Frends error handling works as a layered system with three distinct scopes: within a single Process, over the Process execution, and across the entire Environment from a number of executions. A well-designed integration typically uses all three together — the innermost layer recovers from expected local failures, the middle layer reacts when a Process as a whole fails, and the outermost layer watches patterns that no single Process execution could ever detect on its own.
Process-level error handling covers failures that occur within a single Process execution. Frends provides two mechanisms here — a Catch shape for recovering from known errors inline, and an Error Subprocess for handling anything that goes unhandled by the time the Process stops.
Each Process in Frends can implement its own error handling using a Catch shape (Try-Catch scope). This is the right choice when an error is known and recoverable — skipping bad records, applying retry logic, or logging failures without aborting the rest of the execution.

When an error is not caught inside the Process, the Error Subprocess takes over. If any unhandled error occurs, the configured Subprocess is invoked to handle it — typically sending an alert, writing to a database, or archiving the failed payload. Because execution has already stopped at this point, this layer is suited for alerting, notification, and cleanup, not for resuming the original logic.

To learn more about error handling in Processes, we have an excellent guide covering how it works.
For conditions that only become visible across many executions, Frends includes Monitoring Rules. These operate at Environment level and can detect cross-process patterns, volume anomalies, and frequency issues — for example, the same error occurring five or more times in one hour, or a daily sync that has not run. Monitoring Rules target promoted values from Processes, and can trigger either a simple email alert or a full Process to handle the condition.

To learn more about Monitoring Rules, check out the reference documentation about them.
Last updated
Was this helpful?
Was this helpful?

