Understand the errors that can occur when you try to save records with mismatched code
and text values for states, countries, or territories.
Required Editions
| Available in: both Salesforce Classic and Lightning Experience |
| Available in: All Editions except Database.com |
| Error |
Cause |
| Invalid country specified for field |
Your country/territory code doesn’t match an existing country or territory. |
| There’s a problem with this country, even though it may appear correct. Please select
a country from the list of valid countries. |
Your country/territory integration value doesn’t match an existing country. Or, the
country/territory value was mapped to Unknown value
during data conversion. |
| Mismatched integration value and ISO code for field |
Your code and integration values match different states or countries. |
| A country must be specified before specifying a state value for field |
Your record has a state code or integration value but no country/territory code. You
can’t save a state without a corresponding country. |
| The existing country doesn’t recognize the state value for field |
Your state code and integration values belong to a state in a different
country. |
| Invalid state specified for field |
Your state code doesn’t match an existing state. |