AnsweredAssumed Answered

Retrieve records from related table in ArcGIS Runtime SDK for Android

Question asked by deleted-user-M6rwsXZZL0Hq on Oct 27, 2017
Latest reply on Oct 30, 2017 by MWilburn-esristaff

Hello everyone!

 

I have a problem with querying related data.

 

I've created a Mobile Map Package (mmpk) with twolayers.
One layer has lines segments and the other the vertex of those lines

 

The table of the segments layer has the ids of his vertex.

 

OBJECTIDF_ID_NODET_ID_NODESHAPE 
1100101PolyLine


And the the table of vertex has some atrributes like type:

 

OBJECTIDID_NODETYPESHAPE
11001POINT
21012POINT


And i've created 2 relationship classes

Here is the relashionship class properties:

 

Relationship Classvertex_segments_f_rel
TypeSimple
CardinalityOne to one
NotificationNone
Origin Namevertex
Origin Primary KeyID_NODE
Origin Foreign KeyF_ID_NODE
Destination Namesegments
Forward Path Labelsefementsf
Backward Path Labelvertexf

 

 

Relationship Classvertex_segments_t_rel
TypeSimple
CardinalityOne to one
NotificationNone
Origin Namevertex
Origin Primary KeyID_NODE
Origin Foreign KeyT_ID_NODE
Destination Namesegments
Forward Path Labelsefementst
Backward Path Labelvertext

 

When i try to retrieve the related features with the SDK i have next error:
Exception occurred: com.esri.arcgisruntime.ArcGISRuntimeException: Item not found in the database. (Table, domain, relationship class, etc.)

 

I used the same patern listed here :
https://github.com/Esri/arcgis-runtime-samples-android/tree/master/list-related-features

 

The thing is. When i use only one relationship it works.

 

Maybe I'm missing something.,Its posible to do that or is a bug?

In ArcGis Pro the relations works as expected

 

An idea?

 

SDK Version : 100.1.0


Thanks!!

Outcomes