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
ScottBlodgettScottBlodgett 

Organization Object Question

I am trying to execute this SOQL query

select Name, Street, State, PostalCode, Country, Phone, Fax, City, Division, ComplianceBccEmail, DefaultAccountAndContactAccess, DefaultCalendarAccess, DefaultCaseAccess, DefaultLeadAccess, DefaultLocaleSidKey, DefaultOpportunityAccess, DefaultPricebookAccess, FiscalYearStartMonth, LanguageLocaleKey, MaxActionsPerRule, MaxRulesPerEntity, PrimaryContact, ReceivesAdminInfoEmails, ReceivesInfoEmails, UsesStartDateAsFiscalYearName, WebToCaseDefaultOrigin from Organization where ID = 'xxxxxxx'

Up until today this query has worked fine. Today we ran across a client which resulted in the following exception being thrown.

INVALID_TYPE: sObject type 'Organization' is not supported.

When I used the SForce Explorer I can see that this particular org does not have an Organization object.

a). What would cause this?
b). Is this something that the site administrator did consciously? If so, in which object should I look for this information?

Thanks in advance for your help
SuperfellSuperfell
The user needs to have the view all data profile permission to access the organization object.