Salesforce Platform App Builder - Practice Test #5
65 complete questions for Salesforce Platform App Builder exam preparation.
An App Builder is creating a Screen Flow that inserts Contact records. Occasionally, the creation fails due to complex validation rules and the user sees a generic error message ('Unhandled Fault'). How should this be handled to provide a user-friendly experience and show the exact error?
Category: Business Logic and Automation
Explanation
Detailed breakdown of the correct answer
Flow Error Handling (Fault Paths)
When a DML operation fails in a Flow, an error is generated. Adding a 'Fault Path' allows you to catch that error and route the flow to a custom screen where the global variable containing the exact error message can be displayed.
Therefore, the correct answer is: Add a Screen and connect it to the 'Create Records' element using a Fault Path showing {!$Flow.FaultMessage}.
The option that says: Configure a 'Decision' element is incorrect because it does not catch validation rule or trigger errors fired at the exact moment of saving.
The option that says: Check the 'Ignore Errors' box is incorrect because such an option does not exist on the platform for standard creation operations.
The option that says: Temporarily deactivate validation rules is incorrect because it compromises data integrity and cannot be done dynamically without highly complex and risky code.