Skip to main content

I'm using the following to define the two error conditions:

AND(

NOT(ISBLANK(Id)),

 Owner.Contact.MailingPostalCode   <> Owner.Contact.Account.ShippingPostalCode 

)

 

I receive the following message when I check the challenge:

 

Challenge not yet complete in Resourceful Shark Playground

We created a contact with a 'MailingPostalCode' that's different from the associated account's 'ShippingPostalCode'. We expected the validation rule to prevent that, but it didn't. Make sure the validation rule returns true and prevents creating a contact if its 'MailingPostalCode' is not equal to 'Account.ShippingPostalCode'.

 

I've tried using "Account.ShippingPostalCode" instead of "Owner.Contact.Account.ShippingPostalCode", but when I check the syntax, I receive an error that says, Field "Account.ShippingPostalCode" does not exist.

 

Thanks in advance for any help!

3 answers
  1. Feb 8, 2023, 3:58 PM
    Hi @Katrina Bishop

    Please follow these steps that will help you solve your problem:

    Make sure the validation rule is created in the Contact Object.

    Make sure the Validation Rule is active.

    Check the formula once :

    AND(

    NOT(ISBLANK(AccountId)),

    MailingPostalCode != Account.ShippingPostalCode

    )

    If the above steps do not work, you can complete this module in a different developer org or playground.

    Thanks

0/9000