+ Start a Discussion
SarfarajSarfaraj 

Issue with Salesforce Ant migration tool v35

Hi,

I am trying to retrieve components from a managed package. I want to export configurable items from the managed package that I modified in my sandbox to another org. I am receiving the following error,

Failed to process the request successfully. Cause(UNKNOWN_EXCEPTION): null: More than 1 installed package named 'MyNamespace__MyPackage' exists in this organization. Use <namespace_prefix>__<pkg_name> to uniquely identify managed installed packages

I have only one package named MyPackage in my org and I tried both with Namespace and without it.

Thank for your help.

Regards
Mir
Anup JadhavAnup Jadhav
The error message seems to suggest you have 2 instances of the package installed (somehow) in your org. Can you post a snippet of your ant file here?
SarfarajSarfaraj
Hi, Thanks for the response. We are the ISV for the package and this is a manged package. I am not sure how this is possible to have more than one instance of the same managed package installed in the org. Please find attached my build and package files. --Akram
SarfarajSarfaraj
Oops. Attachment dont work here :P

Please find it below,
 
Build file

<target name="retrieveNamedPackage">
	  <sf:retrieve 
		username="${sf.username}" 
		password="${sf.password}"
		serverurl="${sf.serverurl}" 
		retrieveTarget="retrieveAll" 
		packageNames="MyNamespace__MyPackage"/>
	</target>
 
package.xml

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