You need to sign in to do that
Don't have an account?
Iswarya Sekar 9
error even after the test class covers 100% in superbadges step 4.
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, Case: id value of incorrect type: 01t7F000003BFZeQAO: [Equipment__c]
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, Case: id value of incorrect type: 01t7F000003BFZeQAO: [Equipment__c]
Ensure that you are passing the correct Id of case object, which starts with 500...
Hope this helps.
Thanks
Rajesh
https://in.linkedin.com/in/rajesh-adiga-p-b3611ba7
Plaese see the code sample. May I know where i have to change?
The error is in test class. You have to create a test record of Equipment object.
The error is in the line: caseNew.Equipment__c=caseNew.Id;
you need to provide the equipemnt record's Id not the case Id. Say for example you create a Equipment record eq, then change the line as mentioned below,
caseNew.Equipment__c=Eq.Id;
Thanks
Rajesh
https://www.linkedin.com/in/rajesh-adiga-p-b3611ba7 (https://www.linkedin.com/in/rajesh-adiga-p-b3611ba7/)