I'm having problems understanding how to deploy Address.settings with the Metadata API. As in: how do I structure the package.xml?

I have this as Address.settings (shortened for brevity)

<?xml version="1.0" encoding="UTF-8"?>
<AddressSettings xmlns="http://soap.sforce.com/2006/04/metadata">

And this is the package.xml:

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

After zipping this up and deploying through the Metadata API in Workbench I get this error:

The object 'Address' of type Settings was included in the manifest file package.xml but the associated settings metadata is missing from the 'settings' folder

Can you see what is wrong with the package.xml in this case?

  • 1
    Is Address.settings inside a settings folder?
    – David Reed
    Oct 29 '18 at 16:41

This typically happens when your directory structure is incorrect. It should look like this:


Your package.xml appears to be correct as written.

  • Excellent, knew it was just some minor niggle preventing this from working. Thanks!
    – akarnid
    Oct 30 '18 at 2:17

FYI: You can't create new state and country picklist values via Metadata API:

You can’t use the Metadata API to create or delete new states or countries.


Real bummer, forcing you to manually create dozens of values via the web interface!

  • +1 for relevant information... but a -1 for Salesforce because this answer stinks :[
    – jwatts1980
    Sep 5 '20 at 20:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.