This seems to have been introduced with Summer '23 as my scratch orgs just did the swap over the weekend. I can't query for SiteDetail with an ORDER BY Id
in the query.
Steps to Reproduce:
- Create a Site.
- Query for that site to get it's Id.
- Run this query in your cli to see the expected results
sf data query --query "SELECT Id, DurableId, IsRegistrationEnabled, SecureUrl FROM SiteDetail WHERE DurableId IN ('REPLACE_WITH_SITE_ID') ORDER BY Id ASC" --api-version=49.0
- Run this query in your cli to see the new error
sf data query --query "SELECT Id, DurableId, IsRegistrationEnabled, SecureUrl FROM SiteDetail WHERE DurableId IN ('REPLACE_WITH_SITE_ID') ORDER BY Id ASC"
Error (1): SiteDetail: column Id is not supported in ORDER BY clause
Seems to be the same issue as found here: Order By id not support in Publisher.
ORDER BY Id
to queries. I can override the getOrderBy() method as a workaround, but it sure is odd that all of a sudden it's required to avoid an error and I'd like to be prepared for this going forward.