You need to sign in to do that
Don't have an account?

I have an error
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 001o000000U6x0kAAB; first error: FIELD_CUSTOM_VALIDATION_EXCEPTION, Cannot delete account with related opportunities. - Can any help me with this?
Are you getting this error during trigger execution or batch or vf page? It seems from the error that there is an existing custom validation rule which is restricting the DML from taking place. Can you please check the existing validation rules?
If possible, Can you please share the code with us?
Sorry, I was not known that you were using formula field. Are you taking up trailhead challenge? If so, Can you please share the link for the module which you are facing this error in?
I think you are using below mentioned formula in your formula field:
IF( SLAExpirationDate__c < TODAY() , true,false)
Can you please deactivate the validation rules on Account object once and then try to verify your challenge?
Challenge not yet complete... here's what's wrong:
The validation rule failed to enforce the business logic
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: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY, AccountDeletion: execution of BeforeInsert caused by: System.NullPointerException: Attempt to de-reference a null object External entry point: []