ODK Validate Errors: >> Something broke the parser. Error evaluating field ‘grade’ (${grade}[1]): The problem was located in Calculate expression for ${grade} XPath evaluation: cannot handle function ‘if’. Requires 3 arguments but 2 provided. Caused by: org.javarosa.xpath.XPathUnhandledException: The problem was located in Calculate expression for ${grade} XPath evaluation: cannot handle function ‘if’. Requires 3 arguments but 2 provided. … 10 more The following files failed validation: ${tmpcj039xbl} Result: Invalid
Welcome to the community, @mutication! The error means there is an if() in the calculation for ${grade} that does not follow the required syntax:
if(expression, then, else) — exactly 3 arguments.
This community post discussed previously should also help you solve on how an if() is used:
Besides, you could also always validate your XLSForm through this online validator to checkout for syntax issues.
