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:
https://www.dropbox.com/s/cwfc1b3d8toe03s/pilot_main_surveysheet_v1.csv?dl=0
Choices:
https://www.dropbox.com/s/vdv9d6s79d5oz1y/pilot_main_choicessheet2.csv?dl=0
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)
+-----------------------------------------------------------------------------------+
- | 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 ---