AnsweredAssumed Answered

Trouble Selecting from FeatureLayer containing Definition Query

Question asked by mratcliffe_mwwssb on Apr 4, 2018
Latest reply on Apr 19, 2018 by mratcliffe_mwwssb

My Definition Queried featurelayer clearly contains the field "Material;" however, my select() returns the exception:  "geodatabasefieldexception," field does not exist or is unaccessible.


The source FeatureLayer is a Complex Edge from a Geometric Network...(Problem?)


If I first remove the Definition Query from the FeatureLayer, the Select executes properly (Material = CI).


Select Method is supposed to drill through Definition Queries appropriately:

"...If there is a definition query set on the MapMember, the Select() method will automatically work on the subset of rows in the MapMember that meet the definition criteria. You specify an additional query that will be applied after the MapMember's definition query by passing valid QueryFilter object for the QueryFilter parameter.
If the MapMember has any joins, this Select() method takes that into account.

To ensure maximum robustness, callers should explicitly dispose of the returned ArcGIS.Core.Data.Selection in either a using statement or a finally block."


Can someone point me in the right direction?