laptop and a wrench

Bug

FeatureClass.GetDefinition method fails with error "The dataset 'featureClassName' does not have a valid definition." when called on Feature class with a join

Last Published: January 26, 2021 ArcGIS Pro SDK for .NET
Bug ID Number BUG-000136933
SubmittedJanuary 22, 2021
Last ModifiedSeptember 19, 2024
Applies toArcGIS Pro SDK for .NET
Version found2.7
Operating SystemWindows OS
Operating System Version10.0 64 Bit
StatusKnown Limit

Additional Information

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.

Steps to Reproduce

Bug ID: BUG-000136933

Software:

  • ArcGIS Pro SDK for .NET

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options