[ODK Developers] Errors in Validate/Aggregate using file straight from ODK Build

The error seems pretty self-explanitory:

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

··· On Thu, Aug 23, 2012 at 8:54 PM, Mustafa Pirbhai wrote:

Hey Guys,

Decided to use ODK Build to make a Survey. Exported the output to .xml and
uploaded that to Aggregate and got a parsing error. Used ODK Validate and
got the following errors. (Attached files)

Any idea on whats going wrong? This file is straight from ODK Build, no
changes.

Please help

Mustafa

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

Mustafa,
That happened to me too. I just forgot to add the Choose One options.

Mitch, however, I got errors trying to use the form (Built export to XML
save to USB connected tablet) when I used the revelance condition *sex='0' *in
ODK Build. Once I went back and changed it to /data/sex='0' it worked. I
swear that I didn't have to explicitly include the path */data/ *at other
times. Is there an explanation?

Curtis

··· 2012/8/24 Mitch S
<select1 ref="/data/FertilizerBuy">
  <label ref="jr:itext('/data/FertilizerBuy:label')"/>
  <hint ref="jr:itext('/data/FertilizerBuy:hint')"/>
</select1>

The error seems pretty self-explanitory:

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

On Thu, Aug 23, 2012 at 8:54 PM, Mustafa Pirbhai info@tgharusha.comwrote:

Hey Guys,

Decided to use ODK Build to make a Survey. Exported the output to .xml
and uploaded that to Aggregate and got a parsing error. Used ODK Validate
and got the following errors. (Attached files)

Any idea on whats going wrong? This file is straight from ODK Build, no
changes.

Please help

Mustafa

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

--

Curtis BRODERICK
Head of training and user support
Tél : + 33(0)1.53.02.40.61 06.15.33.57.37

---------------------------EpiConcept---------------------------
Systèmes d'Information en Santé
Health Information System
47, rue de Charenton - 75012 PARIS
Tel : +33 (0)1 53 02 40 60 Fax : +33 (0)1 53 02 40 62
-----------------------www.epiconcept.fr------------------------

Ce message et toutes les pièces jointes sont établis à l'intention
exclusive de ses destinataires et sont confidentiels.
Si vous recevez ce message par erreur, merci de le détruire et d'en
avertir l'expéditeur.

The information contained in the Email and any attachments is
confidential and intended solely and for the attention and use of the
named address(es). It may not be disclosed to any other person without
the express authority of EpiConcept, or the intended recipient, or
both.
If you are not the intended recipient, you must not disclose, copy,
distribute or retain this message or any part of it.

The failure to recognize this syntax and a related regression in the
javarosa library will be fixed in an update to ODK Aggregate and ODK
Collect that we're working on.

With the addition of the cascading select support using extra
sections, the way relative paths are interpreted has become much more
important to get right, because a relative path might refer to one of the
other instance sections. There are likely to be other subtle errors around
this area. The inability to use cascading selects within repeat groups is
an example of one of these subtle errors.

Mitch

··· On Fri, Aug 24, 2012 at 8:50 AM, Curtis Broderick <c.broderick@epiconcept.fr wrote:

Mustafa,
That happened to me too. I just forgot to add the Choose One options.

Mitch, however, I got errors trying to use the form (Built export to XML
save to USB connected tablet) when I used the revelance condition *sex='0'
*in ODK Build. Once I went back and changed it to /data/sex='0' it
worked. I swear that I didn't have to explicitly include the path */data/
*at other times. Is there an explanation?

Curtis

2012/8/24 Mitch S mitchellsundt@gmail.com

<select1 ref="/data/FertilizerBuy">
  <label ref="jr:itext('/data/FertilizerBuy:label')"/>
  <hint ref="jr:itext('/data/FertilizerBuy:hint')"/>
</select1>

The error seems pretty self-explanitory:

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

On Thu, Aug 23, 2012 at 8:54 PM, Mustafa Pirbhai info@tgharusha.comwrote:

Hey Guys,

Decided to use ODK Build to make a Survey. Exported the output to .xml
and uploaded that to Aggregate and got a parsing error. Used ODK Validate
and got the following errors. (Attached files)

Any idea on whats going wrong? This file is straight from ODK Build, no
changes.

Please help

Mustafa

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

--

Curtis BRODERICK
Head of training and user support

Tél : + 33(0)1.53.02.40.61 06.15.33.57.37

