QRY1027 An invalid sort direction was encountered.

Explanation

An invalid sort direction was encountered. Valid directions are Ascending or Descending.

User response

Check all instances where sort directions are applied and change them to either ascending or descending.