• pramod852
  • NEWBIE
  • 0 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies

 

Developed a quick test page to display data on a custom object named  Receiving.  Im using a list controller to display all entries and it works fine when I visit the url of the page from my machine.
However, my colleague gets the following error:
Visualforce Error
T_Data__c FROM Receiving__c ORDER BY S_ID__c ASC LIMIT 10000 ^ ERROR at Row:1:Column:67 field 'S_ID__c' can not be sorted in a query call
It's important to note that my colleague created the custom object to begin with.
Why would the page behave for me and not for someone else?
Here's the code - not much to it.
As you can see it's using the standardController which I'm guessing is responsible for generating the SOQL query.  
<apex:page standardController="Receiving__c" recordSetVar="entries" showHeader="false">
<apex:pageBlock >
    <apex:pageBlockTable value="{!entries}" var="entry">
        <apex:column value="{!entry.name}" />
        <apex:column value="{!entry.S_ID__c}" />
        <apex:column value="{!entry.T_Data__c}" />  
    </apex:pageBlockTable>
</apex:pageBlock>
</apex:page>
Visualforce Error
T_Data__c FROM Receiving__c ORDER BY S_ID__c ASC LIMIT 10000 ^ ERROR at Row:1:Column:67 field 'S_ID__c' can not be sorted in a query call