Select to view content in your preferred language

pulldata question

618
2
03-26-2018 04:39 PM
BrianWebb3
Occasional Contributor

Hello,

I have an autocomplete field which acts as the lookup for a pulldata calculation in a survey. When I save the survey, it gives me the following error:

ODK Validate Warnings:

XForm Parse Warning: choice value [my choice] is too long; max. suggested length 32 chars

Problem found at nodeset:/html/body/select1[@appearance=autocomplete][@ref=Survey_1t_test/plant_common_name]/item/value

With element <value>

Any help is appreciated. Please note that "my choice" is actually another choice. I chose not to show due to project restrictions. The actual choice is 36 characters long.

I thought that when using pulldata, you could set the field type and length in the survey to avoid any issues such as these. My current field length is set at 300.

I believe that this error is causing all my select_one yes_no fields to select both yes and no at the same time...which is throwing the whole survey out of whack.

Thanks for any help.

Brian

0 Kudos
2 Replies
JamesTedrick
Esri Esteemed Contributor

Hi Brian,

As the message syas, this is a warning - the form will still publish.  The XLSForm spec does specify a maximum length of 32 characters for a choice - generally that's long enough to create an abstract value for a data item.

0 Kudos
BrianWebb3
Occasional Contributor

ok, thank you James. This helps.

-Brian

0 Kudos