Can't create Feature which contains attributes of type GUID

738
2
07-19-2017 01:13 AM
AndriusB
New Contributor II

We're using ArcGIS Runtime SDK for Android 100.1.0

I'm trying to add a new Feature to ServiceFeatureTable. Everything works fine as long as String types used. However if I try to add values for attributes of type GUID, then either serviceFeatureTable.addFeatureAsync(feature) crashes or serviceFeatureTable.applyEditsAsync() returns 0 edits.

From documentation FieldType GUID stores String values. But none of the provided formats are accepted:

"{A248C651-5712-4CF4-8888-FA7522FB825D}"

"A248C651-5712-4CF4-8888-FA7522FB825D"

"A248C65157124CF48888FA7522FB825D"

0 Kudos
2 Replies
AlexanderNohe1
Occasional Contributor III

If you do not fill that field in and try to add it to the table, I imagine a GUID should automagically be created for you (untested).  Have you tried this?  

0 Kudos
AndriusB
New Contributor II

thank you for the reply,

your suggestion would work for GlobalID (sde managed GUID field), but not any ordinary GUID type field. In our case we need the latter.

0 Kudos