Hi @ahblake ,
How are you?
Just clarifying - I ran into this Enketo issue while designing a form that included repeat groups. I needed to populate all repeat instances using media files / CSVs (which is why I asked whether the form contained repeat groups to @iam_utkarshranjan ).
What I found surprising was that the same form worked perfectly fine on an older version of ODK Central / Enketo (around mid-2023), but it failed on newer version released in 2024.
To be honest - I never figured out the exact root cause. I even considered documenting it here on the forum, but I wasn't sure what exactly to document or explain since I couldn't pin down the "why" (all I could write was this ). Luckily, in my setup, our organisation's production server was still running a 2023 version while my staging server had a 2024 release. So, even though it failed on my staging server, yet worked fine on my Organisation's ODK Central server, so.. just ignored the issue back then.
Though, I did a lil bit of research to pick up a couple of insights for the same:
- This issue taught me the hard way that
"NaN"
and"NULL"
are not the same. Some fields in my form were read as NaN in ODK Collect, while Enketo interpreted them (same fields) as NULL (or empty). (or vic-versa, I was simply confused.) - Eventually, I redesigned the form. Instead of relying on functions like
instance
orpulldata
to bring CSV data into repeat groups, I tried a solution I found here on the forum: usingselected-at
to process key-value pairs from the media file. Surprisingly, that fixed the issue completely - though I still can't explain exactly for how or why it worked.
Just thought I'd share my experience in case it helps someone facing a similar situation.
Wishing you a great day!