Issues calculating uuid values from ODKCollect

Hello everyone,

As the title says itself, I have a little issue calculating my unique identifiers for each repeat of my dummy submissions.

Here’s my XLSform : test_uuid_generation.xlsx (16,4 Ko)

As you can see, I’m trying to get UUID values as calculated via uuid() (with a once to prevent redefinitions after edition, and not shown to the current user). The calculation is set as pictured here :

image

After some experimentations, I figured out only a submission done via Enketo gives a proper UUID for each repeat, but not if completed via ODK Collect. The field “uuid” is then systematicaly empty (even with Webforms).

You can find the results in these CSV files : test_uuid_generation.csv.zip (1,0 Ko)

This is the submissionID of the Enketo submission : uuid:0da2e6e1-9143-45c8-9968-51e675f37c27, the UUID field is correctly filled here.

This is where I’m asking for a little help understanding how can this happen. Did someone had ever met the same problem ?

Thank you,

Maxime

One thing that jumps out at me is that you've made the field non-relevant by putting false() in the relevant column. Non-relevant fields are supposed to be stripped out of submissions so I would not expect to ever see a value submitted for that field. Making the type calculate already hides the field from the user. Please try it without making non-relevant and let us know how that goes!

1 Like

Thank you so much LN ! Indeed, the false() was unnecessary.

1 Like