[SalesForce] Process Builder – Failing test classes

I've written a flow in process builder which references an Apex class with @invocable method. I've written a test class for the same and it's passing as well. Now the problem is all the other test classes are failing giving this error

System.DmlException: Insert failed. First exception on row 0; first
error: CANNOT_EXECUTE_FLOW_TRIGGER, The record couldn’t be saved
because it failed to trigger a flow. A flow trigger failed to execute
the flow with version ID 3014B0000000ZwF. Contact your administrator
for help.: [].

What should be the workaround for this?

Best Answer

The version you see, is version of flow that is behind Process Builder. You can find the process itself if you go to https://{instance_url}/designer/designer.apexp#id={version_id}

The link will open Flow designer and the title will be your Process's title.

Related Topic