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
dkraun123dkraun123 

System.QueryException: object is not accessible in query due to package restrictions

I have run into this error message when trying to use dynamic SOQL for the first time. I am running the query in a managed package, but the object I am working with is in the same managed package, the package api is unrestricted, and my profile is system admin with full rights. Can anyone think of any other settings that would be causing restricted access?

-David
dchasmandchasman
David - I move your first post identical to this one to the more appropriate Apex Code board.
dkraun123dkraun123
Thanks Doug, I wasn't really sure where to put this. It seems like a packaging issue, but it occurs in apex code while submitting a visualforce form. Anyway, hopefully someone on the apex board has an idea.
fedeLfedeL
I am having the same problem.
Any clue what to do?

Thanks in advance.