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
AndyuxAndyux 

flow error opportunity lookup

I have a custom object with Opportunbity lookup - not required. I could save a record without a value in Opportunity. Now implementing approval process, i get a flow error, and I have to enter a opportunity value in order to save it, where did that come from?
Error element myRule_1_A1 (FlowRecordUpdate).
This error occurred when the flow tried to update records: The flow failed to access the value for myVariable_current.Opportunity__r.AccountId because it hasn't been set or assigned..
Maybe the Oppportunity was a master-child before? its just a lookup now - thanks
alaresalares
To avoid this error, first check to see if the lookup field is null.
See More: Process fails with "The flow failed to access the value for [example] because it hasn't been set or assigned (https://help.salesforce.com/articleView?id=000212174&type=1)