How to Quick Fix:

Quick Fix: FIELD_CUSTOM_VALIDATION_EXCEPTION - field must be populated with a value

The Salesforce API returns error messages when it can’t deploy metadata. Learn more about the error, what the cause is and how you can fix the problem.

If you see this Salesforce error message:

INVALID_OR_NULL_FOR_RESTRICTED_PICKLIST

Users may encounter this error when 'Restrict picklist to the values defined in the value set' is enabled in the picklist field's setup or the value being inserted into the field is not available in the object's record type or the picklist value is null for the target field. If the error message contains the field name for example, `Picklist__c.Sample__c’ add the `Sample` value to the `Picklist__c` field and if it’s not activated, click to activate the value.

Try this quick fix:

  1. Go to Setup by clicking the gear icon.
  1. Click Object Manager.
  1. Find the Object where your picklist is.
  1. On the left side, click Record Types.
  1. Under the Record Types page, click 'Edit' beside that picklist field that you are trying to update.
  1. See if the value that you are trying to update is available on the 'Selected Values' column.
  1. If not, choose the value from the 'Available Values' column and click the arrow pointing to the 'Visible Values' column to add it.
  2. Click 'Save' to apply the changes.