XPath evaluation: type mismatch Error in the form conversion

1. What is the problem? Be very detailed.
I have a simple form with a few questions that need to be repeated, but am getting the following error from XLSForm Offline converter.
It started when I add a second member for the household and it was suggested to use the indexed-repeat function but I am not familiar with this.

2. What app or server are you using and on what device and operating system? Include version numbers.
app version Collect 1.23.3

3. What you have you tried to fix the problem?
Nothing yet. I cannot figure out where the error is coming from.

4. What steps can we take to reproduce the problem?
I am attaching the form excel versionSSN_AF2_PMT_Non-City.xlsx (35.0 KB)

5. Anything else we should know or have? If you have a test form or screenshots or logs, attach below.

It looks like your lines 48-68 are all inside the same repeat group, and so your relevant values don't need to be so complex. "Within a repeat, you can reference other questions in that same repeat instance in the usual manner." See: https://docs.opendatakit.org/form-repeats/#referencing-repeated-questions-from-inside-the-repeat

Indeed you are right, i used a more simple approach to index up to 30 repeats then used the positional ${id} label to access them.

Thank you for pointing me in the right direction.

1 Like