function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Brent MellowBrent Mellow 

Bad References Found (in Managed Package)

I have been developing a Managed Package in Developer org.  Its been working great and we have it deployed to a number of production orgs.  When I went to add new compoents to the package today in the DEV org, I got the following error when I clicked on the package name:

User-added image

Anyone seen this before or know how to clear it?  When I click on each of the links, the items are references to managed packages themselves that are installed in the dev org and they can't be resaved.
NagendraNagendra (Salesforce Developers) 
Hi Brent,

This turned out to be a bug, which Salesforce have now fixed.
Removing and re-installing the package causing the issues also worked.

Note:Salesforce has provided a button 'Recompile All' on the page where the 'Bad References' error is thrown. I clicked on the button to recompile all the classes and I was able to open my package components without any issues. Thereafter the error isn't thrown and the list of package components open as before.

Regards,
Nagendra.P