---
title: "SFDC Flow: Add a Fault Screen"  
description: "In my previous post SFDC Flow: Add a Custom Button we learn how to add a custom button to launch an SFDC flow. Now we have one more final step for SFD"  
author: "Anonymous User"  
published: 2015-03-23  
updated: 2018-02-22  
canonical: https://www.mindstick.com/blog/10853/sfdc-flow-add-a-fault-screen  
category: "sales force"  
tags: ["cloud computing", "cloud", "cloud development", "sfdc", "dev-401"]  
reading_time: 2 minutes  

---

# SFDC Flow: Add a Fault Screen

In my previous post [SFDC Flow: Add a Custom Button](https://www.mindstick.com/blog/10852/SFDC%20Flow%20Add%20a%20Custom%20Button#.VRAYNly6bIU) , we learn how to add a custom button to launch an SFDC flow. Now we have one more final step for SFDC flows is to add a fault Screen. This is an optional step.

#### \

#### Add a Fault Screen

#### \

If an error occurs while the flow is interacting with the database, the flow displays a generic unhandled fault message. The system sends the organization administrator an email with information to help identify the issue. You can also set up fault paths to a screen that displays this information to the flow user. Instead of waiting for a system message to reach your [email account](https://answers.mindstick.com/qa/50505/how-to-add-email-account-manually-on-your-iphone-x), you can view the information in the flow and immediately [fix the problem](https://answers.mindstick.com/qa/94976/how-do-i-fix-the-problem-unidentified-network-for-wlan-on-windows-10).

1. Reopen the flow [if necessary](https://www.mindstick.com/forum/23229/in-python-check-if-a-directory-exists-and-create-it-if-necessary).

2. From the Palette tab, drag the Screen onto the canvas.

The Screen overlay opens with the General Info tab selected.

3. For the Name, enter Fault Screen.

The Unique Name is automatically populated based on this entry.

4. From the Add a Field tab, double-click [Display Text](https://www.mindstick.com/forum/12715/how-to-display-text-in-an-mvc-view-with-htmlattrbutes).

5. Click [Display Text] in the preview pane.

6. On the Field Settings tab, configure the field as follows.

Field Value

Unique Name fault_message

text box Sorry, an error occurred in the flow.

For help, provide your flow administrator with the

following -

information: {!$Flow.FaultMessage}

![SFDC Flow: Add a Fault Screen](https://www.mindstick.com/blogs/e7f6ac54-94f9-42e8-86fc-9d0032b11f9d/images/f5438141-35fb-4587-a06f-efa649e56f07.png)

7. Click OK.

8. Connect both the Record Create and Record Update elements to the fault screen.

a. Drag the node from the bottom of the Record Create element onto the new Screen element.

b. Drag the node from the bottom of the Record Update element onto the new Screen element.

**Notice** that these new connectors have “FAULT” labels.

![SFDC Flow: Add a Fault Screen](https://www.mindstick.com/blogs/e7f6ac54-94f9-42e8-86fc-9d0032b11f9d/images/a7b338c9-a84f-46dd-a888-13a5960661b5.png)

9. Click Save.

10. Click Close.

Now, if the flow encounters a [validation rule](https://answers.mindstick.com/qa/116054/can-you-create-fack-email-validation-rule) or error, the flow user sees a meaningful [error message](https://www.mindstick.com/forum/23174/error-message-the-page-you-are-requesting-cannot-be-served-because-of-the-extension-configuration) instead of the generic unhandled fault message.

[If your](https://www.mindstick.com/forum/156103/what-will-be-your-approach-if-your-seo-method-doesn-t-work) flow is already [working fine](https://answers.mindstick.com/qa/95550/why-is-the-safari-browser-not-working-fine), you can still test the fault screen by entering a value that would fail the validation rule you created in an earlier tutorial. Specifically, while running the flow, enter a Quantity Ordered value that’s obviously greater than the quantity available for the merchandise.

**This document is referred from [salesforce help tutorials](http://www.salesforce.com/us/developer/docs/workbook/index.htm)

---

Original Source: https://www.mindstick.com/blog/10853/sfdc-flow-add-a-fault-screen

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
