laptop and a wrench

Error

Querying a date field based on Epoch time values in ArcGIS GIS Server 10.5 REST endpoint of a hosted feature service stored in the relational ArcGIS Data Store 10.5.1 returns "Database Error".

Última publicación: August 13, 2018 ArcGIS GIS Server
Número de ID del error BUG-000112945
EnviadoApril 4, 2018
Última modificaciónJune 5, 2024
Relacionado conArcGIS GIS Server
Versión encontrada10.5.1
Sistema operativoRed Hat Enterprise Linux
Versión de sistema operativo7.0 64 Bit
EstadoWill Not Be Addressed

Información adicional

By default, services support the SQL 92 standard when querying dates. This format is supported by all data sources on top of which the feature service can run. Format examples of this are as follows: = DATE 'YYYY-MM-DD' = TIMESTAMP 'YYYY-MM-DD HH:MI:SS' The epoch date format (testdate = '1522676196000') is not standard and is not supported across all data sources – it happens to work with elastic but does not work with other sources. For this reason we recommend using the SQL 92 format above.

Solución alternativa

It is also possible to note that if the WHERE clause used a specific date stamp in the form of  WHERE: testdate='2018-04-01', the query for the relational hosted feature layer returns the features correctly. Applications that use REST services to query date fields based on Epoch time only cannot use this workaround. 

Pasos para reproducir

ID del error: BUG-000112945

Software:

  • ArcGIS GIS Server

Recibir notificaciones cuando cambie el estado de un error

Descargar la aplicación de soporte de Esri

Descubrir más sobre este tema

Obtener ayuda de expertos en ArcGIS

Contactar con el soporte técnico

Descargar la aplicación de soporte de Esri

Ir a opciones de descarga