You need to sign in to do that
Don't have an account?
Boudewijn Timmers
Creating validation rules not passing
Hi,
I am working on the trailhead Dev Beginner, but get stuck in the Creating Validation Rules Section. I get the error: "Challenge Not yet complete... here's what's wrong: The validation rule failed to enforce the business logic". I am an experienced coder (HTML, php, pascal etc) so I might think i have the logic correct. Still I keep getting these errors. Any known issues with this challenge? I made these assumptions:
- the rule should be on the Contacts object
- to verify if there is an associated account, I am validating if AccountId is not blank.
I am working on the trailhead Dev Beginner, but get stuck in the Creating Validation Rules Section. I get the error: "Challenge Not yet complete... here's what's wrong: The validation rule failed to enforce the business logic". I am an experienced coder (HTML, php, pascal etc) so I might think i have the logic correct. Still I keep getting these errors. Any known issues with this challenge? I made these assumptions:
- the rule should be on the Contacts object
- to verify if there is an associated account, I am validating if AccountId is not blank.
Everything looks fine but please try to select the insert field option when you are writing "Error condition formula",please try the below condition it will clear your challange.
Thanks,
Have a great day ahead!
Please mark it as correct answer,it may help others !
All Answers
Your formula looks good. I'm not aware of any issue with this unit. You could try this similar code: NOT( ISBLANK( Account.Name ) ) && MailingPostalCode <> Account.ShippingPostalCode
I don't see any reason why the Trailhead check wouldn't like you code other than that you used AccountId instead of Account.Name.
I hope this works for you.
Regards,
Parker
Everything looks fine but please try to select the insert field option when you are writing "Error condition formula",please try the below condition it will clear your challange.
Thanks,
Have a great day ahead!
Please mark it as correct answer,it may help others !