You need to sign in to do that
Don't have an account?
Eliezer Augusto Javier Bautista 7
FIELD_CUSTOM_VALIDATION_EXCEPTION Insert
I get this error in every test class :
System.DmlException: Insert failed. First exception on row 0; first error: FIELD_CUSTOM_VALIDATION_EXCEPTION, Required Field: []
The error comes at every "Insert " function
System.DmlException: Insert failed. First exception on row 0; first error: FIELD_CUSTOM_VALIDATION_EXCEPTION, Required Field: []
The error comes at every "Insert " function
To complete the Harsh answer :
FIELD_CUSTOM_VALIDATION_EXCEPTION, Required Field: []" is indicating that there's a field itself is mark a required, custom validation rule or trigger (it's rarer) in your Salesforce organization that enforces a required field, and you haven't provided a value for that field when performing an insert operation.
To resolve this issue, you should do the following:
Please mark this comment as best answer if it's help you.
All Answers
Did you check that all the required fields are added in the code while inserting?
Thanks
To complete the Harsh answer :
FIELD_CUSTOM_VALIDATION_EXCEPTION, Required Field: []" is indicating that there's a field itself is mark a required, custom validation rule or trigger (it's rarer) in your Salesforce organization that enforces a required field, and you haven't provided a value for that field when performing an insert operation.
To resolve this issue, you should do the following:
Please mark this comment as best answer if it's help you.