laptop and a wrench

漏洞

The Select Layer By Attributes tool in ArcGIS Pro does not return correct values from a non-registered table in an enterprise geodatabase.

上次发布: September 17, 2019 ArcGIS Pro
漏洞 ID 编号 BUG-000125149
已提交September 11, 2019
上次修改时间April 2, 2025
适用范围ArcGIS Pro
找到的版本2.4.1
状态Known Limit

附加信息

This issue is related to the use of multiple columns to create a temporary ObjectID field. All tables must have something that uniquely identifies each record. If there is no unique column ArcGIS Pro can generate one on the fly from multiple input columns. However, most queries return an ObjectID that links their results back to the map or table being viewed in ArcGIS Pro. Queries that are passed down to the DBMS are unable to return the ArcGIS-generated ObjectID. While the query returns accurate results, they cannot be correctly linked back to data in the map.

解决办法

Use one of the following workarounds:

  • Create a composite column in the query defining the query layer.
If COL1, COL2, COL3 & COL4 are used in combination to create a unique identifier, concatenate them into a new columns:select CAST(CONCAT(COL1, COL2, COL3, COL4) as int) as ObjectID,COL1, COL2, COL3, COL4, ALL, THE, REST, OF, MY, COLUMNS from MYDB.dbo.MYTABLEThis generates a new column 'ObjectID' and attribute queries are able to return correct values.
  • Register the table with the geodatabase before running the select by attribute query.

重现步骤

漏洞 ID: BUG-000125149

软件:

  • ArcGIS Pro

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

下载 Esri 支持应用程序

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

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项