---
schema_version: "1"
id: 3c8178ce1797e7fe7a247f39479d3e9912f1c3b3e4d3c6f96383fc27cd4a22e6
title: Handle Errors in Integration Procedures
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/os_error_handling_in_integration_procedures_55179.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.os_error_handling_in_integration_procedures_55179.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 56e9d9bc699dbc09287160f861842ce832c33041c62c430d1a87b31cce80489c
description: You can configure the conditions for success or failure of an Integration Procedure action or group of actions.
products:
  - Omnistudio
release: "264"
---
# Handle Errors in Integration Procedures

You can configure the conditions for success or failure of an Integration Procedure action or group of actions.

In each step, you can set the following properties:

- Failure Conditional Formula: Specify a formula that evaluates to TRUE if the step has failed to execute successfully. See the second example in [Handle Errors by Using a Try-Catch Block](https://help.salesforce.com/s/articleView?id=xcloud.os_handle_errors_using_try_catch_blocks_49845.htm&release=264.0.0&type=5 "Handle errors in Integration Procedures by using Try-Catch Blocks. A Try-Catch Block lets you \"try\" running the steps inside it and then \"catch\" the error if a step fails.").
    
    ![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio-264-0-0-production-enus/f526eaa8-ae05-487a-8944-4bb99b0b78ac/images/icon_note.png)
    
    Note
    
    An action that returns a list cannot use returned data in its Failure Conditional Formula.
- Fail On Step Error: Enable this option to terminate the Integration Procedure if the conditional formula determines that the step has failed.

To capture detailed information about failed Integration Procedure steps, configure error logging. See [Enable Error Logging for Integration Procedures](https://help.salesforce.com/s/articleView?id=xcloud.os_ip_enable_error_logging_for_integration_procedures.htm&release=264.0.0&type=5 "Enable error logging to capture detailed information about failed Integration Procedure steps. Omnistudio writes all Integration Procedure errors to the OmniComponentErrorLog sObject records.").

To configure conditions and behavior for the success and failure of a group of actions, you can use a Try-Catch Block. See [Handle Errors by Using a Try-Catch Block](https://help.salesforce.com/s/articleView?id=xcloud.os_handle_errors_using_try_catch_blocks_49845.htm&release=264.0.0&type=5 "Handle errors in Integration Procedures by using Try-Catch Blocks. A Try-Catch Block lets you \"try\" running the steps inside it and then \"catch\" the error if a step fails.").

To add debugging information to the Data JSON, use Response Actions. For details, see [Response Action for Integration Procedures](https://help.salesforce.com/s/articleView?id=xcloud.os_response_action_for_integration_procedures_54655.htm&release=264.0.0&type=5 "The Response Action ends an Integration Procedure and returns data to the entity that called it. It can also add data to the data JSON or end conditionally. Response Actions are useful for debugging Integration Procedures.").

HTTP actions add details about the results of the call to the Data JSON `ElementNameInfo` node as follows:

- Response headers, for example, `Content-Type`
- Status of the response
- Status code, for example, 200

- **[Enable Error Logging for Integration Procedures](https://help.salesforce.com/s/articleView?id=xcloud.os_ip_enable_error_logging_for_integration_procedures.htm&release=264.0.0&type=5)**  
    Enable error logging to capture detailed information about failed Integration Procedure steps. Omnistudio writes all Integration Procedure errors to the OmniComponentErrorLog sObject records.
- **[Handle Errors by Using a Try-Catch Block](https://help.salesforce.com/s/articleView?id=xcloud.os_handle_errors_using_try_catch_blocks_49845.htm&release=264.0.0&type=5)**  
    Handle errors in Integration Procedures by using Try-Catch Blocks. A Try-Catch Block lets you "try" running the steps inside it and then "catch" the error if a step fails.