cli icon indicating copy to clipboard operation
cli copied to clipboard

7.172.0 and Cannot set sharingModel to ControlledByParent

Open dcano421 opened this issue 3 years ago • 1 comments

Summary

We get the following error when using 7.172.0 to install an unlocked package into a sandbox. Cannot set sharingModel to ControlledByParent on a CustomObject without a MasterDetail relationship field

Steps To Reproduce:

  1. Just try to install an unlocked package into a sandbox that has any custom child objects with a Master-Detail relationship with the custom parent object and is set to ControlledByParent.

Expected result

Should install successfully, like it does with previous versions.

Actual result

Fails on above error. Stated again, below: Cannot set sharingModel to ControlledByParent on a CustomObject without a MasterDetail relationship field

System Information

sfdx-cli/7.172.0 linux-x64 node-v16.17.1

dcano421 avatar Oct 17 '22 16:10 dcano421

Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support.

github-actions[bot] avatar Oct 17 '22 16:10 github-actions[bot]

Additional Info - I've started getting this on new org-dependent packages for objects which have not changed in the package. Started post Winter 23 (this weekend)

Version - sfdx-cli/7.173.0 darwin-arm64 node-v16.17.0 Also tested 7.172.0, 7.171.0

agentgill avatar Oct 18 '22 12:10 agentgill

Hi @agentgill @dcano421, It sounds like this is related to this weekend's Winter 23 release, I've let some internal packaging teams know so they can look into it. Also as a reminder, try out the pacage:beta:* commands too :)

WillieRuemmele avatar Oct 19 '22 22:10 WillieRuemmele

@WillieRuemmele, thanks William for responding. beta commands seem to be more stable and allowed me to get passed this issue.

agentgill avatar Oct 21 '22 11:10 agentgill

Reopening this as some customers have indicated that they cannot use the beta packaging commands in their CI scripts. We'll leave this open until it's been fixed in the force:package:install command in the salesforce-alm plugin.

To be clear, this is working if the force:package:beta:install command is used from the @salesforce/plugin-packaging plugin, but not everyone is comfortable/allowed to use beta commands in their work flows.

shetzel avatar Oct 31 '22 20:10 shetzel

This issue has been linked to a new work item: W-12067826

git2gus[bot] avatar Nov 15 '22 18:11 git2gus[bot]