laptop and a wrench

Error

When writing a definition query in ArcGIS Pro on a feature class from a SQL Server database, and the DATEDIFF function is used, the query fails if there are no records returned.

Última publicación: November 14, 2019 ArcGIS Pro
Número de ID del error BUG-000126459
EnviadoOctober 31, 2019
Última modificaciónMay 16, 2025
Relacionado conArcGIS Pro
Versión encontrada2.4.2
Sistema operativoN/A
Versión de sistema operativoN/A
EstadoNon-Reproducible

Información adicional

This issue is no longer reproducible. When no records are found, the validation process returns a warning, and that is expected.

Solución alternativa

  • Avoid using the DATEDIFF SQL function in the definition query. For example, 'Date<(GETDATE()-1)'.
  • Alternatively, use the same expression in ArcMap instead.

Pasos para reproducir

ID del error: BUG-000126459

Software:

  • ArcGIS Pro

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