I have been successfully migrating fields between orgs using Ant by retrieving from source org and deploying to target org.
However, when I got to fields in Pricebook2 and PriceBookEntry, the retrieve was successful but the deploy fails with 'objects/Pricebook2.object (Pricebook2.New__c) -- Error: Not in package.xml'. This was a simple Text(5) field.
Have tried creating a new field, copying name directly from definition page and pasting into package.xml so that there is no difference in case. Also checked field level security.
The actual field I'm trying to move is a text external id field to be used for data importing. I have succesfully retrieved and deployed a field with the same definition on Account, Contact and Opportunity.
Strange that the retrieve is successful but the deploy fails.
Anyone else experienced this?
As it's only a couple of fields I can create them manually but am interested in the cause of this.