Skip to main content

Hey all!

I have a flow that functions completely as expected in Debug mode. However, when it runs in production, it fails at the first update. 

The error is as follows: 

Error Occurred: The flow tried to update these records: null. This error occurred: CANNOT_EXECUTE_FLOW_TRIGGER: We can't save this record because the “Run COGS Flow” process failed. Give your Salesforce admin these details. An error occurred when executing a flow interview. Error ID: 1028008348-267851 (387845667). You can look up ExceptionCode values in the SOAP API Developer Guide.

What doesn't make sense to me is that while the error looks like it is trying to update a null record, here's the log of the update action: 

FAST UPDATE: Commit_NS_COGS

Update OrderItem records whose IDs are stored in {!NS_Loop}.

Variable Values

[Id=8022M00000CUp3SQAT,Unit_COGS__c=11.48,Product2Id=01t2M000005oOVYQA2]

Result

Failed to update records whose IDs are in {!NS_Loop}.

So the ID is there, the only thing that is a new piece of information is Unit_COGS__c . 

I've checked - both Unit_COGS__c and the source of the changed info are the same data type, with the same amount of digits and decimal places.  

 
7 个回答
  1. 2020年8月21日 16:33

    Also, I get this error first before getting the one detailed above: 

    The flow tried to update these records: null. This error occurred: MAX_DEPTH_IN_FLOW_EXECUTION: Maximum flow depth exceeded: flow Run_COGS_Handler is triggered for [8012M000008Po5c] 

0/9000