• ryg sin
  • NEWBIE
  • 0 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 3
    Replies
Ig et an error saying ,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_INTEGRITY_EXCEPTION, User: id value of incorrect type: 0051a000000O7ECAA0: [User__c]

Can you please guide me what is wrong?
Hi, when working withing Trailhead 1st challenge an error message pops up when I click the "login to take challenge" button. When the 2nd dialogue box pops up and you click the "login with Salesfore account" button I am then taken to another window where I am logged in however, a message states that URL No Longer Exists, appears.
I am having a hard time figuring this one out. Your suggestions would greatly be appreciated.
To complete this challenge, add a validation rule which will block the insertion of a contact if the contact is related to an account and has a mailing postal code (which has the API Name MailingPostalCode) different from the account's shipping postal code (which has the API Name ShippingPostalCode).Name the validation rule 'Contact must be in Account ZIP Code'.
A contact with a MailingPostalCode that has an account and does not match the associated Account ShippingPostalCode should return with a validation error and not be inserted.
The validation rule should ONLY apply to contact records with an associated account. Contact records with no associated parent account can be added with any MailingPostalCode value. (Hint: you can use the ISBLANK function for this check)
To complete this challenge, add a validation rule which will block the insertion of a contact if the contact is related to an account and has a mailing postal code (which has the API Name MailingPostalCode) different from the account's shipping postal code (which has the API Name ShippingPostalCode).Name the validation rule 'Contact must be in Account ZIP Code'.
A contact with a MailingPostalCode that has an account and does not match the associated Account ShippingPostalCode should return with a validation error and not be inserted.
The validation rule should ONLY apply to contact records with an associated account. Contact records with no associated parent account can be added with any MailingPostalCode value. (Hint: you can use the ISBLANK function for this check)

for the above challenge I used following validation rule and its working

IF( AND(NOT( ISBLANK(  MailingPostalCode__c)), NOT(ISBLANK( AccountId )) ),  IF( (NOT(MailingPostalCode__c = Account.ShippingPostalCode__c)), true, false) , false)

But when I click on check challenge giving Error anybody can can help me on this.
   Error Message              "Challenge not yet complete... here's what's wrong: The validation rule failed to enforce the business logic"

Thanks
Shaijan