When importing contact or account records into Salesforce using Data Loader or the Salesforce Import Wizard, users may encounter one of the following errors:
Why this error occurs:
This error is triggered when State and Country/Territory Picklists are enabled in the Salesforce org. When this feature is enabled, Salesforce enforces strict validation on Country Code values during data import. If the Country Code value in your import file does not exactly match the value configured in Salesforce Setup, the import fails with this restricted picklist error.
Example scenario:
For example, if your CSV import file uses the value "US" for the Mailing Country Code field, but your Salesforce org is configured to use "USA" in the State and Country/Territory Picklist, the import will fail. The values must match exactly — including case and format — as they appear in the Salesforce Country/Territory Code column.
To resolve the "bad value for restricted picklist field" error during import, follow these steps to identify and correct the Country Code values in your import file.
Step 1: Access State and Country/Territory Picklists in Salesforce Setup
Step 2: Compare and Correct Country Code Values
Step 3: Retry the Import
Note: Disabling State and Country/Territory Picklists as an Alternative
If the priority is to import data regardless of Country Code validation, it may be possible to disable State and Country/Territory Picklists. Review the important considerations in the following article before disabling this feature: Enable and Disable State and Country Picklists.
Note: If the priority is to import data regardless of Country Code, it may be possible to disable State and Country/Territory Picklists. Review the Important note in the following article prior to disabling: Enable and Disable State and Country Picklists.
000386448

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.