-
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
Deploying project to a new scratch org generate warnings for GlobalValueSet and fail to track them #2870
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. |
Hey @hagai-shatz, thanks for the repro repo. I am seeing the same thing. I would guess you are correct that it has something to do with the automatic |
This issue has been linked to a new work item: W-15775150 |
fyi about |
We have determined that the issue you reported exists in code owned by another team that uses only the official support channels. To ensure that your issue is addressed, open an official Salesforce customer support ticket with a link to this issue. We encourage anyone experiencing this issue to do the same to increase the priority. We will keep this issue open for the community to collaborate on. |
Does anyone know how this turned out or if any action was taken? |
Still experiencing the same issue. Has there been any update on the matter @mshanemc? I currently have to advise my devs to basically to double or manual maintenance of global picklists in order to keep my logs smaller. |
the team that can fix it has not yet. |
Started getting this since a month or two as well. It's super annoying, I basically need to do all my deploys with I'll log a support ticket for this as well, maybe it helps to add some pressure. Then again, considering we've been waiting for some IdeaExchange ideas for over 10 years, I'm not holding my breath. |
Please add your vote to this known issue. |
fyi @fransf-wtax again, this is an API bug and should be fixed by them. |
@cristiand391 That's interesting, thanks for sharing this! Salesforce support replied with:
But what you're saying is this is a bug in the API and needs to be fixed there. I'll relay this to the support person. I'll ask him to keep the case open until they get more clarity on this. Maybe that'll force the API team to talk to you / the CLI team and come to an agreement on where the problem lies so that it actually gets fixed because it seems like the current situation is a stalemate. Will update this ticket as I get responses from Salesforce support. |
Latest update from Salesforce support:
I've responded that the bug was logged 5 months ago, so Salesforce have already had 5 months to work on "high priority tasks" and it's about time they started working on this bug. Waiting for a response... |
Latest from Salesforce Support is that the fix for this is "tentatively planned in the second half of" 2025 as a patch/fix ("safe harbor"). So I guess we're all out on the stormy sea until then. Looks like they just introduced this new |
Summary
When deploying sfdx project with global value sets to a new scratch org, the command generate some warnings and the global value sets are not properly tracked in the local source tracking in
.sf/orgs/<org-id>/maxRevision.josn
.The warnings generated in the first code deployment to a new scratch org:
When trying to deploy again using
sf project deploy start
, the global value sets are listed as conflicts:At this stage, the source code tracking in
.sf/orgs/<org-id>/maxRevision.josn
has"lastRetrievedFromServer": null
for the global value sets:The conflict can be resolve by forcing a deploy with
sf project deploy start --ignore-conflicts
, and the source tracking is updated:The only clue I can find for this is in the global value set metadata documentation:
Steps To Reproduce
Use the following project: https://github.com/hagai-shatz/MyProject
sf org create scratch -f ./config/project-scratch-def.json --alias test --no-namespace
sf project deploy start -o test
and see the reported warningExpected result
First code deployment to the new scratch org to properly track the version of global value sets.
Actual result
Global value sets fail to be tracked in first deployment of the code.
System Information
Additional information
The text was updated successfully, but these errors were encountered: