"Object reference not set to an instance of an object" Error When Adding Region Locale

Problem

If you select a country that doesn’t have any states/provinces entered in the system (for example, Chile), you may get the following error when trying to set the locale:

  • Object reference not set to an instance of an object.

    Object reference not set to an instance of an object.

Solution

You can remedy this issue using the Data Editor to add the missing areas to the States table manually.

States table

If you need Country and Region Codes, see ISO Country Codes.
The Region Codes listed are prefixed with the Country Code (For example, the Cusco region in Peru’s code is PE-CUS). Remove the prefixed Country Code (i.e., remove PE from PE-CUS)

Related Articles

Was this article helpful?
0 out of 0 found this helpful
Previous Next

Comments

0 comments

Please sign in to leave a comment.