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
Ricardo Aguilar 4Ricardo Aguilar 4 

Unable to deploy Apex Class in Production

Hello,
Please, I'm traying to deploy an Apex Class using change set, but I received the following error:

System.DmlException: Insert failed. First exception on row 0; first error: FIELD_CUSTOM_VALIDATION_EXCEPTION, Email, Phone or MobilePhone cannot be unfilled. Please, fill someone of those fields.:

The same happen to any Apex Class is going to be deployed.
Does anyone know what this is all about? How can I fix the error?

I would appreciate any help, Regards.
Raj VakatiRaj Vakati
Looks like you have a validation rule on the production that causing an issue 

Here is the use case .. 
  1. Deactive the validation rule and deploy and active it 
  2. Or fix the code to handle the validation rule ( i guess its a test class ) 
  3. Or Try to deploy with run only specific class