Cannot set sharingModel to ReadWrite on a CustomObject with a MasterDetail relationship field
Okay this is how I resolved it. Based on the Metadata Field Types I set the sharingModel
and the externalSharingModel
both to ControlledByParent
and everything built correctly!
EDIT When I tried pushing to the newly created scratch Org I got this error Cannot set sharingModel to ControlledByParent on a CustomObject without a MasterDetail relationship field
. The xml metadata file clearly states that there is a master-detail relationship. Everything in the org seems okay too but it did not want to push until I changed the sharingModel
and the externalSharingModel
to ReadWrite
again. So I guess that's a workaround but then to spin the org those have to be changed to ControlledByParent
again.