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
Luke BottomleyLuke Bottomley 

Process Builder Error

Hi All,

I'm encountering the following error when i'm using the End DateTime in  a decision element of a flow.

Encountered unhandled fault when running process
 
The flow failed to access the value for myVariable_current.EndDateTime because it hasn't been set or assigned.
 
caused by element : FlowDecision.myDecision
 
caused by: The flow failed to access the value for myVariable_current.EndDateTime because it hasn't been set or assigned.
 
Salesforce Error ID: 1573427097-36578 (-819940845)

The field EndDate is one that is set by default when an event is created so it should be set on all records.

Does anyone know why i might be running into this error? Is it because the process builder is running as a before trigger so before the record is committed to the database?

Any help would be great! Thanks in advance.

PratikPratik (Salesforce Developers) 
Hi Luke,

Will you please try to clone the same process and execute it again and let us know if you face same issues. If you still face an issue please log a case with Salesforce support with error id and reproducsible steps.

Thanks,
Pratik
Luke BottomleyLuke Bottomley
Hi Pratik,
Yeah i've tried cloning it and still encountered the same error.
I've raised a case so i'll update this thread with their resolution.
Luke
goabhigogoabhigo
Hi Luke,
Did you get a response on this from Support? I am running into similar problem.

--
Abhi
Luke BottomleyLuke Bottomley
Hi Abhi,

Sorry for the delayed response. I've been out of office.

I managed to work around the problem using visual workflow and using the variable ActivityDateTime instead of EndDateTime.

Does this help?