Error converting form: "XPath evaluation: cannot handle function 'index'"

ODK Validate Errors: >> Something broke the parser. See above for a hint. Error evaluating field 'item_index' (${item_details}[1]/item_index[1]): The problem was located in Calculate expression for ${item_index} XPath evaluation: cannot handle function 'index' Caused by: org.javarosa.xpath.XPathUnhandledException: The problem was located in Calculate expression for ${item_index} XPath evaluation: cannot handle function 'index' ... 10 more The following files failed validation: ${tmp5h9tazt5} Result: Invalid
demo version josh.xlsx (35.1 KB)

Hi and welcome, @Obaya_Joshua_Humphre.

Your form looks like it may be in a template from another ODK-derived system. That system may have an index() function, but core ODK does not. Are you trying to get the count of the current repeat? In your form, you can do that with position(..).

Some documentation you may find helpful:

1 Like

Thanks for Contributing, it helped

1 Like