I am encountering an error when attempting to load a form on KoboToolbox.
Below are the relevant details:
Error message:
FormLogicError: Could not evaluate: /model/instance[@id=“of58o06”]/root/item, message: Failed to execute ‘evaluate’ on ‘XPathEvaluator’: parameter 2 is not of type ‘Node’.
Could you please assist in identifying the cause of this issue and advise on how to resolve it?
I was able to identify the issue and fix it. However, I’d appreciate some guidance on how to handle this differently in the future.
I had a section where respondents were asked, for example, “How many coloured houses are there in the neighbourhood?” with choices ranging from 1 to 20. For each number selected, the same five questions would appear to be filled out.
In one of these follow-up questions, I tried including predefined choices for respondents to select from, and that seemed to cause the error.
For now, I’ve removed the choices and left the field as a text input to be completed manually.
Could you advise on how I can set up selectable choices in this scenario without encountering the same issue again?
Welcome to the community, @joseh097! You could always validate your XLSForm through this online validator? The online validator should help you identify any syntax issues that are affecting the form deployment.
This post discussed previously should help you use the online validator.