+ Start a Discussion

Why I am getting Error: Not in package.xml

Hi All,
I am deploying below package from one organization to other organization through ANT tool. I am able to retrieve successfully but while deploying same package I am facing "Error: Not in package.xml" failure.
<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">

Retrieved Metadata is
<?xml version="1.0" encoding="UTF-8"?>
<CustomObject xmlns="http://soap.sforce.com/2006/04/metadata">
        <description>YTD Sales</description>
        <inlineHelpText>YTD Sales</inlineHelpText>
        <label>YTD Sales</label>
While deploying I am facing below issue.
objects/Account.object (Account.curYtdSales__c) -- Error: Not in package.xml
Please help.

Hi ,

This probably happening because of case sensitivity. ANT retrive is not case sensitvie but might be "deploy". Could you match the exact API name (including case) and see if it helps?




niristotle okramniristotle okram
i think, you modified either the package.xml or the filed manually post re-trieving... hence inducing the issue with mismatching case of the alphabets