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
Jacob BarnesJacob Barnes 

Create a validation rule to check that a contact is in the zip code of its account constantly failing.

Formulas & Validations
Creating Validation Rules

I'm running into problems with the check not working. I've read through over a dozen forum posts prior to creating this one.

I followed this video exactly: https://www.youtube.com/watch?v=PUByNV8NAPY

I've tried every example code contained in every single post. I've been trying this "15 min" module for 3 hours.

Here is my error every single time: 

Challenge Not yet complete... here's what's wrong: 
The validation rule failed to enforce the business logic

User-added image
User-added image
Please let me know any advice or solutions. This is extremely frustrating. Thanks.

Best Answer chosen by Jacob Barnes
Jacob BarnesJacob Barnes
After creating a new Trailhead playground the problem resolved itself. Apparently some step(s) in previous Trailhead module(s) caused this particular check not to function. 

All Answers

Jacob BarnesJacob Barnes
After creating a new Trailhead playground the problem resolved itself. Apparently some step(s) in previous Trailhead module(s) caused this particular check not to function. 
This was selected as the best answer
Ashish_TiwariAshish_Tiwari
Hi Jacob,

Hope this solution will help you in this trailhead-

Go To Setup- 
Customize-
Contact-
Validation Rules-
Rule name- Contact must be in Account ZIP Code- 

Formula-
AND(NOT(ISBLANK(AccountId)) ,MailingPostalCode <> Account.ShippingpostalCode)

Error Message- Zip Codes do not match-

Save

Its done check your Result in your trailhead page...

User-added image

Please do like if you found this helpful......