---------------------------EpiConcept---------------------------
Systèmes d'Information en Santé

                Health Information System

           47, rue de Charenton - 75012 PARIS
     Tel : +33 (0)1 53 02 40 60  Fax : +33 (0)1 53 02 40 62

-----------------------www.epiconcept.fr------------------------

Ce message et toutes les pièces jointes sont établis à l'intention exclusive de ses destinataires et sont confidentiels.
Si vous recevez ce message par erreur, merci de le détruire et d'en avertir l'expéditeur.

The information contained in the Email and any attachments is confidential and intended solely and for the attention and use of the
named address(es). It may not be disclosed to any other person without the express authority of EpiConcept, or the intended recipient, or both.

If you are not the intended recipient, you must not disclose, copy, distribute or retain this message or any part of it.

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

Hey guys,

I actually picked up that right after I posted. However I still get the
errors in the ODK Validate. I decided to scrap everthing and redo the whole
thing in XLSform. More work now but might be easier in the long run.

Thanks for the replies.

Mus

··· On Friday, August 24, 2012 7:15:12 PM UTC+3, Mitch wrote: > > The failure to recognize this syntax and a related regression in the > javarosa library will be fixed in an update to ODK Aggregate and ODK > Collect that we're working on. > > With the addition of the cascading select support using extra > sections, the way relative paths are interpreted has become much more > important to get right, because a relative path might refer to one of the > other instance sections. There are likely to be other subtle errors around > this area. The inability to use cascading selects within repeat groups is > an example of one of these subtle errors. > > Mitch > > On Fri, Aug 24, 2012 at 8:50 AM, Curtis Broderick <c.bro...@epiconcept.fr wrote: > >> Mustafa, >> That happened to me too. I just forgot to add the Choose One options. >> >> Mitch, however, I got errors trying to use the form (Built export to XML >> save to USB connected tablet) when I used the revelance condition *sex='0' >> *in ODK Build. Once I went back and changed it to */data/sex='0'* it >> worked. I swear that I didn't have to explicitly include the path */data/ >> *at other times. Is there an explanation? >> >> Curtis >> >> >> 2012/8/24 Mitch S <mitche...@gmail.com > >> >>> >>> >>> >>> >>> >>> The error seems pretty self-explanitory: >>> >>> org.javarosa.xform.parse.XFormParseException: Select question has no choices >>> org.javarosa.xform.parse.XFormParseException: Select question has no choices >>> >>> >>> On Thu, Aug 23, 2012 at 8:54 PM, Mustafa Pirbhai <in...@tgharusha.com wrote: >>> >>>> Hey Guys, >>>> >>>> Decided to use ODK Build to make a Survey. Exported the output to .xml >>>> and uploaded that to Aggregate and got a parsing error. Used ODK Validate >>>> and got the following errors. (Attached files) >>>> >>>> Any idea on whats going wrong? This file is straight from ODK Build, no >>>> changes. >>>> >>>> Please help >>>> >>>> Mustafa >>>> >>> >>> >>> >>> -- >>> Mitch Sundt >>> Software Engineer >>> University of Washington >>> mitche...@gmail.com >>> >> >> >> >> -- >> >> *Curtis BRODERICK* >> Head of training and user support >> >> >> >> Tél : + 33(0)1.53.02.40.61 06.15.33.57.37 >> >> ---------------------------EpiConcept--------------------------- >> Systèmes d'Information en Santé >> >> >> Health Information System >> >> 47, rue de Charenton - 75012 PARIS >> Tel : +33 (0)1 53 02 40 60 Fax : +33 (0)1 53 02 40 62 >> >> >> -----------------------www.epiconcept.fr------------------------ >> >> Ce message et toutes les pièces jointes sont établis à l'intention exclusive de ses destinataires et sont confidentiels. >> Si vous recevez ce message par erreur, merci de le détruire et d'en avertir l'expéditeur. >> >> >> >> The information contained in the Email and any attachments is confidential and intended solely and for the attention and use of the >> named address(es). It may not be disclosed to any other person without the express authority of EpiConcept, or the intended recipient, or both. >> >> >> >> If you are not the intended recipient, you must not disclose, copy, distribute or retain this message or any part of it. >> >> >> >> > > > -- > Mitch Sundt > Software Engineer > University of Washington > mitche...@gmail.com >