Enketo gives message: "r is undefined" where there is no "r" in the expression

1. What is the issue? Please be detailed.

I am getting a weird error when I am trying to preview a form:

Error occured during the loading of this form. We do not recommend you use this form for data entry until this is resolved.

Please contact support@getodk.org with the link to this page and the error message below:

FormLogicError: Could not evaluate: number((( /model/instance[1]/data/path_dpupqrvm >0) and (( /model/instance[1]/data/test_malaria_positif and /model/instance[1]/data/flag_palu_grave )))), message: r is undefined

as you can see there is no "r" in the formula so I have no idea where it comes from

2. What steps can we take to reproduce this issue?

go one https://getodk.org/xlsform/ and load the form attached

3. What have you tried to fix the issue?

I don't know where to start, I checked the XLSX and the XML without luck (the label exists)

4. Upload any test forms or screenshots below.

adult_v25.xlsx (139.3 KB)

Actually I found the error:

this

${test_malaria_positif} and ${flag_palu_grave}

should become

${test_malaria_positif}>0 and ${flag_palu_grave}>0

the error is misleading, maybe this thread will help other.

br

1 Like

Side note: this is generated from decision tree created on draw.io drawing, we should open the tooling in the coming months

3 Likes