+ Start a Discussion
PrazPraz 

retrieve error: error during bulk retrieve

Hi,

 

I am trying to retrieve salesforce component through force.com deployment tool using java and ant and I am getting the folloeing error

 

com.sforce.ws.SoapFaultException: INVALID_TYPE: Unknown type:${sf.metadataType}

 

Here is the code piece for the deployment:

 

 

<target name="bulkRetrieve">
<sf:bulkRetrieve username="${sf.username}" password="${sf.password}" serverurl="${sf.serverurl}" metadataType="${sf.metadataType}" retrieveTarget="retrieveUnpackaged"/>
</target>

 

 

 

and here is the build.proporties in detail

 

 

#sf.metadataType = ApexClass,ApexComponent,ApexPage,CustomField,CustomLabel,CustomObject,CustomTab,Layout,Report,ReportType

 

 

and here is the package.xml

 

 

    </types>
    <types>
            <members>*</members>
            <name>ApexPage</name>
    </types>
    <types>
            <members>*</members>
            <name>CustomField</name>
    </types>
    <types>
            <members>*</members>
            <name>CustomLabel</name>
    </types>
    <types>
            <members>*</members>
            <name>CustomTab</name>
    </types>
    <types>
            <members>*</members>
            <name>Layout</name>
    </types>
    <types>
            <members>*</members>
            <name>Report</name>
    </types>
    <types>
            <members>*</members>
            <name>ReportType</name>
    </types>
    <version>11.0</version>
</Package>

 

 

Please suggest me how can I overcome this.

JasonDSeibertJasonDSeibert

Try replacing CustomLabel with CustomLabels and retry.

singhssinghs

Try uncommenting the #sf.metadataType =.... Remove the # at the beginning.