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
Dan LordDan Lord 

attempt to add items to an unlocked package: recompile all: list of class IDs for classes which do not exist

I created a package (unmanaged, unlocked). When I click on the Package Name link to add classes, etc. to the package, I get a list of class IDs 01p36000... along with two buttons labled "Recompile All". Also these messages: "Bad References Found" and "Please press Recompile All or edit and resave the following items".

When I click one of the buttons, I get "java.lang.NullPointerException". When I click any of the links to the classes, I get "Data Not Available".

It seems the classes in the list no longer exist. It also seems there is some corruption within our prod org.

How can I resolve this?

Because of this problem, I am unable to add a managed package to a scratch org - based on the Dev Hub - based on this production org.