+ Start a Discussion
Nagarjuna Reddy.PNagarjuna Reddy.P 

How to Bypass Required Field in Batch process

Hi All,

I have a batch process which is scheduled to run on daily basis, but the process is failed bcz of required picklist field on Account have null values in bulk number. I'm not required to perform bulk update as we are not sure with right value. So is there any way to bypass this required field to succesfully run the batch process.
SwethaSwetha (Salesforce Developers) 
HI Nagarjuna,

Do you have a validation rule in place that checks if the field is required? If so, you might want to remove the filter on the specific picklist.

See related 
https://salesforce.stackexchange.com/questions/312589/bypass-required-field-missing-error-when-bulk-updating-opportunity-stage-name-to

https://www.infallibletechie.com/2018/10/how-to-bypass-all-triggers-validation.html

https://salesforce.stackexchange.com/questions/3392/how-to-bypass-validation-logic-in-a-trigger

Hope this helps you. Please mark this answer as best so that others facing the same issue will find this information useful. Thank you