When a user attempts to enable "State and Country/Territory Picklists" in a newly created Salesforce Developer Sandbox, the conversion process can detect address data that requires mapping, even though no transactional record data was copied. The problem occurs during activation, when Salesforce requires completion of the step "Convert identified data in standard address fields." The process prompts the user to review and map many records before the feature can be enabled.
This raises the following questions:
In these scenarios, querying the standard objects typically confirms that no business records exist in the sandbox. For example, the following queries return zero records:
SELECT COUNT() FROM Account
SELECT COUNT() FROM Lead
SELECT COUNT() FROM Contact`
Despite the absence of records on any of these objects, the conversion wizard still detects address data that requires review and mapping before activation can proceed.
This article explains why the State and Country/Territory Picklists conversion wizard requires address mapping in a new Salesforce Developer Sandbox that contains no Account, Lead, or Contact records. The cause is that internal User records are copied into the sandbox and can contain country and state data.
When you create or refresh a Salesforce Developer or Developer Pro sandbox, configuration data is copied from the source organization. This includes reports, dashboards, price books, products, apps, and all Setup customizations. A small sample of data from standard and custom objects, documents, files, and attachments may also be copied. Understanding what is and is not included helps admins plan sandbox-dependent testing and development work.
Because internal user records are copied, check them for country and state data. User records are often overlooked and can cause the conversion wizard to require mapping. Use the following queries to check.
`SELECT COUNT() FROM Lead SELECT COUNT() FROM User SELECT Id, Country, State FROM User WHERE Country != NULL OR State != NULL SELECT Country, COUNT(Id) FROM User WHERE Country != NULL GROUP BY Country ORDER BY COUNT(Id) DESC SELECT State, COUNT(Id) FROM User WHERE State != NULL GROUP BY State ORDER BY COUNT(Id) DESC`
005387020

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.