GetRowsRelatedToOriginRows returns Rows instead of Features

49
1
05-23-2018 02:08 AM
Occasional Contributor II

When I make a call to GetRowsRelatedToOriginRows on a relationshipclass, where the destination class is a FeatureClass (not a Table), I get a list of Row objects. I would expect I could cast these to Feature objects, but then I get an InvalidCastException.

I can cast row,GetTable() to a FeatureClass, so I'm positive I am looking at the correct table.

Am I overlooking something? Or should I make an additional request to get the actual Features instead of Rows?

Reply
0 Kudos
1 Reply
Esri Regular Contributor

Hello Berend,

We've confirmed that this is a bug in the Pro SDK.  The workaround for now would be to refetch the features using the object IDs from the rows.

It is too late in the Pro 2.2 development cycle for us to fix it in that release, but we will target a fix for 2.3.

--Rich

Reply
0 Kudos