Form Error upload

Hi everyone,
attached is a form that I have designed using odk build but unable to
upload it. Have also used the odk validate and it brings the
error"arsing form...
Title: "CHV"
org.javarosa.xform.parse.XFormParseException: Select question has no choices
org.javarosa.xform.parse.XFormParseException: Select question has no choices
at org.javarosa.xform.parse.XFormParser.parseControl(XFormParser.java:838)
at org.javarosa.xform.parse.XFormParser.parseControl(XFormParser.java:762)
at org.javarosa.xform.parse.XFormParser$7.handle(XFormParser.java:165)
at org.javarosa.xform.parse.XFormParser.parseElement(XFormParser.java:466)
at org.javarosa.xform.parse.XFormParser.parseGroup(XFormParser.java:1312)
at org.javarosa.xform.parse.XFormParser.access$300(XFormParser.java:68)
at org.javarosa.xform.parse.XFormParser$8.handle(XFormParser.java:167)
at org.javarosa.xform.parse.XFormParser.parseElement(XFormParser.java:466)
at org.javarosa.xform.parse.XFormParser.parseElement(XFormParser.java:475)
at org.javarosa.xform.parse.XFormParser.parseElement(XFormParser.java:475)
at org.javarosa.xform.parse.XFormParser.parseDoc(XFormParser.java:412)
at org.javarosa.xform.parse.XFormParser.parse(XFormParser.java:300)
at org.javarosa.xform.util.XFormUtils.getFormFromInputStream(XFormUtils.java:78)
at org.odk.validate.FormValidator.validate(FormValidator.java:371)
at org.odk.validate.FormValidator.actionPerformed(FormValidator.java:249)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
Could someone kindly check the form and let me know where the error is
originating from and possible solutions.

CHV.xml (73.3 KB)

··· -- Samuel Kevin Otieno Database Admin and Web Design Mobile Apps/Networking +254 705405986 +254728 572264

The trouble with doing something right the first time is that nobody
appreciates how difficult it was.

Hi Samuel.

Hi everyone,
attached is a form that I have designed using odk build but unable to
upload it. Have also used the odk validate and it brings the
error"arsing form...
Title: "CHV"
org.javarosa.xform.parse.XFormParseException: Select question has no
choices
org.javarosa.xform.parse.XFormParseException: Select question has no
choices
at
org.javarosa.xform.parse.XFormParser.parseControl(XFormParser.java:838)
at
org.javarosa.xform.parse.XFormParser.parseControl(XFormParser.java:762)
at
org.javarosa.xform.parse.XFormParser$7.handle(XFormParser.java:165)
at
org.javarosa.xform.parse.XFormParser.parseElement(XFormParser.java:466)
at
org.javarosa.xform.parse.XFormParser.parseGroup(XFormParser.java:1312)
at
org.javarosa.xform.parse.XFormParser.access$300(XFormParser.java:68)
at
org.javarosa.xform.parse.XFormParser$8.handle(XFormParser.java:167)
at
org.javarosa.xform.parse.XFormParser.parseElement(XFormParser.java:466)
at
org.javarosa.xform.parse.XFormParser.parseElement(XFormParser.java:475)
at
org.javarosa.xform.parse.XFormParser.parseElement(XFormParser.java:475)
at
org.javarosa.xform.parse.XFormParser.parseDoc(XFormParser.java:412)
at org.javarosa.xform.parse.XFormParser.parse(XFormParser.java:300)
at
org.javarosa.xform.util.XFormUtils.getFormFromInputStream(XFormUtils.java:78)
at org.odk.validate.FormValidator.validate(FormValidator.java:371)
at
org.odk.validate.FormValidator.actionPerformed(FormValidator.java:249)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown
Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown
Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
Could someone kindly check the form and let me know where the error is

​I tested the form using https://enketo.org/formtester and got:

Transformation Report

  • XML to HTML transformation for form took 0.27 seconds

HTML5 Validation Report

  • Error: Element title must not be empty.
  • Warning: Section lacks heading. Consider using h2-h6 elements to add
    identifying headings to all sections.
  • Warning: The date input type is not supported in all browsers. Please
    be sure to test, and consider using a polyfill.
  • Error: Self-closing syntax (/>) used on a non-void HTML element.
    Ignoring the slash and treating as a start tag.
  • Error: End tag fieldset seen, but there were open elements.
  • Error: Unclosed element div.

JavaRosa XForm Validation Report

  • This validation is yet not functional.

XML Load Errors

  • Valid XML document!

JavaScript Errors

Uploading the xml to aggregate I am getting:
Error: Problem with JavaRosa Parsing Form:
org.opendatakit.aggregate.exception.ODKIncompleteSubmissionData: Javarosa
failed to construct a FormDef. Is this an XForm definition?

see: https://groups.google.com/forum/#!topic/opendatakit/Xlvx0NSvQeU

Best and Regards

Ronald Munjoma

··· On 7 December 2014 at 08:35, Samuel Kevin wrote:

originating from and possible solutions.

--
Samuel Kevin Otieno
Database Admin and Web Design
Mobile Apps/Networking
+254 705405986
+254728 572264

