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
Ishita Srivastava 8Ishita Srivastava 8 

We can't find a reference to the account 'ShippingPostalCode' field in the validation rule.. I am getting this error, although i used/tried this "AND( NOT(ISBLANK(Account.ShippingPostalCode)), MailingPostalCode <> Account.ShippingPostalCode)"

HarshHarsh (Salesforce Developers) 
Hi Ishita,
  • You are getting the error because the validation rule checks ShippingPostalCode as a custom field.
  • But the ShippingPostalCode field is one of the fields of compound address fields.
  • If the Account object has a custom ShippingPostalCode field like having Api name like ShippingPostalCode__c then your validation will work as expected.
Please mark it as Best Answer if the above information was helpful.