function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
jeremyyjeremyy 

Metadata API incorrectly reports that object does not have history tracking enabled.

Hi,

I'm attempting a deployment using the migration tool and getting this:

“My_Object__c does not have history tracking enabled.”

Yet, from the object's xml: "<enableHistory>true</enableHistory>”

The object's metadata xml was extracted without modification from a sandbox org. Is there something else required in order to enable history tracking? 
AmitAmit (Salesforce Developers) 
Hello,

Please refer following link for more information : 

http://www.salesforce.com/us/developer/docs/api_meta/Content/customfield.htm

http://www.salesforce.com/us/developer/docs/api_meta/Content/customobject.htm

Regards,
Amit Bharwdaj
Niranjan GattupalliNiranjan Gattupalli

Hi,
   Though you do HistoryTracking enable for the CustomObject, you need to seperately enable field History Tracking for the custom fields.
 
 i.e.  field property   <trackHistory>true</trackHistory> should be true for your CustomObject.
User-added image


Thanks,
Niranjan Gattupalli
http://www.autorabit.com