laptop and a wrench

Bogue

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.

Dernière publication: November 14, 2019 ArcGIS Pro
Numéro d’ID de bogue BUG-000126459
EnvoiOctober 31, 2019
Dernière modificationMay 16, 2025
S’applique àArcGIS Pro
Version trouvée2.4.2
Système d’exploitationN/A
Version du système d’exploitationN/A
StatutNon-Reproducible

Informations supplémentaires

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

Solution de contournement

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

Étapes pour reproduire

ID de bogue: BUG-000126459

Logiciel:

  • ArcGIS Pro

Recevoir une notification lorsque le statut d’un bogue change

Télécharger l’application Esri Support

En savoir plus sur ce sujet

Obtenir de l’aide auprès des experts ArcGIS

Contacter le support technique

Télécharger l’application Esri Support

Accéder aux options de téléchargement