Loading

'Cannot set sharingModel to ControlledByParent on a CustomObject without a MasterDetail relationship field' error

Дата публикации: Oct 13, 2022
Описание
When trying to deploy an update to a Custom Object from sandbox to production, you may get the following Error: "Cannot set sharingModel to ControlledByParent on a CustomObject without a MasterDetail relationship field".

If you have two objects ObjectA and ObjectB and they are related with Master-Detail Relationship. ObjectA is the master and ObjectB, the child. If you only deploy ObjectB, you might see the above error. 
Решение
To avoid getting this error, add the master detail field (even if it has not been changed) to your deployment and the error will not occur anymore. The custom fields of that custom object should be added as well to the change set.
Номер статьи базы знаний

000386883

 
Загрузка
Salesforce Help | Article