Select to view content in your preferred language

Unsupported element type exception in FeatureCollectionTable after SDK update

171
1
Jump to solution
3 weeks ago
NicoleLeiva25
New Contributor

Hi community 👋

After updating to the latest version of the ArcGIS Maps SDK, we started experiencing a runtime error when trying to construct a FeatureCollectionTable using the following constructor:

FeatureCollectionTable(geoElements, fields)

This throws the following exception:

Unsupported element type

After investigation, we resolved the issue by switching to the constructor that allows explicitly setting the geometry type:

FeatureCollectionTable(fields, geometryType, spatialReference, hasZ, hasM)

This resolved the error, but we believe the SDK behavior change should be documented or handled with a clearer exception.

🛠 SDK Version: 200.7.0
:mobile_phone: Platform: Android
:package: Language: Kotlin

Would appreciate any insights or clarification on whether this change is intentional and if there's an updated recommendation for working with FeatureCollectionTable.

Thanks in advance!

1 Solution

Accepted Solutions
SorenRoth
Esri Contributor

Hello,

 

Thank you for your response. We've identified a bug that affects the Kotlin SDK only. We will have it fixed in the 200.8.0 release, until then the workaround you have identified may be used.

View solution in original post

1 Reply
SorenRoth
Esri Contributor

Hello,

 

Thank you for your response. We've identified a bug that affects the Kotlin SDK only. We will have it fixed in the 200.8.0 release, until then the workaround you have identified may be used.