+ Start a Discussion
GarrettzGarrettz 

destructiveChanges bad file

I'm trying to deploy a destructiveChanges.xml file. I've updated the file name to accomodate the new pre/post function (http://www.salesforce.com/us/developer/docs/daas/Content/daas_destructive_changes.htm): destructiveChangesPre.xml.

Here are the contents:
<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
    <types>
		<members>Activities</members>
		<members>SFDC_Referral_Survey</members>
		<members>Home</members>
		<members>MBO_System</members>
		<members>t_answerType__c</members>
		<members>Case_Assignment__c</members>
		<members>Forecast__c</members>
		<members>Invoice__c</members>
		<members>Landing_Page__c</members>
		<members>Merchandise__c</members>
		<members>t_questionType__c</members>
		<members>Status_Changes__c</members>
		<members>t_surveyInstance__c</members>
		<members>t_surveyResult__c</members>
		<members>t_surveyType__c</members>
		<members>t_metric__c</members>
		<names>CustomTab</names>
	</types>
	<types>
		<members>MBOSystem</members>
		<name>CustomApplicationConsole</name>
	</types>
    <version>33.0</version>
</Package>
The server was just updated to the Summer 15 release (API v 34.0).

I have a package.xml file as described:
<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
    <version>33.0</version>
</Package>

I run the following target via ANT to use the Metadata API:
<target name="vDeployDev1">
      <sf:deploy username="${sf.undev1}" password="${sf.pwdev1}" serverurl="${sf.urldev1}" deployRoot="src" rollbackOnError="true" ignoreWarnings="true" checkOnly="true" purgeOnDelete="true"/>
</target>

I authenticate but the deployment fails:
C:\Users\gazaino\Projects\Release_15-5-1>ant vDeployDev1
Buildfile: C:\Users\gazaino\Projects\Release_15-5-1\build.xml

vDeployDev1:
[sf:deploy] Request for a deploy submitted successfully.
[sf:deploy] Request ID for the current deploy task: 0AfM0000008hUi1KAE
[sf:deploy] Waiting for server to finish processing the request...
[sf:deploy] Request Status: InProgress
[sf:deploy] Request Status: Failed

BUILD FAILED
C:\Users\gazaino\Projects\Release_15-5-1\build.xml:108:
*********** DEPLOYMENT FAILED ***********
Request ID: 0AfM0000008hUi1KAE

All Component Failures:
1.  package.xml -- Error: Bad file:Element {http://soap.sforce.com/2006/04/metad
ata}names invalid at this location

*********** DEPLOYMENT FAILED ***********

If I remove the destructiveChangesPre.xml file from my src folder, it deploys successfully - so I'm assuming the error is in the destructiveChangesPre.xml file.

Is anyone else running into this issue? Is it a bug in the new release? Am I missing something in my deployment files? I copied everything from prior releases where the deployment worked, so I'm assuming it's a bug. Any help would be greatly appreciated.
 
kevin lamkevin lam
Are you sure CustomApplicationConsole is a valid metadata type?
GarrettzGarrettz
Hey Kevin, thanks for the reply.

Unfortunately for solving this, it is a valid type (https://www.salesforce.com/us/developer/docs/api_meta/Content/meta_customapplicationcomponent.htm). I believe I attempted to remove the types to simplify the package and still received the same error. I will double check that in the morning though.
GarrettzGarrettz
Kevin - thanks again. That didn't answer it, but definitely made me go back and check the file itself. The problem was I included an 's' on the name element:
 
<names>CustomTab</names>
as opposed to:
 
<name>CustomTab</name>
The error message makes a lot more sense now too.