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
herodotusherodotus 

Error on Apex class save

When attempting to save an Apex class the following error pops up:
    From Apex Editor in salesforce: Save Error: Insufficient Privaledges
    From eclipse IDE: Save error: insufficient access rights on cross-referenc id
 
Any ideas?
 
The save worked one day, then did not work the next.
 
 
Thanks
devNut!devNut!
What is the schema of the object you are saving to?

It sounds like your object contains a lookup (cross-reference) field and you do not have access to the record it looks up to.