1. What is the issue? Please be detailed.
I had a malformed calculate that was missing the ]
at the end of the filter. In both cases the fields were in a group with field-list
appearance
When used in a select_one
with a calculate to default in a value the error was;
The XLSForm could not be converted: ODK Validate Errors:
>> XForm is invalid. See above for the errors.
: Invalid XPath in value set action declaration: 'instance('choice_list')/root/item[name= ${a_different_field} /my_calc_value'
Problem found at nodeset: /html/body/group[@appearance=field-list][@ref=${grp_start}]/select1[@appearance=placement-map][@ref=${update_submission_map}]/setvalue
With element <setvalue ref="${status}" event="xforms-value-changed" value="instance('choice_list')/root/item[name= ${a_different_field} /my_calc_value"/>
But when the calculate was under a calculate
type question I get this, which is much clearer as to the problem:
The XLSForm could not be converted: ODK Validate Errors:
>> XForm is invalid. See above for the errors.
: Invalid calculate for the bind attached to "${field_name}" : mismatched brackets or parentheses! in expression instance('choice_list')/root/item[name= ${a_different_field} /my_calc_value