+ 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">

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

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)


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