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
uxtx_timuxtx_tim 

Visual Force error inconsistent for different users - did not use a soql query

Experiencing something strange with VisualForce - I created a simple page to display the field values for a list of custom objects using a standard list controller with a page block table.

 

I can save and view that page with no problem.

 

My colleague however gets an error when trying o open the url:

^ ERROR at Row:1:Column:73 field 'Signal_ID__c' can not be sorted in a query call

 

Obviously its using a soql query to sort the the table according to Signal_ID - the thing is...i didn't define a soql query.  Where is this query coming from and how do i modify it?  Why would it work for me but not for anyone else on my dev team?

jwetzlerjwetzler

SOQL queries are generated for you when you use the standard controller or the standard list controller.  We shouldn't ever be generating a bad SOQL query for you.  Can you please log a case for this?

uxtx_timuxtx_tim

Opened a log and the problem was solved - the cause was attributed to 'view error'.  Does that mean there was an error in my code or something else?  I asked for details but have not received a reply yet.