Unexpected Delete Metadata and other metadata deployment not working as expected.

Issue #1824 resolved
Justin Julicher created an issue

Basically I selected 1 field to delete:

then got this message:

Successes

• objects/SCCACategory__c/SCCACategory__c.object-meta.xml

Failures

• objects/ApprovalProcess__mdt/ApprovalProcess__mdt.object-meta.xml: ERROR at line 1, column 1 - This custom object is used by another feature. Remove the usage and try again. : Apex Class - ApprovalProcessAssignmentHandler. This custom object is used by another feature. Remove the usage and try again. : Apex Class - ApprovalProcessSelector. This custom object is used by another feature. Remove the usage and try again. : Apex Class - ApprovalProcessSelector_Test. This custom object is used by another feature. Remove the usage and try again. : Apex Class - ApprovalProcessManagementService_Test. This custom object is used by another feature. Remove the usage and try again. : Apex Class - ApprovalProcessManagementService.
• objects/ContentVersion/ContentVersion.object-meta.xml: ERROR at line 1, column 1 - The CustomObject called 'ContentVersion' is standard and cannot be deleted
• objects/ContractDetail__c/ContractDetail__c.object-meta.xml: ERROR at line 1, column 1 - This custom object is used by another feature. Remove the usage and try again. : Custom Formula Field - ContractDetailCharge__c.ChargeFrequency__c. This custom object is used by another feature. Remove the usage and try again. : Custom Formula Field - ContractDetailCharge__c.ContractDetailCode__c. This custom object is used by another feature. Remove the usage and try again. : Custom Formula Field - ContractDetailCharge__c.MRILeaseID__c. This custom object is used by another feature. Remove the usage and try again. : Apex Class - SiteStatusManager_Test. This custom object is used by another feature. Remove the usage and try again. : Apex Class - OpportunityCreateConractAndCD_Test. This custom object is used by another feature. Remove the us
• objects/Event/Event.object-meta.xml: ERROR at line 1, column 1 - The CustomObject called 'Event' is standard and cannot be deleted
• objects/Product2/Product2.object-meta.xml: ERROR at line 1, column 1 - The CustomObject called 'Product2' is standard and cannot be deleted
• objects/amc__Milestone__c/amc__Milestone__c.object-meta.xml: ERROR at line 1, column 1 - Cannot delete managed object
• objects/amc__Milestone__c/amc__Milestone__c.object-meta.xml: ERROR at line 1, column 1 - Cannot modify managed object: entity=ValidationFormula, component=03d5m000000CfVD, field=ValidationFormula, state=installed

**

In this result:

  • I don’t see the field I selected.
  • It deleted the wrong stuff!

In my directory I have a manifest/package.xml file that I use that it seems to take from.

I’ll attach logs.

Comments (16)

  1. Justin Julicher reporter

    It seems to do a similar thing when I retrieve a single field - it retrieves a whole lot of objects in the same package.

  2. Scott Wells repo owner

    Justin, since it's doing the same thing on retrieve, can you please get a debug log of this behavior on retrieval? That should show me the package.xml that it's creating for that retrieval operation so that I can see how it's populated.

  3. Justin Julicher reporter

    Attached log when all I selected was a new Custom Metadata type:

    ApprovalChangedFields__mdt and all sub types.

  4. Justin Julicher reporter

    Now I think that is the correct log let me know if it isn’t as it was from yesterday and it had rolled over.

  5. Scott Wells repo owner

    Justin, I don't see any retrievals in that log. I do see a few deployments, and I can see where you added the debug logging config, but it's missing a retrieval action. Can you reproduce it again and send me all idea.log* files? If you'd prefer to email them vs. posting them here, that's fine.

  6. Justin Julicher reporter

    Hi Scott

    Here is a log of an instance where I selected one class file and it downloaded 600+ fields etc.

  7. Scott Wells repo owner

    Justin, circling back around to some of these that I pushed out while I dealt with some other issues. Is this still happening with the latest base IDE, IC2 plugin, and Salesforce CLI versions? If so, can you please provide a new debug log? The last one attached here doesn't show the package.xml file used for retrieval, and it also has interleaved deployment and retrieval log entries which makes it a bit difficult to decipher. Thanks!

  8. Scott Wells repo owner

    I'm going to resolve this in hopes that the fix for #1842 also addresses the issue here. If it's still reproducible after updating to 2.1.7.3, please reopen and provide new steps to reproduce, debug logs, etc.

  9. Log in to comment