I’m encountering an error when deploying my form and have been unable to resolve it despite trying various solutions. I’ve attached a picture of the error message for your reference.
Could you please help me investigate and resolve this issue?
[row : 434] On the ‘survey’ sheet, the ‘label’ value is invalid. Reference expressions must only include question names, and end with ‘}’.
My label in row 434 is: Q430. Trong thời gian mang thai này, bạn có nhận được hỗ trợ thực phẩm hoặc tiêm mặt thông qua chương trình CHÈN TÊN CHƯƠNG TRÌNH HỖ TRỢ TIỀN MẶT HOẶC THỰC PHẨM CHO PHỤ NỮ MANG THAI, không?
Welcome to the community, @dhssurvey! Could you share with us your XLSForm so that we can investigate it? BTW, you could investigate it by yourself by checking row 434 of your survey sheet.
I’m encountering an error when deploying my form and have been unable to resolve it despite trying various solutions. I’ve attached a picture of the error message for your reference.
Could you please help me investigate and resolve this issue?
[row : 434] On the ‘survey’ sheet, the ‘label’ value is invalid. Reference expressions must only include question names, and end with ‘}’.
My label in row 434 is: Q430. Trong thời gian mang thai này, bạn có nhận được hỗ trợ thực phẩm hoặc tiêm mặt thông qua chương trình CHÈN TÊN CHƯƠNG TRÌNH HỖ TRỢ TIỀN MẶT HOẶC THỰC PHẨM CHO PHỤ NỮ MANG THAI, không?
Do you use/save UTF-8 character code in Excel (XLSForm)?
Does the error disappear if you use a simple text label, e.g. ‘Hello’?
Does the error disappear if you remove the line?
In row 489 there is a syntax error in your label
“Q452. … (${q407), …?” Closing } reference bracket is missing.
And there is another error:
Error: There are more than one survey elements named ‘total_alive_children’ (case-insensitive) in the section named ‘group_sec_2’.
Please, use the Online validator to check your form during development and before deployment. ODK - XLSForm Online
If I replace it with simple text, the error is still appeared. If I remove this line, the error will appear in the line above 1 line. I dont know why this error exists
I’ve run into the “label is invalid” error before it usually comes down to unexpected characters, extra spaces, or inconsistencies in the choices sheet of your XLSForm. Double-check for things like special symbols, missing labels, or duplicate list names. Cleaning up those fields usually clears the issue. Hope you get it resolved!
Kobo expects placeholders to be in the format ${question_name}—only referencing actual question names from your form, and they must end with a }. In your case, the phrase “CHÈN TÊN CHƯƠNG TRÌNH…” isn’t a valid reference, which is why you’re seeing the error. To fix it, you can either replace that text with a real program name or use a proper reference like ${program_name} if you’ve already created a question with that name earlier in the form.
I found the error — if anyone else encounters the same issue, please double-check the ${ syntax in the XLSForm. In my case, I had a mistake with a specific variable like ${q406), but the error occurred on a different row than the one shown by KoboToolbox