cci task create_community errors with INVALID_INPUT
ssay-work opened this issue · comments
Describe the bug
I'm trying to create a community with the canned task create_community
following the documentation, I executed a command like this:
cci task run create_community --template "Customer Service" --name "Customer Portal"
The error I receive is states that I have an invalid input, and that I need to pass in the URL for my site. Output below from my scratch org:
[10/27/23 14:18:15] Getting org info from Salesforce CLI for test-xmkvjm6iwezc@example.com
[10/27/23 14:18:17] Beginning task: CreateCommunity
As user: test-xmkvjm6iwezc@example.com
In org: 00D7x000002Aw81
[10/27/23 14:18:18] Creating community "Customer Portal"
Sending request to create Community
Malformed request https://data-business-5022-dev-ed.scratch.my.salesforce.com/services/data/v48.0/connect/communities. Response content: [{'errorCode': 'INVALID_INPUT', 'message': 'Enter a URL for your site.'}]
Retrying community creation request
Sending request to create Community
Malformed request https://data-business-5022-dev-ed.scratch.my.salesforce.com/services/data/v48.0/connect/communities. Response content: [{'errorCode': 'INVALID_INPUT', 'message': 'Enter a URL for your site.'}]
Retrying community creation request
Sending request to create Community
Malformed request https://data-business-5022-dev-ed.scratch.my.salesforce.com/services/data/v48.0/connect/communities. Response content: [{'errorCode': 'INVALID_INPUT', 'message': 'Enter a URL for your site.'}]
Retrying community creation request
Sending request to create Community
Malformed request https://data-business-5022-dev-ed.scratch.my.salesforce.com/services/data/v48.0/connect/communities. Response content: [{'errorCode': 'INVALID_INPUT', 'message': 'Enter a URL for your site.'}]
Retrying community creation request
Sending request to create Community
Malformed request https://data-business-5022-dev-ed.scratch.my.salesforce.com/services/data/v48.0/connect/communities. Response content: [{'errorCode': 'INVALID_INPUT', 'message': 'Enter a URL for your site.'}]
Retrying community creation request
Sending request to create Community
Malformed request https://data-business-5022-dev-ed.scratch.my.salesforce.com/services/data/v48.0/connect/communities. Response content: [{'errorCode': 'INVALID_INPUT', 'message': 'Enter a URL for your site.'}]
Retrying community creation request
Sending request to create Community
Reproduction steps
- run the
create_community
task - observe error
Your CumulusCI and Python versions
CCI version 3.80
Python version 3.9.14
This scratch org is a newly created scratch org on winter '24
Operating System
MacOS
Windows environment
No response
CumulusCI installation method
pipx
Error Gist
https://gist.github.com/ssay-work/5c4a4ac3c2b3ccc8a72ced32df575122
Additional information
No response
Thanks for the report, @ssay-work. Unfortunately, I'm not able to reproduce this using the steps provided in your report. Are you able to provide more details? If possible, reproduction steps that can run against a public repository like trailheadapps/dreamhouse-lwc would be ideal.
Interesting.
We do have an existing portal created too, do you think that might play into it? Once I get some time I’ll delete the existing one and retry.
will check out that repo as well
We do have an existing portal created too, do you think that might play into it?
Maybe, does the existing portal have url_path_prefix
defined? If not, I'd try adding it to your options and re-running. (We're using a relatively old Metadata API version (v48.0
) for this task, so the error message may have changed since then.)
That was it!
Thanks!