-
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
Snapshot Scratch Orgs created with wrong language #2643
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. |
On a non-snapshot org, we send that when creating the org [it becomes part of ScratchOrgInfo] and don't do anything post-create.
The signups team that owns scratch org creation controls what properties the API accepts. The CLI/VSCode currently block some fields here https://github.com/forcedotcom/sfdx-core/blob/891318acad3b213418f0bbedce961989be86014d/src/org/scratchOrgInfoGenerator.ts#L45-L46 If you're open to trying it, you can remove language from that list and see what happens (if it works fine, we'd take a PR for that change). The best would be for team signups to fix their snapshot language problem. |
Thank you for your helpful suggestions 😊 When removing the blocker locally, the error changed from
to
I can also see, when running Thus, it seems like the API is indeed blocking this signup value as well. I assume I need to create a Salesforce Case then? Or is there a team signups GitHub Repo I don't know about? 😅 |
Yes, you'll need to open a case with support about this. Thanks for reporting and all your troubleshooting efforts! |
FYI @shetzel, feedback from Salesforce Support:
Thus, Shane's proposed changed can be planned for by the Salesforce CLI team for Winter '25 Release |
Internal work item: W-15021586 |
@shetzel |
@petter-eikeland - Yep! As of: forcedotcom/sfdx-core#1055, which is currently in the release candidate and will be promoted to production tomorrow. |
Summary
When creating a snapshot scratch org, the language is not set the same as the snapshot. This is both an issue for deploying metadata to the snapshot scratch org (e.g. "startsWith" error #1921) and for package version creation (e.g. "startsWith" error and Profile names in wrong language in Apex Tests). Currently, only
"orgName"
and"snapshot"
are the allowed attributes when creating a snapshot scratch org. Could perhaps the SF CLI accept the"language"
attribute for snapshot scratch org creation as a workaround, similar to #1962? I assume the CLI updates the language in both the scratch org, and the build org post creation when this attribute is set.Steps To Reproduce
"language": "en_US"
Expected result
Snapshot scratch org should have default org language & User User language = en_US
Actual result
Snapshot scratch org created in wrong language (Norwegian for me)
System Information
Additional information
The text was updated successfully, but these errors were encountered: