function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
ckellieckellie 

Process Builder process failed with test class

Why can't Process Builder flow criteria return false without the throwing an error. I have a process with a criteria of field "test" = true and then an action if the criteria returns true. If criteria returns false I receive the below error:

 System.DmlException: Insert failed. First exception on row 0; first error: UNKNOWN_EXCEPTION, We can't save this record because the “Opportunity Process Builder” process failed. Give your Salesforce admin these details. <b>An unhandled fault has occurred in this flow</b><br>An unhandled fault has occurred while processing the flow. Please contact your system administrator for more information.: []

An apex class is referenced as causing the error.

Belowq are my questions:
1. What unhandled fault is the message referring to?
2. Is the fact the process builder criteria returning false, an error in and of itself?
3. How do I handle the unhandled fault and where?

I am not sure how or what to post as the error is between a test class and a process builder flow.

Thank you