-
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
ProblemDeployingSettings error when trying to create a scratch org #323
Comments
I've just tried this on another machine and I'm not seeing the issue. The versions of the Salesforce CLI and the plugins are identical across both machines. I also don't understand why on the machine that breaks it complains about OrgPreferenceSettings, as I don't have any of these. Is there some configuration built in to the CLI that has somehow not been updated? |
This affects me too. It can be traced back to the enableEnhancedEmail flag, but this is current according to docs. My setup: sfdx-cli/7.48.0 darwin-x64 node-v13.9.0 salesforcedx 48.3.1 (core) MacOS 10.14.6 scratch org config file:
sfdx-project.json:
|
I've run into the same issue. I've tried reinstalling the CLI, re-authenticating against the DevHub, but that did not help. I've filed a case with through the partner portal as well, if I get any feedback there, I'll post it here too. My config file:
|
Just a thought - are you both running SFDX as a node module? Or do you use the standalone (i.e. including a packaged Node.js & modules) installer? I switched to npm installation lately, and this correlates with the first occurences of this problem (but it also correlates with the spring release, so hard to identify the meaningful influences...) |
I'm using the standalone - this started happening when I updated the CLI and plugins to the latest versions, but so far I've only seen it on one machine. |
Saves me the hassle to return to the standalone installer... thanks! |
Updated to 7.49.1, issue seems to be gone for me |
Same thing is still happening for me on : sfdx-cli 7.49.1 Looks like #333 is the another flavour of this error. |
Thank you for reaching out. I am sending your issue to the PM for scratch orgs |
I just ran into this issue as well (and have reviewed #333 to see if it would help). I have a support ticket with Partner Support...will see how it goes and will post back when I'm up and running. |
any news? |
Downgrading to --apiversion=50.0 worked for me Environment project-scratch-def.json
|
I am still not able to create a Scratch Org with settings, here's the def I used: {
"orgName": "Mass Action Scheduler",
"edition": "Enterprise",
"hasSampleData": false,
"features": [],
"settings": {
"mobileSettings": {
"enableS1EncryptedStoragePref2": false
},
"securitySettings": {
"sessionSettings": {
"lockerServiceCSP": true,
"lockerServiceFrozenRealm": true,
"enableClickjackNonsetupUser": false,
"enableClickjackNonsetupUserHeaderless": false
}
}
}
} And this is the log that I received: {
"status": 1,
"name": "ProblemDeployingSettings",
"message": "Failed to deploy settings to scratch org.",
"exitCode": 1,
"commandName": "OrgCreateCommand",
"stack": "ProblemDeployingSettings: Failed to deploy settings to scratch org.\n at ALMError (C:\\Users\\SFDX_LOCATION\\sfdx\\client\\7.91.0-6a6ed69ebe\\node_modules\\salesforce-alm\\dist\\lib\\core\\almError.js:50:19)\n at C:\\Users\\SFDX_LOCATION\\sfdx\\client\\7.91.0-6a6ed69ebe\\node_modules\\salesforce-alm\\dist\\lib\\core\\scratchOrgApi.js:653:37\n at runNextTicks (internal/process/task_queues.js:58:5)\n at processImmediate (internal/timers.js:434:9)\nOuter stack:\n at Function.wrap (C:\\Users\\SFDX_LOCATION\\sfdx\\client\\7.91.0-6a6ed69ebe\\node_modules\\@salesforce\\core\\lib\\sfdxError.js:171:27)\n at OrgCreateCommand.catch (C:\\Users\\SFDX_LOCATION\\sfdx\\client\\7.91.0-6a6ed69ebe\\node_modules\\salesforce-alm\\dist\\ToolbeltCommand.js:248:46)\n at async OrgCreateCommand._run (C:\\Users\\SFDX_LOCATION\\sfdx\\client\\7.91.0-6a6ed69ebe\\node_modules\\@salesforce\\command\\lib\\sfdxCommand.js:85:13)\n at async Config.runCommand (C:\\Users\\SFDX_LOCATION\\sfdx\\client\\7.91.0-6a6ed69ebe\\node_modules\\@oclif\\config\\lib\\config.js:173:24)\n at async Main.run (C:\\Users\\SFDX_LOCATION\\sfdx\\client\\7.91.0-6a6ed69ebe\\node_modules\\@oclif\\command\\lib\\main.js:27:9)\n at async Main._run (C:\\Users\\SFDX_LOCATION\\sfdx\\client\\7.91.0-6a6ed69ebe\\node_modules\\@oclif\\command\\lib\\command.js:43:20)\n at async Object.run (C:\\Users\\SFDX_LOCATION\\sfdx\\client\\7.91.0-6a6ed69ebe\\dist\\cli.js:121:21)",
"warnings": []
} Switching to api Version 50.0 did not solve the issue for me either. Switching to 47.0 however seems to have done the trick. Something went awry in one of the higher API versions. |
Any news? |
Make sure you don't have restDeploy set to True. That was causing issues for me. |
Same error for me, none of the workarounds has worked for me : sfdx-cli/7.100.0 win32-x64 node-v14.16.1 salesforcedx 51.12.0 (latest-rc) |
The ProblemDeployingSettings error I got was linked to this known issue: https://trailblazer.salesforce.com/issues_view?id=a1p4V000001qZtWQAU
Workaround is to locate the folder and delete it manually. |
@chfosli any idea where I can find this temporary folder on Windows ? |
I found it here: |
I was getting mad by just deleting C:\Users\UserName\AppData\Local\Temp\shape.zip , thanks ! :) |
Any idea where can find this in Linux/Ubunutu? |
its in /tmp folder, just deleted |
If you use |
In my case issue was that
|
Hi All - any tips on this? - many thanks. |
Hi |
@CostaRonaro are you still able to reproduce this error? We've haven't seen any of the API breaks mentioned above in a while. If so, please share your scratch org definition file? |
@mshanemcbut I haven't had that problem anymore, but I haven't updated the CLI either |
This issue has not received a response in 7 days. It will auto-close in 7 days unless a response is posted. |
Summary
Executing force:org:create fails with a ProblemDeployingSettings error
Steps To Reproduce:
sfdx force:org:create
, specifying the config file created in step 1Expected result
Scratch org is created according to the configuration
Actual result
Error creating the org, with the following JSON output:
or the following error, if run without the --json switch:
=== Component Failures [1]
TYPE FILE NAME PROBLEM
───── ───────────────────────────────────── ─────────────────────────────── ─────────────────────────────────────────────
Error shape/settings/OrgPreference.settings settings/OrgPreference.settings Not available for deploy for this API version
Additional information
Removing the settings property allows the scratch org to be created successfully.
SFDX CLI Version(to find the version of the CLI engine run sfdx --version):
sfdx-cli/7.48.0-a71f8c6899 darwin-x64 node-v10.15.3
SFDX plugin Version(to find the version of the CLI plugin run sfdx plugins --core)
salesforcedx 48.3.1
├─ @salesforce/sfdx-plugin-lwc-test 0.1.5
├─ salesforcedx-templates 48.4.0
└─ salesforce-alm 48.4.0
sfdx-cli 7.48.0 (core)
OS and version:
MacOS 10.13.5
The text was updated successfully, but these errors were encountered: