2

When we are trying to deploy a test class, We are seeing the following error on many test classes

duplicate value found <unknown> duplicates value on record with id: <unknown> 

Everything else is deployed without any issues. This test class alone is causing problems for us.

We are facing issue with this test class alone. We have gone through below solution. But, we couldn't find any history tracking on the objects the insertions are failing.

Object Deploy fails with: "duplicate value found: <unknown> duplicates value on record with id"

Please let us know if you need more info.

  • The issue is fixed now. The errors are completely misleading. In test class we found that a an update statement is violating unique constraint. – Pradeep Aug 28 '13 at 7:20
  • 1
    It would be great if you posted your answer below and marked it as the correct answer. This is good information. Thanks! – pchittum Aug 28 '13 at 8:10
1

The issue is fixed now. The errors are completely misleading. In test class we found that a an update statement is violating unique constraint

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.