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
sujit adminsujit admin 

trailhead validation rules

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


iam getting error
Challenge Not yet complete... here's what's wrong: 
There was an unexpected error in your org which is preventing this assessment check from completing: System.DmlException: Insert failed. First exception on row 0; first error: FIELD_CUSTOM_VALIDATION_EXCEPTION, please choose id: [AccountId]

please help
Mahesh DMahesh D
Hi Sujit,

If you have any past implemented validations rules exists then these kind of errors occur,

Please de-activate if any of the existing Validation Rules presents.

Please do let me know if it helps you.

Regards,
Mahesh
JyothsnaJyothsna (Salesforce Developers) 
Hi Sujit,

It's because there is validation rule which you had created in some other trail, you need to deactivate that Validation rule.

Hope this helps you!
Best Regards,
Jyothsna

 
Amit Chaudhary 8Amit Chaudhary 8
Please check below post for same issue.
1) https://developer.salesforce.com/forums/?id=906F0000000BOG7IAO

Your formula should like below:-
 
AND(
NOT(ISBLANK(AccountId)),
MailingPostalCode != Account.ShippingPostalCode
)




NOTE:- it look like you have some more validation rule on Contact and Account which rasing this issue. Please deactivate that and try again

Please let us know if this will help you.