laptop and a wrench

漏洞

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.

上次发布: November 14, 2019 ArcGIS Pro
漏洞 ID 编号 BUG-000126459
已提交October 31, 2019
上次修改时间May 16, 2025
适用范围ArcGIS Pro
找到的版本2.4.2
操作系统N/A
操作系统版本N/A
状态Non-Reproducible

附加信息

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

解决办法

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

重现步骤

漏洞 ID: BUG-000126459

软件:

  • ArcGIS Pro

当漏洞状态发生变化时获得通知

下载 Esri 支持应用程序

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项