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
Stefano AmentaStefano Amenta 

Process builder throwing a a variable not set/assigned error

Hi,

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.
Stefano
Raj VakatiRaj Vakati
Change your Field Reference as below and try  and before update check for NOT NULL value for Account.ID

[Account].Opportunity__r.Account.ID