+ Start a Discussion
Stefano AmentaStefano Amenta 

Process builder throwing a a variable not set/assigned error


I have built a process that works in the following way.

Criteria: Product = EF Staff
Immediate Action: Create Opportunity
Scheduled Action (to happen after 1 minute): Create Visa Record

User-added image

The immediate action works fine and the opportunity is created successfully.

However, when it comes to the Visa Record creation, I get the following error:

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

Considering that the Opportunity is already created, why I get the error above with the scheduled action?

These are the fields values for the Visa creation:

Candidate Email FORMULA [Account].PersonContact.Email 
Visa Name FORMULA [Account].PersonContact.FirstName + " " + [Account].PersonContact.LastName 
Opportunity FIELD REFERENCE [Account].Opportunity__r.AccountID
Owner ID 0050E000003WUqI
Product STRING EF Staff

Thanks in advance for the help.
Raj VakatiRaj Vakati
Change your Field Reference as below and try  and before update check for NOT NULL value for Account.ID