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>
3
  • If you are lucky, adding -d and -v to the ant command-line might reveal something.
    – Keith C
    Commented Sep 17, 2017 at 0: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: salesforce.stackexchange.com/a/155219/10073 Commented Sep 17, 2017 at 4: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
    Commented Sep 17, 2017 at 8:32

0

You must log in to answer this question.

Browse other questions tagged .