Skip to main content
Sarah H (Salesforce) 님이 #Trailhead Challenges에 질문했습니다

I wrote this code:

public class ContactSearch {     public static List<Contact> searchForContacts(String lastName, String mailingPostalCode){         List<Contact> contactList= [select ID, Name from Contact where LastName=: lastName and MailingPostalCode=: mailingPostalCode];     return contactList;      }

}

but I keep getting this error: "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, Mailing Street,City, and Country are required: []. "

답변 3개
  1. 2022년 6월 10일 오후 9:39

    Thank you so much for answering my question.I solved the problem by changing the playground and click the check button again. 

0/9000