Error when creating a scratch org - Error (1): A scratch org was created with username test-xxxxxxxxx@example.com, but the settings failed to deploy due to: [Error] settings/SocialProfile.settings : Not available for deploy for this API version
- Dominant language
- No language data
- Stars
- 571
- Forks
- 80
- Avg merge
- 2d 15h
- Merged PRs (30d)
- 3
Description
### Summary
Attempt to create a new scratch org with socialProfileSettings: enableSocialProfiles true added to the project-scratch-def.json file.
Returns the error
```
Creating Scratch Org... Error
Error (1): A scratch org was created with username test-xxxxxxxx@example.com, but the settings failed to deploy due to:
[Error] settings/SocialProfile.settings : Not available for deploy for this API version
```
### Steps To Reproduce
create a new SF project
- sf project generate -n Project_Name -t Standard
modify the project-scratch-def.json file, add socialProfileSettings , so it looks like this
```
{
"orgName": "BUG",
"edition": "Developer",
"features": ["EnableSetPasswordInApi"],
"settings": {
"lightningExperienceSettings": {
"enableS1DesktopEnabled": true
},
"mobileSettings": {
"enableS1EncryptedStoragePref2": false
},
"socialProfileSettings": {
"enableSocialProfiles": true
}
}
}
```
attempt to create the scratch org
- sf org scratch create -f config/project-scratch-def.json -a MyOrg
Observe error
```
Creating Scratch Org... Error
Error (1): A scratch org was created with username test-golrkcjmtwoj@example.com, but the settings failed to deploy due to:
[Error] settings/SocialProfile.settings : Not available for deploy for this API version
```
Note - the scratch org is created, however the settings are not deployed and alias is not assigned.
Attempted with APIs 60, 59 and 48
> **IMPORTANT**
> Provide a repository that's configured to reproduce the issue. If you are unable to provide a repo, please explain why not. The more info we have from the start, the faster we can resolve your issue.
> We may close your issue if you don't include proper instructions.
>
> - Generate a project with `sf project generate` or fork [dreamhouse-lwc](https://github.com/trailheadapps/dreamhouse-lwc).
> - Provide detailed step-by-step instructions on how to reproduce the issue.
https://github.com/camerongoodman/sf-cli-org-create-bug-2729.git
### Expected result
Scratch org is created successfully
### Actual result
Creating Scratch Org... Error
Error (1): A scratch org was created with username test-golrkcjmtwoj@example.com, but the settings failed to deploy due to:
[Error] settings/SocialProfile.settings : Not available for deploy for this API version
### System Information
WSL2 - Ubuntu
```json
{
"architecture": "wsl-x64",
"cliVersion": "@salesforce/cli/2.28.6",
"nodeVersion": "node-v18.19.0",
"osVersion": "Linux 5.15.146.1-microsoft-standard-WSL2",
"rootPath": "/home/cam/.nvm/versions/node/v18.19.0/lib/node_modules/@salesforce/cli",
"shell": "bash",
"pluginVersions": [
"@oclif/plugin-autocomplete 3.0.7 (core)",
"@oclif/plugin-commands 3.1.2 (core)",
"@oclif/plugin-help 6.0.12 (core)",
"@oclif/plugin-not-found 3.0.10 (core)",
"@oclif/plugin-plugins 4.2.1 (core)",
"@oclif/plugin-search 1.0.13 (core)",
"@oclif/plugin-update 4.1.10 (core)",
"@oclif/plugin-version 2.0.12 (core)",
"@oclif/plugin-warn-if-update-available 3.0.10 (core)",
"@oclif/plugin-which 3.0.15 (core)",
"@salesforce/cli 2.28.6 (core)",
"apex 3.0.22 (core)",
"auth 3.3.11 (core)",
"community 2.4.5 (user)",
"data 3.0.19 (core)",
"deploy-retrieve 3.2.11 (core)",
"info 3.0.21 (core)",
"limits 3.1.7 (core)",
"marketplace 1.0.20 (core)",
"org 3.3.11 (core)",
"packaging 1.26.1 (user)",
"schema 3.1.1 (core)",
"settings 2.0.22 (core)",
"sobject 1.1.9 (core)",
"source 3.1.10 (core)",
"telemetry 3.1.11 (core)",
"templates 56.0.13 (core)",
"trust 3.3.6 (core)",
"user 3.2.7 (core)",
"@salesforce/sfdx-scanner 3.17.0 (user)",
"rec-build-sfdx-plugin 0.1.0 (link) /home/cam/work/rec/rec-build-sfdx-plugin",
"sfpowerkit 6.1.0 (user)"
]
}
```
### Additional information
Contributor guide
Assessment
This issue has not been assessed yet.