'The [BillingStateCode / ShippingStateCode] field contains [ShippingStateCodeHere], which isn't an available state. Your administrator can add it for you.'
This particular error may occur if mapping standard Country fields in conjunction with 'StateCode' fields when the country set for a record or row in your file is not currently set as the 'Default Country' within your State and Country picklist's setup.
Salesforce attempts to set 'CountryCode' field values on records to the country set as the default country value in the State and Country picklist's setup. This behavior in conjunction with mapping only the standard Country address fields with State address code fields results in a mismatch between the 'StateCode' value in your file and the default 'CountryCode' values being set on the record if the file's 'StateCode' isn't a valid value for the default country.
If you're mapping 'StateCode' address fields and either no default country is set or the country values in your import file do not match the default country in S&CP setup, you must include and map the 'CountryCode' fields to effectively 'override' the application setting record's country fields to the default country.
'A country must be specified before specifying a state value for field'
This particular error is known to occur when no default country is selected in S&CPL setup and users map the standard Country field and 'StateCode' field.
'There's a problem with this state, even though it may appear correct. Please select a state from the list of valid states.: [Billing / Shipping] State/Province OR There's a problem with this country, even though it may appear correct. Please select a country from the list of valid countries.: [Billing / Shipping] Country'
This error is known to occur when mapping to standard State and Country fields ('Billing/Shipping State' & 'Billing/Shipping Country') and for records in your import file that do not have a correct or corresponding state or country value. It may be incorrect due to the state not existing for the country specified or the values for either field not matching the 'Integration Value' set in S&CPL's setup.
If the state value is confirmed as correct and the record does not share the default country selected in S&CPL setup, the error may occur when users have mapped State fields without mapping country fields.
Additional considerations and behaviors:
Note: If integration values are the same as the ISO code values or differ from the State/Country full names it is a clear indication that they have been updated either through user interface via setup or potentially through the Metadata API prior to enabling the feature. Disabling and re-enabling the feature will not change the state/country integration values. Support does not have the ability to reset integration values back to default or track who and when changes were made to the state and country picklist's setup.
See Also:
Integration Values for State and Country Picklists
Error 'There's a problem with this country or state' on record save
000387500

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.