In Qntrl Circuit, you can configure error handling while building a circuit. In most cases, state definition errors are detected even before saving the circuit, i.e. when you save the circuit, it runs a compilation check and lists out errors related to its state configurations, logic flow, and design. This will help you to verify and fix errors in your circuit design and configuration even before execution.
Only Functional states, such as Function, Webhook, and Circuit, are bound to have runtime errors, so the error handling feature is only supported for functional states. When you add a Functional state (Function, Webhook, or Circuit), the Error Handling option appears under Configuration on the right panel.
When a functional state runs longer than the expected time, a timeout error occurs. This option is available for Function and Webhook. For handling timeout errors in Code View, the field value "errorType": "Error.TimeOut" will be added.
If a state fails because of insufficient privileges to access the specified code, the error is handled as an authorization failure. This option is available only for the Webhook state. In Code View, the name value "errorType": "Error.AuthorizationFailure" is added.
When a state execution fails due to some exception that cannot be processed, it can be handled using execution failure. In code view, the name value "errorType": "Error.ExecutionFailure" is appended.
You can retry the failed state for a specific number of attempts within predefined intervals using this option.
For example, suppose the Delay is set to 5 seconds, Attempt is set to 3, and Step Delay is set to 2 seconds for a retry.
1st attempt --> 5s * (2 ^ 0) = 5s
2nd attempt --> 5s * (2 ^ 1) = 10s
3rd attempt --> 5s * (2 ^ 2) = 20s
{ "Function for stock status": { "type": "function", "next": "End", "start": true, "function_id": "updatestockstatus_71", "on_error": [ { "error_type": "timeout_error", "retry": { "delay": 3, "attempt": 3, "step_delay": 1 }, "fallback": { "next": "End", "error_path": "$.error3" } }, { "error_type": "custom_error", "error_name": "Error 1", "error_code": "101", "retry": { "delay": 3, "attempt": 3, "step_delay": 1 }, "fallback": {"next": "End","error_path": "$.Error" } } ] } }
Learn how to use the best tools for sales force automation and better customer engagement from Zoho's implementation specialists.
If you'd like a personalized walk-through of our data preparation tool, please request a demo and we'll be happy to show you how to get the best out of Zoho DataPrep.
You are currently viewing the help pages of Qntrl’s earlier version. Click here to view our latest version—Qntrl 3.0's help articles.