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
Arjan Oldenkamp 17Arjan Oldenkamp 17 

Please press Recompile All or edit and resave the following items

We have created a Package in a Developer Org which we used to deploy with our customers. Suddenly we receive a notification and error when we want to add items into the Package or deploy the package. The notification is: Bad Reference found.  See belowUser-added imagePlease press Recompile All or edit and resave the following items. When trying to recompile All we receive an error: An internal server error has occured.  See below

User-added image
We have several developer Orgs and this issue appears in all Orgs.

Does someone know what we can do so we can create/edit and deploy packages again?
KrishnaAvvaKrishnaAvva
Hi Arjan,

There are couple of issues here:
1. Refresh your sandbox and recompile all.
2. It doesnt work - Try uninstalling and re-installing the package which is causing the issue.
3. Regarding the Internal Server Error - Looks like this is specific to what actions/packages you are trying to compile.
Raise a Salesforce ticket with the Erro ID.
Arjan Oldenkamp 17Arjan Oldenkamp 17
Hi Krishna,

Thanks for your response. I just got a notification of your reply..... That took some while :-)

This problem has been solved after pressing Recompile All at least 20 times! 
Benaya ZuckermanBenaya Zuckerman
Turn off the chrome extensions like change set helper and organizer, it won't happened again