Error while converting XLSForm

Hi Team, I keep getting the error message below when converting XLSForm to
XML.

..
Error: ODK Validate Errors: org.javarosa.core.log.WrappedException: Error
evaluating ${hh1stname1}: org.javarosa.xpath.XPathTypeMismatchException:
XPath evaluation: type mismatch indexed-repeat(): parameter 2 must be a
parent of the field in parameter 1 =>
org.javarosa.xpath.XPathTypeMismatchException[XPath evaluation: type
mismatch indexed-repeat(): parameter 2 must be a parent of the field in
parameter 1] >> Something broke the parser. See above for a hint. Result:
Invalid

..

Attached is the XLSForm.

Any help would be highly appreciated.

Thanks.

Collins

Test_Questionnaire.xls (59 KB)

The definition for hhstname1 has a calculation:

indexed-repeat(${firstname}, ${hhno}, 1)

The problem is with this calculation. hhno (parameter 2) is not a parent of
firstname (parameter 1) -- you should change the formula to refer to the
hh1stnames group in parameter 2:

indexed-repeat(${firstname}, ${hh1stnames}, 1)

ยทยทยท On Thu, Oct 31, 2013 at 6:20 AM, Collins McAdoyo wrote:

Hi Team, I keep getting the error message below when converting XLSForm to
XML.

..
Error: ODK Validate Errors: org.javarosa.core.log.WrappedException: Error
evaluating ${hh1stname1}: org.javarosa.xpath.XPathTypeMismatchException:
XPath evaluation: type mismatch indexed-repeat(): parameter 2 must be a
parent of the field in parameter 1 =>
org.javarosa.xpath.XPathTypeMismatchException[XPath evaluation: type
mismatch indexed-repeat(): parameter 2 must be a parent of the field in
parameter 1] >> Something broke the parser. See above for a hint. Result:
Invalid

..

Attached is the XLSForm.

Any help would be highly appreciated.

Thanks.

Collins

--

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/groups/opt_out.

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