4

While validating my changes to the sandbox with Force.com Migration Tool, I suddenly got the below error.

Component Failures: 1. objects/PersonAccount.object -- Error: An unknown exception has occurred.

The problem is, I have no clue about why is this happening.

To debug, I revert all of my changes back to a previous successful deployment version and tried to deploy again, but still I get the same error.

Could someone please help me with this as I have no clue why is this happening suddenly?

Is there a way to debug this?

3
  • 2
    Are you deploying multiple object with field history tracking yes ?
    – MIX DML
    Commented Jan 11, 2016 at 2:53
  • @PrabhatKumar Yes I do, what's with history tracking here?
    – Hasantha
    Commented Jan 11, 2016 at 3:42
  • 1
    Objects have feature that you can track history of their fields....I would suggest you to deploy objects separately. Check if it works. :)
    – MIX DML
    Commented Jan 11, 2016 at 3:47

1 Answer 1

6

After comparing the sandbox instance with production code base we found this issue is due to spring16(beta) release, there is something to do with the history tracking. We had history tracking enabled for the Account object though we haven't had it enabled for PersonAccount (this is not required in version 35)

As a solution I added <enableHistory>true</enableHistory> line to personAccount metadata file and it works!

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .