Odkmeta error invalid name attribute '' invalid name() suboption invalid survey() option

Hi all, I'm using odkmeta to import data into Stata 16. I'm getting the following error:

invalid name attribute ''
invalid name() suboption
invalid survey() option
Links to the relevant files:
Survey:


Choices:

The survey and choices files are non UTF 8 csv files and contain no non-ASCII characters. The partial output from a trace is below:
- loc first = r(min)
- if "listvars'" != "" li listvars' in `first', ab(32)
= if "type name label required repeat_count choice_filter relevant constraint calculation a

ppearance constraint_message" != "" li type name label required repeat_count choice_filter rele
vant constraint calculation appearance constraint_message in 518, ab(32)

 +-----------------------------------------------------------------------------------+
  1. | type | name | label | required | repeat_count | choice_filter |
    | begin_group | | Livestock and crop | FALSE | | |
    |-----------------------------------------------------------------------------------|
    | relevant | constraint | calculation | appearance | constraint_message |
    | ${Q} = '1' | | | | |
    +-----------------------------------------------------------------------------------+
    • mata: errprintf("invalid %s attribute '%s'\n", st_global("`varlist'[Column_header]"), st_

sdata(first', "varlist'"))
= mata: errprintf("invalid %s attribute '%s'\n", st_global("name[Column_header]"), st_sdata
(518, "name"))
invalid name attribute ''
- error_parsing 198, opt' =cond("subopt'" != "", "sub(subopt'())", "")'
= error_parsing 198, opt(survey) sub(name())
--------------------------------------------------------- begin odkmeta.error_parsing ---
- syntax anything(name=rc id="return code"), opt(name) [SUBopt(str)]
- mata: error_parsing(rc', "opt'", "`subopt'")
= mata: error_parsing(198, "survey", "name()")
invalid name() suboption
invalid survey() option
----------------------------------------------------------- end odkmeta.error_parsing ---
}
----------------------------------------------------------------- end odkmeta.check_col ---
---------------------------------------------------------------- end odkmeta.parse_survey ---
------------------------------------------------------------------------------- end odkmeta ---

Hi @ccmullally! odkmeta lists the row of the XLSForm that resulted in the error message. In this case, it seems to be row 518, where there is a group without a name. I noticed that the group does have a name in the Excel file you posted here, so maybe there was an issue converting the XLSForm to CSV?

Hope that helps!