I keep seeing Product under Package Requirements even though there are zero references to it anywhere in my package. I have searched through all my files both in my local editor and Developer Console and verified neither Product nor Product2 was present.

This package (in beta -no managed releases yet) used to contain references to Product2 in one Apex class but they are all removed now. It is worth mentioning that this was the case with a couple other objects too, but once their references were removed they disappeared from Package Requirements.

Any ideas how I could correct this issue?

  • Can you unselect the product reference or is it not editable. – Eric Jan 11 '17 at 20:14
  • @Eric It is not editable. – Mossi Jan 11 '17 at 20:17

Turns out this was caused by indirect references from child and/or nephew objects. It wasn't obvious at all but the View Dependencies button on the package helped me narrow it down.

| improve this answer | |

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.