0

I am trying to remove a class from my QAT using destructive.xml ANT script and getting the following exception.

Failed to process the request successfully. Cause(UNKNOWN_EXCEPTION): INVALID_CROSS_REFERENCE_KEY: invalid cross reference id

Below is My Package.xml -

<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
<types>
    <members>TestUndeployCodeQAT</members>
    <name>ApexClass</name>
</types>
<version>29.0</version>
</Package>
Santanu Boral
  • 36,003
  • 8
  • 41
  • 71
Nirmallya Ghosh
  • 528
  • 8
  • 25
  • If you are lucky, adding -d and -v to the ant command-line might reveal something. – Keith C Sep 17 '17 at 00:51
  • I would need to see your ANT script / folder setup. If you are ok with not using ANT then you might want to create 2 files, use Workbench, and this answer: https://salesforce.stackexchange.com/a/155219/10073 – Peter Noges Sep 17 '17 at 04:11
  • Problem is that this specific error can come for many cases. It's more like general exception during the deployment. Since, it's destrctiveChanges, might be that the class is being used somewhere. Try to create dummyClass, and delete it with ant. This can give you indication if the issue is in the ant configuration or specifically in the class you try in the first place. – Liron C Sep 17 '17 at 08:32

0 Answers0