Salesforce

How Can I Abort a Flow If an Error Occurs? (Magic xpi 3.x)

« Go Back

Information

 
Created ByKnowledge Migration User
Approval Process StatusPublished
Objective
Description

How Can I Abort a Flow If an Error Occurs? (Magic xpi 3.x)

Magic xpi lets you define the error policy for a specific error code or a range of error codes. These error policies tell Magic xpi what to do if and when an error occurs. You can instruct Magic xpi to abort a flow. This is done through the Flow Errors repository (as shown in the image below).

Aborting a flow when an error occurs:

  1. Open the Flow Errors repository by right-clicking on the relevant flow in the navigation pane, and then selecting Errors. Or you can go to the Flow menu and click Errors.

  2. Click New.

  3. Click to the right of the From column to open the Errors Repository.

  4. Select an error entry to serve as the start of your error range, and then click OK. After you have done this, the Component column will display the name of the component belonging to the selected error.

  5. Click to the right of the To column to open the Errors Repository.

  6. Select an error entry to serve as the end of your error range, and then click OK.

  7. You can set the error policy for a single error code by entering the same number in the To column that you entered in the From column.

  8. In the Error Policy column, select Abort. This is the behavior that you want the Server to execute if the flow returns the error codes that you defined above.

  9. Click OK to close the Flow Errors repository and to save your new error policy.

Now, if an error occurs within the error range that you defined, the flow will abort.

Reference
Attachment 
Attachment