XLSForm Validation Checklist
An XLSForm validation checklist checks the workbook structure, question types, choice lists, expressions, media, and field workflow before a form reaches enumerators. Upload validation catches structural problems, but only a device pilot and test submission show whether the form works in real collection conditions.
For a fast first pass, run the browser-based XLSForm quick check, then complete this checklist and test representative submissions.
Use this page as the hub for the existing common XLSForm errors guide, constraint examples, and skip logic guide.
What should you check in the workbook first?
Work through the workbook before uploading it to ODK Central:
- The workbook contains the required
surveysheet and uses the expectedtype,name, andlabelcolumns. - The
choicessheet contains every list referenced byselect_oneandselect_multiplequestions. - The
settingssheet has a stableform_id, a readableform_title, and a newversionwhen the definition changes. - Question and choice names contain no spaces and do not collide with another name in the same scope.
- Every
begin group,end group,begin repeat, andend repeatrow is paired and ordered correctly. -
relevant,constraint,calculation, andchoice_filterexpressions reference real names and use valid XPath syntax. - Required questions are actually required by the study protocol and do not block legitimate skip paths.
- Translation columns, media filenames, and appearance values match the files and devices used in the study.
The XLSForm reference explains the core sheets and settings. Use the XLSForm question types reference when a type or widget is uncertain.
What does ODK Central validate during upload?
When Central receives an XLSForm, it converts the spreadsheet to an XForm and checks the conversion. Errors stop the upload. Warnings may require a decision before the draft can be created, depending on the upload path and the issue.
Central accepting the file is only the first gate. A form can convert successfully and still have confusing wording, an incorrect skip path, missing media, or a workflow that is too slow on a phone. The official Central forms guide explains the upload, draft, warning, and testing flow.
How do you debug a failed XLSForm?
Start with the first error and fix one category at a time. Later messages can be side effects of the same broken reference or sheet entry.
| Error pattern | What to inspect | Related guide |
|---|---|---|
| XPath or variable reference failure | Compare every ${name} reference with the name column, including spelling and underscores | Common XLSForm errors |
| Duplicate name or form ID | Search the workbook and settings sheet for repeated identifiers | XLSForm common errors |
| Choice list not found | Match the list name after select_one or select_multiple with choices.list_name | Cascading selects |
| Invalid question type | Replace invented types such as number or dropdown with supported XLSForm types | Question types |
| Constraint never fires | Check whether the question is visible and whether the expression evaluates to true or false as intended | Constraint examples |
| Hidden question appears | Check the relevant expression and the exact value returned by the earlier question | Skip logic |
| Group or repeat error | Count the opening and closing structural rows and check their nesting | Repeat groups |
| Attachment or translation problem | Compare the filename, language column, and media reference with the files uploaded to the draft | Add languages in ODK |
Do not change several unrelated parts of the form between tests. A small edit and a repeatable test make the cause easier to find.
How should you test an XLSForm in ODK Central?
Use a draft project or a draft form before publishing to field users:
- Upload the workbook to Central as a draft.
- Read every warning and decide whether it is expected or needs a fix.
- Preview the form in a browser for a quick logic check.
- Download it to the same type of device used in the field.
- Complete one interview offline, including important skip paths, constraints, repeats, media, and translations.
- Reconnect and send the finalized submission.
- Inspect the record in Central and export the test data.
- Compare the export columns and repeat tables with the analysis plan.
- Publish only after the study team accepts the form and the field team knows which version to use.
For the production cutover, follow the ODK Central form versioning guide. A version update should have a clear pilot, release time, and enumerator instruction. For the production cutover, follow the ODK Central form versioning guide and the ODK Central form release checklist. A version update should have a clear pilot, release time, and enumerator instruction.
What does validation not prove?
Validation checks syntax and compatibility. It does not prove that respondents understand the questions, that enumerators can follow the protocol, that a GPS reading is useful at the collection site, or that the study's consent and sampling procedures are sound.
Use the ODK Field Data Quality Toolkit to extend the review before, during, and after fieldwork. Its checks cover audit evidence, timing, GPS, identity, submissions, and documentation.
If the form creates or updates shared records, add the ODK Entities and longitudinal workflow to the test plan. Entity creation, access, updates, and offline conflicts need cross-form testing.
A form that uploads successfully is not automatically ready for fieldwork. Test it offline on a real device, send a practice submission, inspect the export, and review the protocol before publishing.
Can LooprAI help debug an XLSForm?
LooprAI can inspect an uploaded workbook, explain validation messages, and attempt repairs such as fixing references, question types, or list names. Treat the result as an editable draft. Review the changed rows, run validation again, and complete the Central device test yourself.
The common XLSForm errors guide shows the repair workflow, while How to Build an XLSForm with AI covers form creation from a description.
Validate and fix an XLSFormReview common XLSForm errors
Frequently Asked Questions
How do I validate an XLSForm?
Check the survey, choices, and settings sheets, verify names and expressions, upload the workbook to an ODK Central draft, read the warnings, test it on a field device, submit one offline record, and inspect the export before publishing.
Why does my XLSForm upload but fail in the field?
Upload conversion does not test the full field workflow. A form can have valid syntax but confusing wording, a wrong skip path, missing media, a device-specific problem, or an export shape that does not match the analysis plan.
What is the best XLSForm debugging tool?
Start with the validation message from the converter or ODK Central, then compare the referenced name, list, expression, or structural row with the workbook. LooprAI can explain and attempt repairs, but every repair still needs Central and device testing.
What should I test before publishing an XLSForm?
Test constraints, skip logic, repeats, calculations, translations, media, audit settings, offline collection, synchronization, and the exported submission. Use the same device type and App User setup that the field team will use.
Does ODK Central validate XLSForms automatically?
Central converts uploaded XLSForms to XForms and checks the conversion during upload. That catches structural problems, but Central acceptance does not replace a device pilot, a practice submission, an export review, or a study-team protocol review.
No Credit Card Required
Build the form first. Add hosting when you need it.
Start free with LooprAI, then deploy a managed ODK Central server or run DataSnap checks when your project is ready.
Automation handles the mechanical work.
Researchers decide what the evidence means.