# Option not allowed in odk-meta

**URL:** <https://forum.getodk.org/t/option-not-allowed-in-odk-meta/17911>\
**Category:** Support\
**Tags:** odk-meta\
**Created:** [February 17, 2019, 8:01am UTC](https://forum.getodk.org/t/option-not-allowed-in-odk-meta/17911 "2019-02-17T08:01:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Narendra](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/narendra/32/12138_2.png) [@Narendra](https://forum.getodk.org/u/Narendra)\
**Post date:** [February 17, 2019, 8:01am UTC](https://forum.getodk.org/t/option-not-allowed-in-odk-meta/17911/1 "2019-02-17T08:01:39Z")

</div>

Hey Yaw,  
I am getting this error  
"option [ not allowed  
r(198);"

with this command

odkmeta using filename, csv(D:\IIHMR\Line\_Listing\_Questionnaire\_test\_results) survey(D:\IIHMR\Linelisting\_questionnaire, label) choices(D:\IIHMR\Linelisting\_questionnaire,label:english)  
What am I doing wrong?  
Appreciate your help on this. Thanks

---

<div class="post-metadata">

**Author:** ![Matthew\_White](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/matthew_white/32/1654_2.png) [@Matthew\_White](https://forum.getodk.org/u/Matthew_White)\
**Post date:** [February 18, 2019, 1:29am UTC](https://forum.getodk.org/t/option-not-allowed-in-odk-meta/17911/2 "2019-02-18T01:29:42Z")

</div>

Hi @Narendra!

When I run the command you mention, I see the following error message:

```plaintext
option label incorrectly specified
invalid survey() option

```

The `label()` suboption is available with the `survey()` and `choices()` options. When used with `survey()`, `label()` specifies the header of the column of the `survey` sheet that you wish to use to label variables; it defaults to the `label` column. With `choices()`, it specifies the header of the column of the `choices` sheet that you wish to use to label values; it again defaults to the `label` column. You have to use `label()` with parentheses, and you must specify a column header. For example, something like this:

```auto
odkmeta ..., choices("D:\IIHMR\Linelisting_questionnaire", label(label:english)) ...

```

The help file has more information about these suboptions. To view the help file, type `help odkmeta` in Stata.

I also see that you're specifying the same filename to `survey()` and `choices()`. `odkmeta` requires you to save the `survey` sheet of your XLSForm as a CSV file and the `choices` sheet as a separate CSV file. We originally developed `odkmeta` to support Stata 11, which has limited support for Excel files, which is why we took this approach. In the future, we'll be [deprecating Stata 11](https://github.com/PovertyAction/odkmeta/issues/48), which will eliminate the need to export the `survey` and `choices` sheets.

Hope that helps!
