Skip to main content
Hello everyone,

I'm trying to deploy a package which contains Custom fields added on Account standard object with History tracking enabled. The deployment fails with the error 

The entity: Account does not have history tracking enabled

I enabled the history tracking on the account object definition and it is not working. 

<enableHistory>true</enableHistory>

can someone help me understand what is going on?

Thanks 
3 answers
  1. Mar 7, 2018, 5:10 AM
    Hi,

    There is a workaround suggested in below links.

    a) Strip down Enable History Tags from Scratch org metadata and add them when deploying to sandboxes.

    b) Enable History tracking manually before pushing the code to the scratch org.

    I would suggest you refer below links for similar discussion.

    https://salesforce.stackexchange.com/questions/188779/how-to-enable-account-history-tracking-in-scratch-org

     

    https://success.salesforce.com/_ui/core/chatter/groups/GroupProfilePage?g=0F93A000000HTp1&fId=0D53A00003BauKc

     

    Please mark it as solved if my reply was helpful. It will make it available for other as the proper solution.

     

    Best Regards

    Sandhya

     

     
0/9000