0

I am trying to upload a managed package, it is failing validation and complaining that my permission set references the blng__Payment__c object that has a M-D relationship with Account.

<Permission Set Name> references Payment that has M-D relationship with Account.

Searching online it is said that M-D relationship are not supported for managed packages, which is fine.

The problem is I don't have control over blng__Payment__c, that's not part of my package, I only reference it in some component I uses. So I am not sure how I can fix it?

0
2

The relevant documentation from the ISVforce Guide is About Permission Sets and Profile Settings:

Do they [Permission Sets] include standard object permissions?
No. Also, you can’t include object permissions for a custom object in a master-detail relationship where the master is a standard object

Emphasis mine. You can ship master-detail objects, but you cannot permission them in a packaged permission set. The fact that this object is owned by a different managed package doesn't change how these manageability rules are enforced.

You'll have to remove these object permissions from your Permission Set.

2
  • On the bright side, that error used to throw a GACK, so getting a helpful error is something at least Sep 11 '20 at 20:22
  • Yup it worked, thanks a lot Sep 14 '20 at 20:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.