getodk / validate

ODK Validate is a Java application for confirming that a form is valid and compliant with the ODK XForms specification. Contribute and make the world a better place! ✨🔍✨
https://docs.getodk.org/validate/
Other
9 stars 26 forks source link

Validation of form with external CSV fails #73

Closed yanokwa closed 5 years ago

yanokwa commented 5 years ago

Software versions

Validate v1.13

Problem description

Form with CSV external data fails validation with the following error.

org.javarosa.xform.parse.XFormParseException: <label> node for itemset doesn't exist! [instance(cities)/root/item/label]
    at org.javarosa.xform.parse.FormInstanceParser.verifyItemsetBindings(FormInstanceParser.java:344)
    at org.javarosa.xform.parse.FormInstanceParser.verifyBindings(FormInstanceParser.java:177)
    at org.javarosa.xform.parse.FormInstanceParser.parseInstance(FormInstanceParser.java:84)

Steps to reproduce the problem

Validate this and it fails. ecsv.xml.zip (source: ecsv.xlsx)

Validate this and it works. exml.xml.zip (source: exml.xlsx)