-
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
Unable to deploy new version of Entitlement Process as another entitlement process is already using this name #2431
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. |
Hello @anderg4 👋 It looks like you're using an outdated version of Salesforce CLI. Moving to After you move to the latest version of |
@anderg4 you need a bit of scripting to do this. This is how we handled in dx@scale for instance https://medium.com/@gnemiq/salesforce-entitlement-handling-9e69735e3687 |
Hi @azlam-abdulsalam, and thanks for the link. To be honest, I'm not sure what this article means when it says "turn on versioning" - but I can see the point. As another work around we've already found you can just create a new version in the target org with the same version number and then deploy over the to of it. It then doesn't seem to care that the "VersionMaster" is not the same/maintained between different orgs. Surely the scenario that is described on that link is still a bug that needs to be fixed? The metadata which we retrieve is supposed to be able to be deployed to another org, by design. This used to work fine - we have done it many times in the past for new versions - but "something" has broken it. My assumption is that they've started to try and be clever and use VersionMaster rather than the base API Name of the Entitlement Process - and that it's different between the orgs. Our pipeline consists of validations &/or deployments to 6 different orgs - so if the VersionMaster is different in all of them then it's a bit of a problem. Suggestion: they should just put it back like it was - it worked fine (until it was in use, obvs). #rant |
@anderg4 - when you say, "This used to work fine..." - are you referring to a CLI version that it used to work with or an org update that changed the behavior? To me, it looks like the latter. If so, the CLI can't fix this and it's an issue for support who can pass this to the correct server side team. |
Closing as stale |
Summary
We're attempting to deploy a new v2 version of an existing Entitlement Process. The deployment fails with the message "Another entitlement process is already using this name. Try a different name." -- but we're deploying a second version of the existing Entitlement Process.
If we manually create a v2 in the target org, but do not link it to an Entitlement - the deployment then works as expected.
Steps To Reproduce
Basic package deploy fails - with something like
Expected result
Deployment should happen, new version of Entitlement Process should be created.
Actual result
PROJECT PATH ERRORS
────────────────────────────────────────────────────────────────────────────────────────── ─────────────────────────────────────────────────────────────────────────────
force-app\main\default\entitlementProcesses\someslaprocess_v2.entitlementProcess-meta.xml Another entitlement process is already using this name. Try a different name.
System Information
Additional information
The text was updated successfully, but these errors were encountered: