You need to sign in to do that
Don't have an account?
Tom Coffey 4
ANT Migration Tool Errors: how to create “Golden Package Org” from a Developer Org?
I’m building an OEM app. App looks good in Development Org and a Test Org created from the Development Org managed package.
Now I want to move it to a “Golden Package Org” as discussed in this Trailhead module: https://trailhead.salesforce.com/en/content/learn/modules/isv_app_development/isv_app_development_landscape (https://trailhead.salesforce.com/en/content/learn/modules/isv_app_development/isv_app_development_landscape" style="color:blue; text-decoration:underline)
I created a package.xml file using this tool: https://packagebuilder.herokuapp.com/ (https://packagebuilder.herokuapp.com/" style="color:blue; text-decoration:underline)
Then I used the package.xml file and the ANT Migration tool’s retrieveUnpackaged command to download metadata locally. That worked.
Then I ran the deployUnpackaged command, got hundreds of errors, and the deployment failed.
Here’s a link to my error log: https://drive.google.com/file/d/1W7VdLK5xDCvDuTLyQgBJrlacik4iao7h/view?usp=sharing (https://drive.google.com/file/d/1W7VdLK5xDCvDuTLyQgBJrlacik4iao7h/view?usp=sharing" style="color:blue; text-decoration:underline)
Can anyone let me know where I’m going wrong?
And/or if there's an easier way than ANT to get changes from my Development Org to a Golden Package Org? I could create the release managed package from the Development Org but I had a different namespace prefix in mind for the finished product and would rather keep Development and Packaging orgs separate.
Thanks in advance!
Now I want to move it to a “Golden Package Org” as discussed in this Trailhead module: https://trailhead.salesforce.com/en/content/learn/modules/isv_app_development/isv_app_development_landscape (https://trailhead.salesforce.com/en/content/learn/modules/isv_app_development/isv_app_development_landscape" style="color:blue; text-decoration:underline)
I created a package.xml file using this tool: https://packagebuilder.herokuapp.com/ (https://packagebuilder.herokuapp.com/" style="color:blue; text-decoration:underline)
Then I used the package.xml file and the ANT Migration tool’s retrieveUnpackaged command to download metadata locally. That worked.
Then I ran the deployUnpackaged command, got hundreds of errors, and the deployment failed.
Here’s a link to my error log: https://drive.google.com/file/d/1W7VdLK5xDCvDuTLyQgBJrlacik4iao7h/view?usp=sharing (https://drive.google.com/file/d/1W7VdLK5xDCvDuTLyQgBJrlacik4iao7h/view?usp=sharing" style="color:blue; text-decoration:underline)
Can anyone let me know where I’m going wrong?
And/or if there's an easier way than ANT to get changes from my Development Org to a Golden Package Org? I could create the release managed package from the Development Org but I had a different namespace prefix in mind for the finished product and would rather keep Development and Packaging orgs separate.
Thanks in advance!
Please check with below link here is step by step solution of publishing the app:
https://developer.salesforce.com/index.php?title=Publish_Your_First_App_with_AppExchange_Checkout&oldid=140551
I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.
Thanks,
Ajay Dubedi
I checked your question and log, it's painful process to deploy via ANT tool and it's kind of trial and error way. One thing which seems to me is you have included some unwanted components as well i.e. site/account object etc?
I think what you can do is, create an unmanged package in your current source/dev org and then install this package in your new golden package org.
Also you can use eclipse to deploy from one org to another org:- https://blog.jeffdouglas.com/2008/07/15/migrating-salesforcecom-configurations-with-the-metadata-api-forcecom-migration-tool/
I think you can try above and it can work without anyone's help, good luck.
Regards,
Raj (Athenalogics)
I haven't had a chance to test out an unmanaged package or the Eclipse tool yet - I will update when I get a chance to do so - but they seem promising.
Unmanaged package seems easy - too easy? - but now that I think about it I'm not sure why it wouldn't work. At first I thought the namespace prefixes would be an issue but the article linked below states "If an unmanaged package is installed in an org that has a namespace, then the components get the namespace of the subscriber org" so I don't think my Dev Org prefix will carry over to my Golden Package Org and end up in my Release Package.
https://help.salesforce.com/articleView?id=faq_distribution_installing_what_happens_to_my.htm&type=5