# (Validate component) ValueError: Invalid view ID

**URL:** <https://support.prodi.gy/t/validate-component-valueerror-invalid-view-id/1139>\
**Category:** Uncategorized\
**Tags:** solved, usage\
**Created:** [January 18, 2019, 4:43pm UTC](https://support.prodi.gy/t/validate-component-valueerror-invalid-view-id/1139 "2019-01-18T16:43:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lisepul](https://avatars.discourse-cdn.com/v4/letter/l/bc8723/32.png) [@lisepul](https://support.prodi.gy/u/lisepul)\
**Post date:** [January 18, 2019, 4:43pm UTC](https://support.prodi.gy/t/validate-component-valueerror-invalid-view-id/1139/1 "2019-01-18T16:43:56Z")

</div>

Hi,  
I am getting the following error when I run:

`prodigy db_ann ann_Test.jsonl --label GPE`

I’m using prodigy v1.6.1 on Mac and the dataset format is correct because with the previous version it is working.

Traceback (most recent call last):  
File “/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/runpy.py”, line 193, in \_run\_module\_as\_main  
“ **main** ”, mod\_spec)  
File “/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/runpy.py”, line 85, in \_run\_code  
exec(code, run\_globals)  
File “/Users/lianet/erevalue/prodigy/prodigy\_1.6/env3.6/lib/python3.6/site-packages/prodigy/ **main**.py”, line 259, in   
controller = recipe(\*args, use\_plac=True)  
File “cython\_src/prodigy/core.pyx”, line 264, in prodigy.core.recipe.recipe\_decorator.recipe\_proxy  
File “cython\_src/prodigy/core.pyx”, line 36, in prodigy.core.Controller. **init**  
File “cython\_src/prodigy/components/validate.pyx”, line 57, in prodigy.components.validate.Validator. **init**  
File “cython\_src/prodigy/components/validate.pyx”, line 42, in prodigy.components.validate.get\_schema  
ValueError: Not a valid view ID: ‘None’. Available options: text, classification, ner, ner\_manual, pos, pos\_manual, dep, image, image\_manual, html, compare, diff, choice

I fixed the error setting `validate:false` in my prodigy.json

Any pointers are much appreciated.

---

<div class="post-metadata">

**Author:** ![ines](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/ines/32/3_2.png) [@ines](https://support.prodi.gy/u/ines)\
**Post date:** [January 18, 2019, 8:28pm UTC](https://support.prodi.gy/t/validate-component-valueerror-invalid-view-id/1139/2 "2019-01-18T20:28:26Z")

</div>

> [@lisepul](#):
>
> ```python
> ValueError: Not a valid view ID: 'None'. Available options: 
> text, classification, ner, ner_manual, pos, pos_manual, dep, 
> image, image_manual, html, compare, diff, choice
> 
> ```

This indicates that your custom recipe, `db_ann`, doesn't return a `'view_id'` specifying the annotation interface to use. [See here](https://prodi.gy/docs/web-app#interfaces) for a list of the available interfaces.

If you disable validation, the app will just default to whatever fits best to your data – but ideally, the recipe should specify how the content should be presented, to keep things consistent and predictable. You can add the `view_id` setting to the components returned by your recipe function like this:

```python
return {
    'dataset': dataset,
    'stream': stream,
    # etc.
    'view_id': 'text' # or whatever you want to use
}

```

---

<div class="post-metadata">

**Author:** ![lisepul](https://avatars.discourse-cdn.com/v4/letter/l/bc8723/32.png) [@lisepul](https://support.prodi.gy/u/lisepul)\
**Post date:** [January 25, 2019, 2:52pm UTC](https://support.prodi.gy/t/validate-component-valueerror-invalid-view-id/1139/3 "2019-01-25T14:52:32Z")

</div>

Hi Ines, thanks a lot for your detailed answers. It’s working!
