Urgent Help: Adding Multiple Items

Hello, everyone! I have a kobo form that I cannot finalize due to the following error message:

Error: ODK Validate Errors:

Something broke the parser.
Error evaluating field ‘QIV_3V_total_bef’ (${group_hn2dp93}[1]/QIV_3V_total_bef[1]): The problem was located in Calculate expression for ${QIV_3V_total_bef}
XPath evaluation: type mismatch
This field is repeated:

${group_hn2dp93}[1]/QIV_3T_grp20[1]/QIV_3T1[1];${group_hn2dp93}[1]/QIV_3T_grp20[2]/QIV_3T1[1]

You may need to use the indexed-repeat() function to specify which value you want.
Caused by: org.javarosa.xpath.XPathTypeMismatchException: The problem was located in Calculate expression for ${QIV_3V_total_bef}
XPath evaluation: type mismatch
This field is repeated:

${group_hn2dp93}[1]/QIV_3T_grp20[1]/QIV_3T1[1];${group_hn2dp93}[1]/QIV_3T_grp20[2]/QIV_3T1[1]

You may need to use the indexed-repeat() function to specify which value you want.
… 11 more

The following files failed validation:
${trial}.xml

Result: Invalid

Can you please help me with this? I would like to attach the sheet but I’m prohibited.

Thank you!

Welcome to the community, @pgtiamson16! You should now be able to upload your XLSForm in the community! But when looking at your issue, I assume its an issue from within the repeat group.

Do you mind sharing your xlsform?

Hello @Kal_Lam and @fadl! Thank you for your response. I already solved this. It’s an issue from within the repeat group. Thanks again.

1 Like

Exciting to hear you fixed it. More power to you. :muscle: