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
Asif Kutagulla 18Asif Kutagulla 18 

Lightning Experience Specialist Super Badge

Hi, When checking the challenge number 6 in the Super Badge Lightning Experience Specialist, I am getting this salesforce internal error.
When i tested the functinality in the trailhead playground manually, it is working as expected.
Let me know if there is any workaround for this.

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: Delete failed. First exception on row 0 with id 0031N00001JwOMWQA3; first error: DELETE_FAILED, Your attempt to delete Sam the ninja could not be completed because it is associated with the following adventure packages.: null, null : []
Best Answer chosen by Asif Kutagulla 18
NagendraNagendra (Salesforce Developers) 
Hi Asif,

I was able to resolve this issue by removing the strict lookup relationship to Contact on the Adventure Package object. The Explorer__c field was set to "Required" and "What to do if the lookup record is deleted?" was set to "Don't allow deletion of the lookup record that's part of a lookup relationship.". I updated the "Required" to false and changed "What to do if the lookup record is deleted?" to "Clear the value of this field. You can't choose this option if you make this field required."

This fixed the Challenge Check code error, and I was able to finally get a confirmed Complete checkmark.

Hope this will help you pass the challenge.

Kindly mark this as solved if the information was helpful.

Thanks,
Nagendra

All Answers

NagendraNagendra (Salesforce Developers) 
Hi Asif,

I was able to resolve this issue by removing the strict lookup relationship to Contact on the Adventure Package object. The Explorer__c field was set to "Required" and "What to do if the lookup record is deleted?" was set to "Don't allow deletion of the lookup record that's part of a lookup relationship.". I updated the "Required" to false and changed "What to do if the lookup record is deleted?" to "Clear the value of this field. You can't choose this option if you make this field required."

This fixed the Challenge Check code error, and I was able to finally get a confirmed Complete checkmark.

Hope this will help you pass the challenge.

Kindly mark this as solved if the information was helpful.

Thanks,
Nagendra
This was selected as the best answer
Asif Kutagulla 18Asif Kutagulla 18
Thanks, that solved the issue