Troubleshoot > Troubleshooting HPE Service Manager > Troubleshooting: Common database errors > Troubleshooting: ODBC error when running Crystal Reports

Troubleshooting: ODBC error when running Crystal Reports

Crystal Reports cannot sort on fields that contain SQL reserved words such as group. If you receive an ODBC error when running a sort operation in Crystal Reports, then one of the fields in your query contains a SQL reserved word. Review the SQL query and identify any fields that contain a SQL reserved word. For example, you will receive an error if you attempt to sort on the field cm3rm1.group because it contains the SQL reserved word group.

To fix the error, you can create an alias field in the database dictionary to remove the SQL reserved word. For example, you can create the alias field cm3rm1.group_alias that is an alias of the original field cm3rm1.group.