-
Notifications
You must be signed in to change notification settings - Fork 84
Description
Note
Before you submit your issue, make sure that:
- You're using the latest version of Salesforce CLI.
- You've searched both open and closed issues for related posts.
- You've used the
doctorcommand to diagnose common issues.- You understand that GitHub Issues don't adhere to any agreement or SLA.
- If you require immediate assistance, use official channels such as Salesforce Customer Support.
Summary
Since Oct 6th, when our devhub received the latest winter update, we've noticed the sf community create cli command consistently fails to create the site. Specifically, after running the command and querying the Id it returns, we find that the "Status" is always "Error" and it throws the message: "An unexpected error occurred. Try again or contact your Salesforce administrator for help."
If I hop into the same scratch org and manually create the site with the same exact settings, I find that it is created successfully.
In addition, I also noticed that the sf community create --help help text does not note that -p/--url-path-prefix is now a REQUIRED flag but when I run the actual sf community create command it will fail without the -p flag included. This is strange given if I manually create the site in my org with clickops, I can successfully create the site without including a url path prefix.
Here is my sf cli version:
$ sf --version
@salesforce/cli/2.108.6 darwin-arm64 node-v22.19.0Steps To Reproduce
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 generateor fork dreamhouse-lwc.- Provide detailed step-by-step instructions on how to reproduce the issue.
To reproduce, spin up a scratch org with the winter update and run:
sf community create --name 'Example Site' --template-name 'Partner Central' --url-path-prefix ExampleSite --json -o <org-alias>
Then query for the status with:
sf data query --query "SELECT fields(all) FROM BackgroundOperation WHERE Id = '<id-here>' LIMIT 200" --json -o <org-alias>
Tip
use sf doctor --create-issue to automatically fill the required information
Expected result
I'd expect the site to be successfully created in my scratch org.
Actual result
The background operations errors
Additional information
System Information
PASTE_VERSION_OUTPUT_HERE$ sf --version
@salesforce/cli/2.108.6 darwin-arm64 node-v22.19.0