I have a ArcGIS Service throwing errors due to un underlying DBMS error - the text of the error message follows:
Error: Underlying DBMS error [[Microsoft][ODBC Driver 17 for SQL Server][SQL Server]The geometry data type cannot be selected as DISTINCT because it is not comparable.] [AdaptLocationSummaryStatistics].
The table specified as the source is a point layer of approximately 25K records . There is also a related table (non-spatial) consisting of about 100K records. Also, this is a SQL Server database.
This service has been running for several years with no changes to the database items and has been throwing this error for about a month apparently. On a monthly basis these data are updated using a truncate/delete rows/append process.
Any thoughts what might be happening here?