AnsweredAssumed Answered

Cannot Query Related from local geodatabase in ArcGIS Runtime SDK for .NET

Question asked by prusaczyk.mateusz on Mar 18, 2016
Latest reply on Mar 29, 2016 by prusaczyk.mateusz

I have a problem with querying related data.


I have a FeatureService with 4 feature layers and 2 feature tables.

0 (layer) is Related with 4 (table)

1 (layer) is Related with 4 (table)

2 (layer) is Related with 4 (table)

3 (layer) is Related with 4 (table)

4 (table) is Related with 0 (layer), 1 (layer), 2 (layer), 3 (layer)

5 (table) is Related with nothing


There is a situation when one feature from 4 (table) is a parent of 0 (layer) and another feature from 4 (table) is a child of 0 (layer).


I created replica using queryOption: all to make sure that I download all features.

Then I wanted to query related records.

 IReadOnlyList<GeodatabaseFeature> features = await table.QueryRelatedAsync(featureID, relation.ID);


Almost everything works fine, but there are the Exceptions thrown when querying

layer (0), and table (4).

I got two kinds of Exceptions:

One with message: Item not found in the database. (Table, domain, relationship class, etc.) :

And another: system.runtime.interopservices.sehexception external component has thrown an exception


Is these something that I'm doing in wrong way?





Here is my Service for better understanding