-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CustomLabels + destructive changes issues during 'sfdx force source deploy' #1977
Comments
Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support. |
This issue has been linked to a new work item: W-13858279 |
Hi @Raspikabek - I've looked into this issue and have a few questions... once I created the new apex class and custom label and had them in my org, I was able to delete them and the custom labels using the |
@Raspikabek can you please try WillieRuemmele's suggestions and let us know if it resolves this issue? Thanks |
Closing as stale. If you are still having problems please open a new Github Issue |
Summary
CustomLabels not being deployed & causing issues on dependencies when CustomLabels included as part of destructive changes with the command
sfdx force source deploy
Does not seem to happen with
sfdx force mdapi deploy
Steps To Reproduce:
Repository to reproduce: custom-labels-issue
Option A (auto from pointed repository):
npm run build
(creates Scratch Org > Geneartes manifest > tries to deploy with destructive changes)Option B (manual):
sfdx force source manifest create -p force-app -o temp
sfdx force source deploy --manifest temp/package.xml --predestructivechanges destructiveChangesPre.xml --postdestructivechanges ackage.xml --predestructivechanges destructiveChangesPre.xml --postdestructivechanges destructiveChangesPost.xml -g -c -u TARGET_ORG_ALIAS
Expected result
Deployment/Validation succeeds with no issues. I'd expect any label in destructive changes will be deleted and other labels in the repository will be deployed with no issues.
Actual result
The deployment fails due to the Apex class has a reference the a CustomLabel, but seems like the Custom Label is not being deployed due to DestructiveChanges are deleting other custom labels, but seems like is deleting ALL labels. The output of the command is:
System Information
Using
zsh
sfdx
sfdx version --verbose --json
sf
sf version --verbose --json
Additional information
Seems like using
mdapi
command does not trigger this issue. I've prepared a scriptnpm run mdapi:build
that triggers the build with the same metadata + copy/pastes the destructiveChanges files into the metadata folder generated that we use to fire the build.Initially I though it was something to do from the Salesforce side, but since
source
fails butmdapi
commands work, I thought i worth to mention here.As soon as CustomLabels is remove from all destructiveChanges the
source
command works with no issues.The text was updated successfully, but these errors were encountered: