+ Start a Discussion
The new LearnerThe new Learner 

Updating State and country ISOCode

Hi Experts,

I am trying to update the State and Country ISO Code picklist values using packages but i am getting below error while deploying using workbench. can anyone tell me how to update it please

here is the package:

<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
    <types>
        <members>Address</members>
        <name>Settings</name>
    </types>
    <version>42.0</version>
</Package>

Error:
Invalid iso code AB for country Aruba
Best Answer chosen by The new Learner
Khan AnasKhan Anas (Salesforce Developers) 
Hi,

Greetings to you!

You can’t edit the isoCode of standard states and countries. You can’t deploy new ISO codes or update ISO code values using any API. Please refer to the below links which might help you further.

https://help.salesforce.com/articleView?id=admin_state_country_picklists_api.htm&type=5 (https://help.salesforce.com/articleView?id=admin_state_country_picklists_api.htm&type=5)

https://developer.salesforce.com/docs/atlas.en-us.220.0.api_meta.meta/api_meta/meta_addresssettings.htm?search_text=AddressSettings

I hope it helps you.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.

Thanks and Regards,
Khan Anas