Select to view content in your preferred language

Issue saving GUID in feature service

290
1
Jump to solution
12-23-2024 12:57 PM
samg_ak
New Contributor

I'm trying to create a new feature in a feature service and as part of that I need to create a new GUID for a field. I'm able to create the feature, but the guid that I am passing into the new feature is not saving.

I'm using the uuid library and have tried using the these two methods,

  • using uuid.v4obj();
  • using uuid.v4() to create a guid in string and adding curly brackets to pass in a string version

The GUID field in my feature service is not read-only and everything else saves fine. What is the best approach to saving this data type?

Thanks!

0 Kudos
1 Solution

Accepted Solutions
samg_ak
New Contributor

After some more digging, it looks like I missed the Guid() class!

Just needed to call "Guid()" to create a new ID.

View solution in original post

0 Kudos
1 Reply
samg_ak
New Contributor

After some more digging, it looks like I missed the Guid() class!

Just needed to call "Guid()" to create a new ID.

0 Kudos