devops-center-feedback icon indicating copy to clipboard operation
devops-center-feedback copied to clipboard

Disallow "Remove" action in DevOps Center for certain types of metadata

Open Schuchie opened this issue 3 years ago • 4 comments

Describe the bug Delete a Record Type, select it and then try to deploy it. This results in a blocking error.

To Reproduce Steps to reproduce the behavior:

  1. Delete an existing record type
  2. Add it to a work item
  3. Try to deploy it via the devops center

Following error appears: __DEPLOY__The deployment of the work items into the next stage failed. Resubmission__c.Topics_to_be_discussed of Type RecordType failed to deploy due to Cannot delete record type through API

Expected behavior Dont allow to select a remove-action of a record type or enable somehow a way to remove the record type via destructiveChanges.

Screenshots

Additional context

Schuchie avatar Jul 27 '22 11:07 Schuchie

See #202 for a similar issue

RupertBarrow avatar Jul 27 '22 13:07 RupertBarrow

This issue has been linked to a new work item: W-11499983

git2gus[bot] avatar Jul 27 '22 13:07 git2gus[bot]

Hi @Schuchie Thank you for bring this to our attention. I have opened a bug for our development team to look into it.

GilsonCanario avatar Jul 27 '22 13:07 GilsonCanario

Hi @Schuchie, our team will look into a more permanent solution that will not allow customers to select changes that are not supported by the Metadata API. This will be addressed in a future release. As a work around, you could try one of these options:

  1. Never the work item and start a new WI excluding the changes that failed to promote. The caveat with this is that the Record Type change will be visible every time you pull changes.
  2. Add the failing file to the .forceIgnore, commit and deploy. ForceIgnore will allow you to move the Work Item forward and prevent the deployment of this file.

GilsonCanario avatar Sep 13 '22 20:09 GilsonCanario