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
Rishabh Patel 1Rishabh Patel 1 

The flow failed to access the value for myVariable_current.Account.PersonEmail because it hasn't been set or assigned.

I have a Process builder that Adds the Email of the Account that is related to the opportunity in the Oppotunity object. I have made Account Phone field on Opportunity for that. 

User-added image

 User-added image

I am Getting Errors as - 

The flow failed to access the value for myVariable_current.Account.PersonEmail because it hasn't been set or assigned.

Best Answer chosen by Rishabh Patel 1
Maharajan CMaharajan C
Hi Risabh,

In the PB always check null otherwise surely you will get the error like this.

Add the one more criteria in the Define Criteria 1st screenshot:

AND(NOT(ISBLANK([Opportunity].Account.PersonEmail)),NOT(ISNULL([Opportunity].AccountId)))


OR try the below thing:

[Opportunity].Account.PersonEmail         is null      Boolean           FALSE
​[Opportunity].Account                              is null      Boolean           FALSE

Can you please Let me know if it helps or not!!!

If it helps don't forget to mark this as a best answer!!!


Thanks,
Raj
 

All Answers

Raj VakatiRaj Vakati
Update the record Action with Criteria instead of no Criteria. 
 Criteria  Will  Opportunity.AccountId is not null 


 
Maharajan CMaharajan C
Hi Risabh,

In the PB always check null otherwise surely you will get the error like this.

Add the one more criteria in the Define Criteria 1st screenshot:

AND(NOT(ISBLANK([Opportunity].Account.PersonEmail)),NOT(ISNULL([Opportunity].AccountId)))


OR try the below thing:

[Opportunity].Account.PersonEmail         is null      Boolean           FALSE
​[Opportunity].Account                              is null      Boolean           FALSE

Can you please Let me know if it helps or not!!!

If it helps don't forget to mark this as a best answer!!!


Thanks,
Raj
 
This was selected as the best answer
Rishabh Patel 1Rishabh Patel 1

Hey @maharajan

Are you sure that the second rule should be 

​[Opportunity].Account                              is null      Boolean           FALSE
 

not 

​[Opportunity].AccountID                              is null      Boolean           FALSE

Maharajan CMaharajan C
Sorry this should be like ur second one:


​[Opportunity].AccountID                              is null      Boolean           FALSE

Can you please Let me know if it helps or not!!!

If it helps don't forget to mark this as a best answer!!!

Thanks,
Raj