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
Michael Oyebola 1Michael Oyebola 1 

Force.com ANT migration tool problem with history tracking

Hi, When I try to depoly the "deployUnpackaged" package i keep getting this errors even when the value is true:
1.  objects/Account.object (Account.APTS_DPLStatus__c) -- Error: The entity: Account does not have history tracking enabled (line 80, column 13)
<fields>
        <fullName>APTS_DPLStatus__c</fullName>
        <externalId>false</externalId>
        <label>DPL Status</label>
        <picklist>
            <picklistValues>
                <fullName>Cleared</fullName>
                <default>false</default>
            </picklistValues>
            <picklistValues>
                <fullName>Pending</fullName>
                <default>true</default>
            </picklistValues>
            <picklistValues>
                <fullName>Denied</fullName>
                <default>false</default>
            </picklistValues>
            <picklistValues>
                <fullName>System Not Reachable</fullName>
                <default>false</default>
            </picklistValues>
            <restrictedPicklist>true</restrictedPicklist>
            <sorted>false</sorted>
        </picklist>
        <trackFeedHistory>false</trackFeedHistory>
        <trackHistory>true</trackHistory>
        <type>Picklist</type>
    </fields>


 
Nevlyn DSousa TicloNevlyn DSousa Ticlo
Hi Michael,

Is History Tracking Enabled for the Account object in the Target Org? If not try enabling it first and then try deploying
Mahesh DMahesh D
Hi Michael,

Please check the below image from where you can enable the Account History Tracking.

User-added image

Please do let me know if it works for you.

Regards,
Mahesh
Michael Oyebola 1Michael Oyebola 1
Yes it works now. Thanks a lot