Test failure: flow error
Detection
- String:
CANNOT_EXECUTE_FLOW_TRIGGER
- Applies to: Apex test failures
Examples
System.DmlException: Insert failed. First exception on row 0; first error: CANNOT_EXECUTE_FLOW_TRIGGER, We can't save this record because the "Invoice Update" process failed. Give your Salesforce admin these details.
Resolution
A flow of the target org failed on the test data. The rest of the message names the flow and its error.
- Fix the test data so the flow can run, or fix the flow
- Check that the flow and the fields it uses are deployed with the test