---
schema_version: "1"
id: 09b87827b6e55aa955c4a579560a160ba7f39fd83178d509f05ba31b6611eb8b
title: Error Handling in Integration Procedures (Managed Package)
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.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.os_error_handling_in_integration_procedures.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 34cb5cfdd7e3d9ff1c2b19799abd92b3254a9ff176d936251df05f9e7a4959ab
description: For the managed package runtime, you can configure the conditions for success or failure of an Integration Procedure action or group of actions. You can also configure error logging.
products:
  - Omnistudio
release: "264"
---
# Error Handling in Integration Procedures (Managed Package)

For the managed package runtime, you can configure the conditions for success or failure of an Integration Procedure action or group of actions. You can also configure error logging.

![Managed Package app icon](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio_for_managed_packages-264-0-0-production-enus/aa2554ec-624a-4ee6-8da4-6435670e6e62/resources-global/_corporate/images/managedpackageicon.png) This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see [Omnistudio Help](https://help.salesforce.com/s/articleView?id=xcloud.os_omnistudio_standard.htm&language=en_US).

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 Using Try-Catch Blocks (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_handle_errors_using_try_catch_blocks.htm&release=264.0.0&type=5 "For the managed package runtime, a Try-Catch Block lets you \"try\" running the steps inside it and then \"catch\" the error if a step fails.").
- Fail On Step Error: Enable this option to terminate the Integration Procedure if the conditional formula determines that the step has failed.

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio_for_managed_packages-264-0-0-production-enus/aa2554ec-624a-4ee6-8da4-6435670e6e62/images/icon_note.png)

Note

An action that returns a list cannot use returned data in its Failure Conditional Formula.

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 Using Try-Catch Blocks (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_handle_errors_using_try_catch_blocks.htm&release=264.0.0&type=5 "For the managed package runtime, 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 (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_response_action_for_integration_procedures.htm&release=264.0.0&type=5 "For the managed package runtime, 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

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio_for_managed_packages-264-0-0-production-enus/aa2554ec-624a-4ee6-8da4-6435670e6e62/images/icon_note.png)

Note

Error logging is supported in Omnistudio for Managed Packages but not Omnistudio. For details, see [Enable Error Logging (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_enable_error_logging.htm&release=264.0.0&type=5 "For the managed package runtime, in Winter '20 and later releases, you can write Integration Procedure errors to Vlocity Error Log Entry SObject records by setting ErrorLoggingEnabled to true. ErrorLoggingEnabled is a Custom Setting under General Settings.") and [Send Data to the Error Log (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_send_data_to_the_error_log.htm&release=264.0.0&type=5 "For the managed package runtime, by default, the input to a failed step is sent to the InputData__c field in a Vlocity Error Log Entry SObject record. You can send data to a different Vlocity Error Log Entry field if a step fails.").

- **[Enable Error Logging (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_enable_error_logging.htm&release=264.0.0&type=5)**  
    For the managed package runtime, in Winter '20 and later releases, you can write Integration Procedure errors to Vlocity Error Log Entry SObject records by setting ErrorLoggingEnabled to true. ErrorLoggingEnabled is a Custom Setting under General Settings.
- **[Send Data to the Error Log (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_send_data_to_the_error_log.htm&release=264.0.0&type=5)**  
    For the managed package runtime, by default, the input to a failed step is sent to the InputData\_\_c field in a Vlocity Error Log Entry SObject record. You can send data to a different Vlocity Error Log Entry field if a step fails.