function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Tom Coffey 4Tom 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!

 
Ajay K DubediAjay K Dubedi
Hi Tom,

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
Tom Coffey 4Tom Coffey 4
Ajay, yes, I'm familiar with that page.  It tells me to do what I'm trying to do:
You move your app to the golden package org using a migration tool (1). You then create a Managed - Released package (2) and perform at least one quality assurance run by installing the package into a fresh test org (3).
 
But it does not tell me HOW to do what I'm trying to do.  I posted in the hopes that someone can tell me HOW to move my app to the golden package org.
Tom Coffey 4Tom Coffey 4
I posted a job on upwork yesterday hoping to find someone who can teach me how to migrate my app to the golden package org.  In response I got this reply which was much appreciated:
Hi Tom, 

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