I am having an error in deploying xlsx form in KOBO Toolbox. The error occurred in choice_filter within a repeated group. The data collection form is designed to collect general training info and detail participant info like training place (township, village tract, village - which are connected with choice-filter, total number of participants - which is linked to the number of repeats for individual detail info in which township, village tract and village names are also asked).
It would be very grateful if anyone could help me in this error.
My problem is that when deploying the form in kobotoolbox website, I got an error like ODK Validate Errors: >> Something broke the parser. See above for a hint. org.javarosa.xpath.XPathException: XPath evaluation: Parse error in XPath path: [instance('village_tract')/root/item[township1=position(current()/../ ${township} )]]. Unexpected beginning of path Result: Invalid
KOBO Collect android application - version 1.23.3k and kobotoolbox website server
I tried to fix the problem of choice_filter within a repeated group. The data collection form is designed to collect general training info and detail participant info like training place (township, village tract, village - which are connected with choice-filter, total number of participants - which is linked to the number of repeats for individual detail info in which township, village tract and village names are also asked).
can you all please provide any suggestion on how to fix the problem as I am beginner for KOBO Toolbox?
I noted that you had some typos in the choice filters.
Currently you have: township1=position(current()/../${township}) village_tract1=current()/${village_tract}
the left side of the equality should be the name of the filter (township, village_tract), and the variable called have the "1".
I modified them as follows: township=${township1} village_tract=${village_tract1}
I'm not sure whether this would work on Kobo, but I hope it helps.
Side comment:
You might want to set vars ${male} and ${female} as required. Otherwise, if one of the two fields is skipped, the ${total} might not work (i.e. "NaN").