ODK Validation error

Please I tried to upload a new excel form tot the server but I am getting this error.

" Error: ODK Validate Errors:

XForm is invalid. See above for the errors.
: Encountered a problem with display condition for node [${breast}.odk/age_start] at line: selected( ${breast}.odk/cig > = 1), Bad node: org.javarosa.xpath.parser.ast.ASTNodeAbstractExpr@48503868

The following files failed validation:

Result: Invalid"

You will want to look for the line in your survey with the text that is included in the error message - start there when looking for the source of the error. Are you able to upload the XLSForm here to help with troubleshooting?

Yes please,
breast.xlsx (42.9 KB)

Dear @hubbu1
the problem is on the way you use selected in the relevancy

for example
selected(${sister} >=1) is not correct.
selected is used to determined if a specific choice was selected in a select question
selected(${sister},1') for example.
If you want that a question is shown when the number of sisters is greater than 1 then you need to use only ${sister} >=1.

I fixed your file.

breast.xlsx (42.5 KB)

1 Like

Fantastic, Absolute great,
Thank You.

1 Like