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
Todd Carey 7Todd Carey 7 

Validation Rule challenge issue

Can anyone help me understand why I'm getting this error.  I'm reading it to mean that there is an issue reaching my instance and not with my work but I've been wrong before :)

User-added image
BigMagBigMag
I have the same error... The validation rule is in with no errors.
User-added image
Todd Carey 7Todd Carey 7
It turns out it was my query.  Try and change yours to NOT (ISBLANK ( AccountID ) AND .......
Todd Carey 7Todd Carey 7

Sorry I should have just copied and pasted.... Here is what succeeded for me

AND( 
NOT( ISBLANK(  AccountId ) ), 
 Account.ShippingPostalCode  <>  MailingPostalCode  
)

BigMagBigMag
Here is what also worked for me: IF( ISBLANK(AccountId), 1 <> 1 , MailingPostalCode <> Account.ShippingPostalCode)

The 1<>1 evaluates to False.
Amit Chaudhary 8Amit Chaudhary 8
Hi Toddy Carey,

Please try below validation rule. I hope that will help you.
AND( 
NOT(ISBLANK(AccountId)), 
MailingPostalCode != Account.ShippingPostalCode 
)

User-added image

Please let us know if this will help you.

Thanks,
Amit Chaudhary
Amit Chaudhary 8Amit Chaudhary 8
Please let us know if above solution helps you.