Initial metadata push to scratch org sometimes is successful and sometimes fails for the same commit (metadata state) for some reason.

Issue is with the following element: src/main/default/applications/standard__LightningSalesConsole.app-meta.xml

And error message that shows up:

Cannot create a new component with the namespace: standard. Only components in the same namespace as the organization can be created through the API

As I wrote above, the strangest thing is that it's not deterministic, it sometimes fails and sometimes goes through for the same commit.

In the scratch org definition file I have enabled the required features:

"features": [

I know I can add this element to .forceignore but I would prefer to keep tracking this element since I am using this standard app. Any ideas why it's inconsistent? I don't recall having such issues on another project but there we used only standard Lightning Sales Console, and not standard Lightning Service Console that fails here.

  • 1
    Just to clarify. The first statement: it isn't scratch org creation that fails, rather pushing meta to a scratch org, right? – pchittum Sep 13 '19 at 12:37
  • You're absolutely right, thanks for the comment – neff Sep 14 '19 at 11:38
  • 1
    Is it possible something asynchronous is happening? e.g. you add the features, and then it takes some seconds/minutes until the standard console apps exist for you to update. – Charles T Sep 14 '19 at 17:01
  • Actually, might be a case since this error usually occurs for scripts run by Jenkins where the commands are executed immediately one after another and I don't recall experiencing it when I made create and push on my own. I will do some additional testing, thanks Charles for the idea – neff Sep 16 '19 at 7:13
  • See this too. Also saw a similar, non-deterministic error when pushing profiles that included an <applicationVisibilities> referencing standard__LightningSalesConsole – Brian Low Dec 9 '19 at 23:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.