If the error CANNOT_EXECUTE_FLOW_TRIGGER is showing, how can I solve that?
I am getting an error when I am trying to run a test class, which can use custom metadata and no object. The create user method in the util class is also not responding properly. The error I am getting is mentioned below:
System.DmIException: Insert failed. First exception on row () .
The error is: CANNOT_EXECUTE_FLOW_TRIGGER.
It shows that the record was unable to be saved because it failed to trigger a flow with version ID 301R0000000DGbx.
The flow error message is: unhandled fault has occurred in this flow. It also shows that I need to contact the system administrator for information regarding the error.
How should I solve this problem?
The fundamental reason you are getting the cannot_execute_flow_trigger error might be because there can be a ‘FLOW’ or ‘PROCESS BUILDER’ causing this exception to occur. You can check them to find out which one is giving the error message. If the error is in the utility class, then you can post the test class and utility class. The utility class should be annotated with @isTest if you do not enable the @SeeAllDta.