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
Noah ZakariaNoah Zakaria 

Visualforce Error (account name ****)

went to finish up visualForce  trails/modules on dev org, noticed account name is blocked. already checked profile, heirarchy perm. sets roles cannot seem to solve issue have gone through basic object field level security as well.

Thanks any advice appreciated.

error msg  -> 
core.apexpages.exceptions.ApexPagesHandledException: Object type not accessible. Please check permissions and make sure the object is not in development mode: Name, Phone FROM Account ORDER BY Name ASC LIMIT 10000 ^ ERROR at Row:1:Column:56 encrypted field 'Name' cannot be ordered in a query call. Original queryString was: 'SELECT Id, Industry, Name, Phone FROM Account ORDER BY Name ASC LIMIT 10000' 
Best Answer chosen by Noah Zakaria
FearNoneFearNone
hi Noah,

It is not about security. The error states that do not use Name as Order By.
User-added image
https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/field_types.htm


you can try to create a formula-string field that will do in the Order By. 


Hope this will help.

All Answers

FearNoneFearNone
hi Noah,

It is not about security. The error states that do not use Name as Order By.
User-added image
https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/field_types.htm


you can try to create a formula-string field that will do in the Order By. 


Hope this will help.
This was selected as the best answer
Noah ZakariaNoah Zakaria
Hey, thanks for clearing that up for me. 
- Noah