---
schema_version: "1"
id: 119691f0c6c32b311996065e878b1ac1a925e7a32d5a1909a0729a3e47617f2b
title: Try-Catch Block
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/os_try_catch_block.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.os_try_catch_block.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 251a2d39fb1f4cf4f9b3a8925954b5fb0244461eb1df81268affba91624975c2
description: A Try-Catch Block lets you "try" running the steps inside it and then "catch" the error if a step fails.
products:
  - Omnistudio
release: "264"
---
# Try-Catch Block

A Try-Catch Block lets you "try" running the steps inside it and then "catch" the error if a step fails.

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
      <colgroup>
        <col>
        <col>
      </colgroup>
      <thead class="slds-text-title_caps ">
        <tr class="">
          <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d40477e34">
            <p style="margin-bottom:0;">Property</p>
          </th>
          <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d40477e40">
            <p style="margin-bottom:0;">Description</p>
          </th>
        </tr>
      </thead>
      <tbody>
        <tr class="">
          <td data-label="Property" class="slds-cell-wrap" style="vertical-align:top;" headers="d40477e34 ">
            <p style="margin-bottom:0;">Fail on Block Error</p>
          </td>

          <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d40477e40 ">
            <p style="margin-bottom:0;">Specifies that if the Try-Catch Block fails, the entire Integration Procedure fails.</p>
          </td>

        </tr>
        <tr class="">
          <td data-label="Property" class="slds-cell-wrap" style="vertical-align:top;" headers="d40477e34 ">
            <p style="margin-bottom:0;">Failure Response</p>
          </td>

          <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d40477e40 ">
            <p>A response to return if the Try-Catch Block fails. The value can be a formula.</p>
            <p style="margin-bottom:0;">A Try-Catch Block can have both a Failure Response and a Custom Failure Response.</p>
          </td>

        </tr>
        <tr class="">
          <td data-label="Property" class="slds-cell-wrap" style="vertical-align:top;" headers="d40477e34 ">
            <p style="margin-bottom:0;">Custom Failure Response</p>
          </td>

          <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d40477e40 ">
            <p style="margin-bottom:0;">A Remote Class and Remote Method of an Apex class to execute if the Try-Catch Block fails. The Apex class must implement&nbsp;VlocityOpenInterface.</p>
          </td>

        </tr>
      </tbody>
    </table>