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
Sara McDermmotSara McDermmot 

Error sObject type 'Organization' is not supported

Hi,

I am receiving an error that is not allowing users to access a VF page in a production org.  This works  fine in the full sandbox that we developed in, and tested before deploying to prod.  The only thing we can see that maybe causing the error is that Prod is on Summer 14 and Full sandbox is on Winter 15 release.  We've isolated it to a portion of the code which requires access to the standard fiscal year in the org.

We have done the following trouble shooting:
*Compared Full Sandbox vs Prod profiles
*cloned the system admin in prod (as this works fine for system admin) and just removed view all data and sales still receive an error.  Repeated this in the full sandbox and this worked
*we noticed that Prod is on Summer 14 and Full sandbox is on Winter 15, wondering if this is an issue.

Exact code error we get is “Error - sObject type 'Organization' is not supported" and from all salesforce forums, the only suggested workaround is to use "without sharing" (elevate the access of the page as admin) which ideally we don't want to do.

Thanks,
Kiran  KurellaKiran Kurella
Check your API version of the VF page and their corresponding classes. Try changing the API Version to 30.0 or 29.0.
Sara McDermmotSara McDermmot
Yes we have tried changing it to 29, 30 and 31 and we still receive an error.

Thanks,