[SalesForce] error deploying entitlement process via ant migration tool and changeset

I'm trying to deploy a new version of an existing entitlement process from one dev sandbox to a full copy sandbox using the ant migration tool.

<Package>
    <types>
        <members>test team entitlement process_v7</members>
        <name>EntitlementProcess</name>
    </types>
    <version>41.0</version>
</Package>

Retrieving the metadata works, but when I try to deploy to the full copy sandbox I get the following error.

entitlementProcesses/test team entitlement process_v7.entitlementProcess -- Error: common.exception.SfdcSqlException: ORA-20515:
    ORA-06512: at "DOPEY.CMILESTONE", line 152
    ORA-06512: at line 1


    {call cMilestone.insert_detail(?,?,?,?,?,?,?,?,?,?,?)}

    {call cMilestone.insert_detail(?,?,?,?,?,?,?,?,?,?,?)}

Does the ant migration tool not work with entitlements? Is changesets the only way of deploying?

EDIT:

I just tried deploying using a changeset and I am getting the same error that I got using the ant migration tool

Deploy Fail

EDIT 2:

The exception I am seeing, like OP's is as follows:

entitlementProcesses/customer_support_v1.entitlementProcess -- Error: common.exception.SfdcSqlException: ORA-20515: 
    ORA-06512: at "HAPPY.CMILESTONE", line 152
    ORA-06512: at line 1


    {call cMilestone.insert_detail(?,?,?,?,?,?,?,?,?,?,?)}

    {call cMilestone.insert_detail(?,?,?,?,?,?,?,?,?,?,?)}

Best Answer

After 3+ weeks back and forth with support, we finally reached developer support and they were able to reproduce this exception and look at their internal logs.

It turns out that in the source org, we had increased the milestone limit to 50. In the target org, the limit was still 25. The EntitlementProcess we were attempting to deploy had over 25 milestones associated with it, so we were thrown a seven-dwarf exception.

Syncing the milestone limit between the two orgs (or alternatively, reducing the number of milestones in the entitlement process) should resolve this issue.

Related Topic