Skip to content

Pin scratch orgs to en_US and document unmanaged --no-namespace - #240

Open
RubenHalman wants to merge 1 commit into
SFDO-Community:mainfrom
RubenHalman:fix/scratch-org-language-no-namespace
Open

RubenHalman wants to merge 1 commit into
SFDO-Community:mainfrom
RubenHalman:fix/scratch-org-language-no-namespace

Conversation

@RubenHalman

@RubenHalman RubenHalman commented Oct 20, 2026 •

Copy link
Copy Markdown
Member

Summary

Scratch orgs created from this repo inherited the Dev Hub language. On a non-English Dev Hub that produced nl_NL, deploy failed with Cannot specify a startsWith attribute for this language on Unsubscribe__c.

This pins language to en_US on config/project-scratch-def.json and the CumulusCI defs in orgs/.

The README now documents the unmanaged source path: create scratch orgs with --no-namespace. sfdx-project.json is namespaced UnsubscribeLnk for the managed package, and a Dev Hub that does not own that namespace cannot create a namespaced scratch org. Do not install the managed package into the same org as a source deploy.

Custom objects use startsWith, which Salesforce rejects when a scratch
org inherits a non-English Dev Hub language. Unmanaged source deploys
also need --no-namespace; this project's namespace is UnsubscribeLnk
and a typical Dev Hub does not own it.
@Lafexlos

Copy link
Copy Markdown

Step 2 on the Developer Documentation wiki page has a "Language" note telling people to use an English Dev Hub, because scratch orgs inherit the Dev Hub's language.

This PR pins en_US in the scratch defs, so that note is no longer needed once it merges. Please don'f forget to delete that bullet point from the wiki when this got merged.

@DKeatonDC

Copy link
Copy Markdown
Contributor

Would this eliminate the need for #237

@RubenHalman

Copy link
Copy Markdown
Member Author

@DKeatonDC My applogies, I wasn't aware of your PR, but I think you are right. This PR adds some additional documentation etc

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants