question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Several Settings in orgPreferenceSettings Cause 'ProblemDeployingSettings: Failed to deploy settings to scratch org' Error

See original GitHub issue

Summary

I have been experimenting with changing from orgPreferences to settings in my Scratch definition file and I have discovered that the presence of any of these options causes an ‘ProblemDeployingSettings: Failed to deploy settings to scratch org.’ error when creating the scratch org:

“documentContentSearchEnabled”: true, “knowledgeEnabled”: true, “nameSuffixEnabled”: true, “middleNameEnabled”: true “liveAgentEnabled”: true, “chatterProfileEnabled”: true

Steps To Reproduce:

  1. Create a scratch-def.json file
  2. Add a Settings segement with an orgPreferences segement within it
  3. Include any of these options:
  • “documentContentSearchEnabled”: true,
  • “knowledgeEnabled”: true,
  • “nameSuffixEnabled”: true,
  • “middleNameEnabled”: true
  • “liveAgentEnabled”: true,
  • “chatterProfileEnabled”: true
  1. issue a force:org:create against the scratch org def

Expected result

Scratch org is created with those settings applied

Actual result

Scratch Org Creation doesn’t succeed and presents this error:

"ProblemDeployingSettings: Failed to deploy settings to scratch org.\n    at ALMError (C:\\Users\\jyoung\\AppData\\Local\\sfdx\\client\\7.1.4-79f97a7df8\\node_modules\\salesforce-alm\\dist\\lib\\core\\almError.js:44:19)\n    at settings.createDep
loyDir.then.catch.err (C:\\Users\\jyoung\\AppData\\Local\\sfdx\\client\\7.1.4-79f97a7df8\\node_modules\\salesforce-alm\\dist\\lib\\core\\scratchOrgApi.js:772:37)\nOuter stack:\n    at Function.wrap (C:\\Users\\jyoung\\AppData\\Local\\sfdx\\client\\7.1.4-79f97
a7df8\\node_modules\\@salesforce\\core\\lib\\sfdxError.js:151:27)\n    at OrgCreateCommand.catch (C:\\Users\\jyoung\\AppData\\Local\\sfdx\\client\\7.1.4-79f97a7df8\\node_modules\\salesforce-alm\\dist\\ToolbeltCommand.js:216:46)"

Additional information

SFDX CLI Version(to find the version of the CLI engine run sfdx --version): sfdx-cli/7.1.4-79f97a7df8 win32-x64 node-v10.15.3

OS and version: WIndows 10 Pro Version 10.0.17134 Build 17134

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:5

github_iconTop GitHub Comments

1reaction
amilagmcommented, Jul 18, 2019

If someone is looking into enabling quote via the scratch org def this is how it should look like. Unfortunately the documentation is not clear or accurate on this.

  "settings": {    
     ...
    "quoteSettings":{
      "enableQuote": true
    }
  }
0reactions
bkwdesigncommented, Jul 30, 2019

If someone is looking into enabling quote via the scratch org def this is how it should look like. Unfortunately the documentation is not clear or accurate on this.

  "settings": {    
     ...
    "quoteSettings":{
      "enableQuote": true
    }
  }

I’m finding the documentation to be quite terrible at the moment. Unlike other experiences I’ve had in SalesForce

Read more comments on GitHub >

github_iconTop Results From Across the Web

Failed to deploy settings to scratch org
I received the following error: Error shape/settings/Security.settings Security Property 'enableSetPasswordInApi' not valid in version 51.0 I ...
Read more >
Scratch org creation fails with Error ID (1203833999) without ...
ERROR : Failed to deploy settings to scratch org. Expected Behavior: If error happens, system should provide the details of troublesome features/ ...
Read more >
sfdx - lekkimworld.com
Yesterday I was trying to deploy some source including an Experience Cloud Site (using ExperienceBundle ) created with API version 50.0 to a...
Read more >
Scratch Orgs And Create Scratch Org with Visual Studio Code ...
The scratch org is a source-driven and disposable deployment of ... You can share the scratch org configuration file with other team members ......
Read more >
Scratch Org - Salesforce - Confluence
1sfdx force:org:create -s -f config/project-scratch-def.json -a ... down in googling the errors that I did not step back and reason how ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found