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
pcalpcal 

MyObject__c is not accessible in query due to package restrictions

I am attempting to package up my application and am now seeing this error any time my code tries to run a simple query against my custom objects.  This used to work when I ran things unpackaged.

I know this is a difficult thing to just diagnose in the forum, but I'm wondering if anyone has any guidance as to what this might mean?  Which package restrictions should I be looking for?  I've poured over the package panel and nothing is jumping out at me.

Thanks in advance.

Ron HessRon Hess
do you have a developer prefix on your application?
is the object deployed ? also check the profiles to see how they access this object.
pcalpcal
The object is deployed and the profile perms seem ok.

I'm not sure what you mean by "developer prefix," though.  Is this different from a namespace? 

Apologies - I'm sure this is a big RTFM.  I googled salesforce "developer prefix" and have not come up with many hits.

Thanks,
-p
pcalpcal
Update - I've managed to get things working again, though I'm not entirely sure how.  Never did find a 'developer prefix', though my 'namespace prefix' is set, so I will assume they are the same.  :)