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
Jeroen van den EijkhofJeroen van den Eijkhof 

Process Automation - Automate Basic Business Processes with Process Builder

I am getting the below error on the "Process Automation - Automate Basic Business Processes with Process Builder" step:
Challenge Not yet complete... here's what's wrong: 
There was an unexpected error in your org which is preventing this assessment check from completing: System.DmlException: Insert failed. First exception on row 0; first error: CANNOT_EXECUTE_FLOW_TRIGGER, The record couldn’t be saved because it failed to trigger a flow. A flow trigger failed to execute the flow with version ID 3011I000000GuHH. Flow error messages: An unhandled fault has occurred in this flow
An unhandled fault has occurred while processing the flow. Please contact your system administrator for more information. Contact your administrator for help.: []
Based on this error I got a corresponding email:
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.Parent.ShippingCity because it hasn't been set or assigned.. For details, see API Exceptions.
This report lists the elements that the flow interview executed. The report is a beta feature.
We welcome your feedback on IdeaExchange.
Flow Details
Flow Name: DoItNow
Type: Workflow
Version: 4
Status: Active
Flow Interview Details
Interview Label: DoItNow-4_InterviewLabel
Current User: Jeroen van den Eijkhof (0051I000000RCeg)
Start time: 9/26/2017 1:37 PM
Duration: 0 seconds
How the Interview Started
Jeroen van den Eijkhof (0051I000000RCeg) started the flow interview.
Some of this flow's variables were set when the interview started.
myVariable_old = 0011I00000330LWQAY
myVariable_current = 0011I00000330LWQAY
ASSIGNMENT: myVariable_waitStartTimeAssignment
{!myVariable_waitStartTimeVariable} Equals {!Flow.CurrentDateTime}
Result
{!myVariable_waitStartTimeVariable} = "9/26/2017 1:37 PM"
DECISION: isChangedDecision2_myRule_1_ShippingCity
Executed this outcome: isChangedRule_2_myRule_1_ShippingCity
Outcome conditions: and
1. {!myVariable_old} (0011I00000330LWQAY) Is null false
2. {!myVariable_old.ShippingCity} (null) Does not equal {!myVariable_current.ShippingCity} (Staines)
Logic: All conditions must be true (AND)

DECISION: isChangedDecision3_myRule_1_ShippingCountry
Executed this outcome: isChangedRule_3_myRule_1_ShippingCountry
Outcome conditions: and
1. {!myVariable_old} (0011I00000330LWQAY) Is null false
2. {!myVariable_old.ShippingCountry} (null) Does not equal {!myVariable_current.ShippingCountry} (UK)
Logic: All conditions must be true (AND)

DECISION: isChangedDecision4_myRule_1_ShippingStreet
Executed this outcome: isChangedRule_4_myRule_1_ShippingStreet
Outcome conditions: and
1. {!myVariable_old} (0011I00000330LWQAY) Is null false
2. {!myVariable_old.ShippingStreet} (null) Does not equal {!myVariable_current.ShippingStreet} (1 Street)
Logic: All conditions must be true (AND)

DECISION: isChangedDecision5_myRule_1_ShippingState
Executed this outcome: isChangedRule_5_myRule_1_ShippingState
Outcome conditions: and
1. {!myVariable_old} (0011I00000330LWQAY) Is null false
2. {!myVariable_old.ShippingState} (null) Does not equal {!myVariable_current.ShippingState} (Middlesex)
Logic: All conditions must be true (AND)

DECISION: isChangedDecision6_myRule_1_ShippingPostalCode
Executed this outcome: isChangedRule_6_myRule_1_ShippingPostalCode
Outcome conditions: and
1. {!myVariable_old} (0011I00000330LWQAY) Is null false
2. {!myVariable_old.ShippingPostalCode} (null) Does not equal {!myVariable_current.ShippingPostalCode} (TW18 3AG)
Logic: All conditions must be true (AND)

DECISION: myDecision
Executed this outcome: myRule_1
Outcome conditions: or
1. {!isChangedRule_2_myRule_1_ShippingCity} (true) Equals true
2. {!isChangedRule_3_myRule_1_ShippingCountry} (true) Equals true
3. {!isChangedRule_4_myRule_1_ShippingStreet} (true) Equals true
4. {!isChangedRule_5_myRule_1_ShippingState} (true) Equals true
5. {!isChangedRule_6_myRule_1_ShippingPostalCode} (true) Equals true
Logic: One condition must be true (OR)

RECORD UPDATE: myRule_1_A1
Find all Contact records where:
AccountId Equals {!myVariable_current.Id} (0011I00000330LWQAY)
Update the records’ field values.
MailingCity = {!myVariable_current.Parent.ShippingCity} (<interaction.engine.info.GenericInterviewValueKey@6c35937b couldn't be resolved>)
MailingCountry = {!myVariable_current.Parent.ShippingCountry} (<interaction.engine.info.GenericInterviewValueKey@7e65001a couldn't be resolved>)
MailingPostalCode = {!myVariable_current.Parent.ShippingPostalCode} (<interaction.engine.info.GenericInterviewValueKey@5f07b547 couldn't be resolved>)
MailingState = {!myVariable_current.Parent.ShippingState} (<interaction.engine.info.GenericInterviewValueKey@5b3e388e couldn't be resolved>)
MailingStreet = {!myVariable_current.Parent.ShippingStreet} (<interaction.engine.info.GenericInterviewValueKey@3865f33a couldn't be resolved>)
Result
Failed to update records that meet the filter criteria.

Error Occurred: The flow failed to access the value for myVariable_current.Parent.ShippingCity because it hasn't been set or assigned.

Any help is appreciated
 
Best Answer chosen by Jeroen van den Eijkhof
Jeroen van den EijkhofJeroen van den Eijkhof
Make sure your actions aren't referencing the Parent ID since you are on the Account object, not the Contact object.

I actually realized that my mistake was thinking in the "update" action that I was in the Contact object and needed to reference the Parent Account ID. Since it was already in the context Accunt I got the error because I was trying to access the Parent of the account which wasn't set. 

All Answers

NagendraNagendra (Salesforce Developers) 
Hi Jeroen,

To complete the above challenge follow the steps below:

1) Select the object
User-added image2) Add criteria
User-added image3) Add immediate action
User-added image

Hope this helps.

Please mark this as solved if it's resolved so that it gets removed from the unanswered queue which results in helping others who are encountering a similar issue.

Thanks,
Nagendra
Jeroen van den EijkhofJeroen van den Eijkhof
Make sure your actions aren't referencing the Parent ID since you are on the Account object, not the Contact object.

I actually realized that my mistake was thinking in the "update" action that I was in the Contact object and needed to reference the Parent Account ID. Since it was already in the context Accunt I got the error because I was trying to access the Parent of the account which wasn't set. 
This was selected as the best answer