The trouble with doing something right the first time is that nobody
appreciates how difficult it was.

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google Groups
"ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
Best and Regards
Ronald Munjoma
+263 775 625 283, +263 776 444 309

Downloading and using ODK Validate
gives:

Parsing form...
Title: "CHV"
XForm Parse Warning: select1 question s [Less than 100] should not
contain spaces, and are recommended not to contain apostraphes/quotation
marks
Problem found at nodeset:
/html/body/group/select1[@ref=/data/SocioDemographicCharacteristics/Code203]/item/value
With element

XForm Parse Warning: select1 question s [<6 years] should not
contain spaces, and are recommended not to contain apostraphes/quotation
marks
Problem found at nodeset:
/html/body/group/select1[@ref=/data/SocioDemographicCharacteristics/Code205]/item/value
With element

XForm Parse Warning: select1 question s [Not applicable] should not
contain spaces, and are recommended not to contain apostraphes/quotation
marks
Problem found at nodeset:
/html/body/group/select1[@ref=/data/SocioDemographicCharacteristics/Code206]/item/value
With element

org.javarosa.xform.parse.XFormParseException: Select question has no choices
org.javarosa.xform.parse.XFormParseException: Select question has no choices
...

··· ------------------------ The first few are warnings with recommended changes. The last two are errors that you need to address.

I'm not sure why two errors are printed, but I found one definition in your
form that is a select question without any choices:

  <select1

ref="/data/KNOWLEDGEANDPRACTICEONMATERNALHEALTHSERVICES/Code301">

The error messages try to be descriptive of the problem. You defined a
select1, (Code301), but never defined the choices/options for it.

On Mon, Dec 8, 2014 at 3:31 AM, ronald munjoma simbiso@gmail.com wrote:

Hi Samuel.

On 7 December 2014 at 08:35, Samuel Kevin samuelkevin.kevin@gmail.com wrote:

Hi everyone,
attached is a form that I have designed using odk build but unable to
upload it. Have also used the odk validate and it brings the
error"arsing form...
Title: "CHV"
org.javarosa.xform.parse.XFormParseException: Select question has no
choices
org.javarosa.xform.parse.XFormParseException: Select question has no
choices
at
org.javarosa.xform.parse.XFormParser.parseControl(XFormParser.java:838)
at
org.javarosa.xform.parse.XFormParser.parseControl(XFormParser.java:762)
at
org.javarosa.xform.parse.XFormParser$7.handle(XFormParser.java:165)
at
org.javarosa.xform.parse.XFormParser.parseElement(XFormParser.java:466)
at
org.javarosa.xform.parse.XFormParser.parseGroup(XFormParser.java:1312)
at
org.javarosa.xform.parse.XFormParser.access$300(XFormParser.java:68)
at
org.javarosa.xform.parse.XFormParser$8.handle(XFormParser.java:167)
at
org.javarosa.xform.parse.XFormParser.parseElement(XFormParser.java:466)
at
org.javarosa.xform.parse.XFormParser.parseElement(XFormParser.java:475)
at
org.javarosa.xform.parse.XFormParser.parseElement(XFormParser.java:475)
at
org.javarosa.xform.parse.XFormParser.parseDoc(XFormParser.java:412)
at
org.javarosa.xform.parse.XFormParser.parse(XFormParser.java:300)
at
org.javarosa.xform.util.XFormUtils.getFormFromInputStream(XFormUtils.java:78)
at org.odk.validate.FormValidator.validate(FormValidator.java:371)
at
org.odk.validate.FormValidator.actionPerformed(FormValidator.java:249)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown
Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown
Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
Could someone kindly check the form and let me know where the error is

​I tested the form using https://enketo.org/formtester and got:

Transformation Report

  • XML to HTML transformation for form took 0.27 seconds

HTML5 Validation Report

  • Error: Element title must not be empty.
  • Warning: Section lacks heading. Consider using h2-h6 elements to add
    identifying headings to all sections.
  • Warning: The date input type is not supported in all browsers.
    Please be sure to test, and consider using a polyfill.
  • Error: Self-closing syntax (/>) used on a non-void HTML element.
    Ignoring the slash and treating as a start tag.
  • Error: End tag fieldset seen, but there were open elements.
  • Error: Unclosed element div.

JavaRosa XForm Validation Report

  • This validation is yet not functional.

XML Load Errors

  • Valid XML document!

JavaScript Errors

Uploading the xml to aggregate I am getting:
Error: Problem with JavaRosa Parsing Form:
org.opendatakit.aggregate.exception.ODKIncompleteSubmissionData: Javarosa
failed to construct a FormDef. Is this an XForm definition?

see: https://groups.google.com/forum/#!topic/opendatakit/Xlvx0NSvQeU

Best and Regards

Ronald Munjoma

originating from and possible solutions.

--
Samuel Kevin Otieno
Database Admin and Web Design
Mobile Apps/Networking
+254 705405986
+254728 572264

The trouble with doing something right the first time is that nobody
appreciates how difficult it was.

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google Groups
"ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
Best and Regards
Ronald Munjoma
+263 775 625 283, +263 776 444 309

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google Groups
"ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
Mitch Sundt
Software Engineer
University of Washington
mitchellsundt@gmail.com