laptop and a wrench

漏洞

The UpdateCursor class in ArcPy returns the error message, "RuntimeError: An expected Field was not found or could not be retrieved properly" when the TOP prefix is used as a SQL Clause to return only a specified number of records for a feature class or table in a SQL geodatabase.

上次发布: March 14, 2019 ArcGIS Pro
漏洞 ID 编号 BUG-000120309
已提交February 25, 2019
上次修改时间June 5, 2024
适用范围ArcGIS Pro
找到的版本2.3
操作系统Windows OS
操作系统版本10.0 64 Bit
状态Non-Reproducible

附加信息

This issue is not reproducible in the latest version of the software. For inquiries or if the issue persists, contact Esri Technical Support.

解决办法

The postfix 'ORDER BY' clause correctly functions which means the table list can be sorted in the returned result. After the list is sorted, use a while loop to iterate through and update each row a set number of times. For example, a while loop iterating up to 20 is used to only update the first 20 rows of the table that are already sorted. This simulates the same results as using the 'TOP 20' clause.

重现步骤

漏洞 ID: BUG-000120309

软件:

  • ArcGIS Pro

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

下载 Esri 支持应用程序

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

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项