You need to sign in to do that
Don't have an account?
Need to fix the deployment error.
Hi,
Can anyone help me to resolve this deployment error?
System.DmlException: Insert failed. First exception on row 0; first error: FIELD_CUSTOM_VALIDATION_EXCEPTION, Contract Date value is required to save: []
Stack Trace: Class.GIB_UtilityTest.createSingleOpptywt100Prob: line 47, column 1 Class.GIB_OpportunityHandlerTest.UnitTest_2: line 32, column 1
Thanks,
Karthikeyan Chandran
Can anyone help me to resolve this deployment error?
System.DmlException: Insert failed. First exception on row 0; first error: FIELD_CUSTOM_VALIDATION_EXCEPTION, Contract Date value is required to save: []
Stack Trace: Class.GIB_UtilityTest.createSingleOpptywt100Prob: line 47, column 1 Class.GIB_OpportunityHandlerTest.UnitTest_2: line 32, column 1
Thanks,
Karthikeyan Chandran
Could you please elaborate more your question? what were you doing when you got that error?
This error is coming due to validation rule which is present in Production and not in the sandbox. As per this validation rule, the Contract Date should be entered while saving a record. You will have to update the GIB_OpportunityHandlerTest to make sure that it is having contract date populated while saving object record and then try to deploy in Production.