When I post a submit a survey123 form to a hosted table layer the GUID field is not populating. Why does it not populate? If I understand correctly, I need the GUID for a table I've related to this table. Attached is the XSLForm file.
In the table I published from ArcGIS Pro as Web Layer it has a GUID field in it as well.
Hi Rutledge Nicholas,
The function is uuid() . Note that if you want to create a GUID field (the default is text), you also need to set the bind::esri:fieldType column for it to esriFieldTypeGUID.
I am also attaching the solution link added for the problem.
Survey123 unique ID
123 will only manage relationship classes it created using a repeat in the form. It cannot figure out custom relationship classes so you need to manage them yourself. At least I have never seen it.
I do this a lot by passing in the key from a URL via Field Maps or web map. 123 can generate GUIDs but they would be random. I personally always use meaningful keys that come from the attributes.
I hope that makes sense. Not sure what your workflow is.
@ezirhli
Appreciate this information. I tried looking for the solution you pointed me to. Never was able to locate it. I guess I was probably searching with a different terminology instead of something like "unique ID".
Thank you again!
Yes you can generate a uuid but it will not be correct when trying to use for related records unless you push them over to the parent yourself.
So if I am understanding this right, even if I publish my Feature Class with Global ID's enabled, I am unable to let the Global ID's from EGDB populate itself? I have to use the uuid() calculation? and if so, it's going to be random/non-unique?
@DougBrowning is telling the truth.The global id of the spatial layer must match the guid field of the relational table. I think what you need to do according to your workflow is to have questions in survey123 that contain spatial data and also questions related to the relational table consisting of begin repeat and repeat fields. Survey123 easily manages the globalid and guid relationship with repeat options.
@RutledgeNicholas
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.