FeatureClass.GetDefinition method fails with error "The dataset 'featureClassName' does not have a valid definition." when called on Feature class with a join
上次发布: January 26, 2021ArcGIS Pro SDK for .NET
漏洞 ID 编号
BUG-000136933
已提交
January 22, 2021
上次修改时间
September 19, 2024
适用范围
ArcGIS Pro SDK for .NET
找到的版本
2.7
操作系统
Windows OS
操作系统版本
10.0 64 Bit
状态
Known Limit
经开发团队审核,已确定此问题与不受 Esri 控制的软件的已知限制有关。 问题的“其他信息”部分可能包含进一步说明。
附加信息
As stated in the API reference (https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/#topic7015.html), FeatureClass.GetDefinition() throws an exception when called on a joined feature class, because there is no underlying datastore for these temporary datasets.
FeatureClass.IsJoinedTable can be used to determine if a feature class belongs to a Join, and FeatureClass.GetJoin can be used to fetch the join. Join.GetDestinationTable and Join.GetOriginTable can be used to get the destination and origin tables. These tables be joins. When IsJoinedTable for a table returns false call GetDefinition.