+ Start a Discussion
Amita TatarAmita Tatar 

Getting error while creating community from scratch org

Hi All,

I have created a scratch org and after enabling communities, I tried to create community but i am getting and error which sayd. An expected error occured. Can someone help me on this ?
Its really urgent. 

Thanks,
Amita
Raj VakatiRaj Vakati
You need to enable communities in the project-scratch-def file. Please change it below 

https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_scratch_orgs_def_file_config_values.htm​
{
    "orgName": "Demo Company",
    "edition": "Developer",
    "orgPreferences" : {
        "enabled": ["S1DesktopEnabled"]
    },
	"features": ["Communities"],

}

 
Raj VakatiRaj Vakati
{
    "orgName": "Demo Company",
    "edition": "Developer",
    "orgPreferences" : {
        "enabled": ["S1DesktopEnabled"]
    },
	"features": ["Communities"]

}