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
ShotShot 

Automating Processes with the Lightning Process Builder

Stuck with this task. Tried many ways to do in Process Builder (checked if AccountId not null, checked if account street, city, country, state not null, checked if these fields were changed etc), but always have mistake:

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 30124000000L3C5. 
Contact your administrator for help.: []

On mail i get:
caused by element : FlowDecision.myDecision
caused by: The flow failed to access the value for myVariable_current.Account.ShippingCountry because it hasn't been set or assigned.

Any ideas, how to pass this task?
Thanks
Best Answer chosen by Shot
Jennifer W. LeeJennifer W. Lee
What object do you have this process builder on? Looks like you have process builder running on the Contact object? Process builder should be on Account object as the challenge is if any of the Account shipping fields change on the Account record, then update the contact's mailing address with the Account's shipping address. Remove field #1 from your criteria and switch the criteria to work off the Account shipping address fields is changed, then your action should fall in place.

All Answers

Jennifer W. LeeJennifer W. Lee
Can you show screenshots of your process builder?
ShotShot
Yep!
User-added image

User-added image
Jennifer W. LeeJennifer W. Lee
What object do you have this process builder on? Looks like you have process builder running on the Contact object? Process builder should be on Account object as the challenge is if any of the Account shipping fields change on the Account record, then update the contact's mailing address with the Account's shipping address. Remove field #1 from your criteria and switch the criteria to work off the Account shipping address fields is changed, then your action should fall in place.
This was selected as the best answer
ShotShot
Yes, you are right! Thanks a lot!