There has been a problem trying to replace ${I_agree_that_my_anonymised_dat} with the XPath to the survey element named 'I_agree_that_my_anonymised_dat'. There is no survey element with this name. what should i do.
Hi @christian_36 welcome back to our community!!!
Could you please try using the online validator?
If possible, feel free to share your XLSForm here so the community can help you fix it.
Hey,
That error means somewhere in your form usually in a relevant, constraint, calculation, or even a label you’ve got ${I_agree_that_my_anonymised_dat}, but no question in your survey sheet actually has that exact name. XLSForm references are case-sensitive and have to match character-for-character, so even a small mismatch throws this error.
Looking at the name itself, it looks cut off mid-word like it should be something longer, maybe I_agree_that_my_anonymised_data or similar. That’s a really common issue with long consent question names: either the reference got typed by hand and truncated, or the actual name column value is different from what you assumed (especially if Kobo auto-generated the name from your label instead of you setting it manually).
Open your survey sheet and find your consent question. Check its name column value exactly copy it, don’t retype it.
- Use Find & Replace (Ctrl+F) across the whole workbook for I_agree_that_my_anonymised_dat it’ll show you every place the broken reference appears.
- Replace each one with the exact, full name from step 1.
- If that name is long and awkward to work with, consider renaming the question to something shorter like consent_anon_data — just make sure you update every ${…} reference to it afterward.
- Re-run validation (Kobo’s uploader). If there’s another mismatch further down, it’ll usually flag the next one.
