We have a Jenkins build that creates scratch orgs using this project-scratch-def.json:
{
"orgName": "Xyz",
"edition": "Developer",
"features": ["Communities", "Sites"],
"settings": {
"apexSettings": {
"enableCompileOnDeploy": true
},
"communitiesSettings": {
"enableNetworksEnabled": true,
"enableOotbProfExtUserOpsEnable": true
}
}
}
and seemingly randomly but quite often the code push into the created scratch org fails with:
where Id in (select ParentId from NetworkMemberGroup where NetworkId
ERROR at Row:4:Column:51
sObject type 'NetworkMemberGroup' is not supported. If you are attempting to use
a custom object, be sure to append the '__c' after the entity name. Please
reference your WSDL or the describe call for the appropriate names. (1222:41)
where NetworkMemberGroup
is an SObject type related to Experiences/Communities.
Any suggestions on how to fix this?
PS
Related to akarnid's comment, anyone know the easiest way with sfdx of reading back from the org to check a setting such as enableNetworksEnabled
?
Status
of Network?NetworksEnabled
. This might be more in line with your question at the end.