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
Siva AdminSiva Admin 

Could someone help.

I'm a newly learning SF. While doing challenge (Create a process to update child record when the parent is updated using process builder) in trailhead, following error popping up. Kindly help. 

"Challenge Not yet complete... here's what's wrong: 
An update to an account record failed to update the mailing address fields of all child contact records. Make sure that the process is correct and that it is activated."
DeepthiDeepthi (Salesforce Developers) 
Hi Siva,

Please follow the screenshots to complete the challenge.

Step1: Setup > Create > Workflows&Approvals > Process Builder >New > Name your Process
Choose Object and Specify When to Start the Process > Account & Start the process > when a record is created or edited

User-added image

Step 2: Define Criteria for this Action Group > Criteria Name > IsAddressChanged & Criteria for Executing Actions > (Select)Filter conditions are met. Next Set Filter Conditions as shown in screenshot

User-added image


User-added image

Step3 : IMMEDIATE ACTIONS > Select Action Name as "Update Records" > Action Name > Update Contact Records > Object (SELECT==> [Account].Contacts) as shown in screen shot & Set Object Variables (Field mapping)
User-added image


User-added image

Step4: Activate the process

Please mark this as best answer if this solution is helpful to you. 
Best Regards,
Deepthi
Siva AdminSiva Admin
Hi Deepthi,
First, thanks for your reply. 
I have a few doubts. 
1) Why have you selected "AND " condition? Becoz even if a single address-related field in account record gets changed, the same should updated in child contacts.
If we select "AND" condition, only if all the address field gets changed, then only the child contacts would be updated, na? 
2) And action should be performed only if Contact addresses are not in sync with the Account they belong to, meaning contact address right not 'does not equal ' condition should be met. But here you have selected "No Criteria - Just update the records" instead of selecting "Meet records meet all conditions". Is my understanding right?

Ignoring all these, even after doing what exactly you said. The following error coming up:

Challenge Not yet complete... here's what's wrong: 
An update to an account record failed to update the mailing address fields of all child contact records. Make sure that the process is correct and that it is activated.
Jessica MeadJessica Mead
You can also write out a formula for the Define Criteria step using OR, since the udpate needs to occur on ANY of those fields (as you mentioned above).  The formula I used for the Criteria:

OR(ISCHANGED([Account].ShippingStreet), ISCHANGED([Account].ShippingCity), ISCHANGED([Account].ShippingState), ISCHANGED([Account].ShippingPostalCode), ISCHANGED([Account].ShippingCountry))

The "No Criteria" shouldn't make a difference in this case.

Try the "Formula evaluates to True" option (or change your "AND" to "OR" in the examples above) and see if that works for you.