Xpath evaluation: Type mismatch

What is the problem? Please be detailed.

xPath evaluation: type mismatch value 1 could not be loaded into question null. Check to see if value 1 is a valid option for question null

What ODK tool and version are you using? And on what device and operating system version?

Version 1.4.10

What steps can we take to reproduce the problem?

PROGRESS281017.xlsx (115.9 KB)

What you have you tried to fix the problem?

Nothing - I can't identify where is the problem in the form

Anything else we should know or have? If you have a test form or screenshots or logs, attach here.

Very nice, clean form!

The problem is with question S8C6. There is a select_one named summary but it does not define a choice with value 1. The calculation can result in choices with values 1, 2, 3 or 4. That's why the error says "see if value 1 is a valid option".

I don't know why the question is showing up as null. To troubleshoot this one, I quickly modified the JavaRosa source to add the label text to the error message here. I think this would have been a very difficult one to figure out without the source code.

Great! It is OK for my survey. Thank you very much.

1 Like