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
Li LeeLi Lee 

Error Message: column Id is not supported in ORDER BY throw in API 54

Hi all,
In my Apex code, I have follow SOQL
SELECT ID FROM Publisher Order By ID
In API 49 I can run this SOQL, bug upgrade to API 54 it will throw "column Id is not supported in ORDER BY clause" error message.
SwethaSwetha (Salesforce Developers) 
HI Li,
I was able to repro this behavior in workbench with version 51.0 onwards for this SOQL

I've reviewed https://developer.salesforce.com/docs/atlas.en-us.api_tooling.meta/api_tooling/tooling_api_objects_publisher.htm but dint find anything relevant.

I've seen similar scenarios  in the past which ended up as a bug within salesforce. I'll reach out to our team internally and will let you know as I have an update.

Regards,
Swetha Maddali
Salesforce.com support
SwethaSwetha (Salesforce Developers) 
HI Li,
As mentioned in https://salesforce.stackexchange.com/questions/378207/order-by-id-not-support-in-publisher?noredirect=1#comment548153_378207 I have filed a bug with the concerned product development team and will let you know as I have more details.

To avoid confusion of duplicates, I will post updates on the Stackexchange link going forward.

Please consider closing this thread. Thank you