# Entities with roles are shown as unsupported type while running rasax on existing project directory

**URL:** <https://forum.rasa.com/t/entities-with-roles-are-shown-as-unsupported-type-while-running-rasax-on-existing-project-directory/40027>\
**Category:** \[Deprecated\] Rasa X Community Edition\
**Created:** [February 10, 2021, 5:31am UTC](https://forum.rasa.com/t/entities-with-roles-are-shown-as-unsupported-type-while-running-rasax-on-existing-project-directory/40027 "2021-02-10T05:31:45Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![zaowad](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/zaowad/32/13245_2.png) [@zaowad](https://forum.rasa.com/u/zaowad)\
**Post date:** [February 10, 2021, 5:31am UTC](https://forum.rasa.com/t/entities-with-roles-are-shown-as-unsupported-type-while-running-rasax-on-existing-project-directory/40027/1 "2021-02-10T05:31:45Z")

</div>

Entity section of my domain.yml looks like this.

![Screenshot from 2021-02-10 11-24-49](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/4/41822a3c0b7e0f1d7a0af496e07845095f3e6c24.png)

With rasa version 2.0 the project runs without any issues and entity role works as it is supposed to be. But whenever i run `rasa x` from my project directory, it shows the following error message:

```nohighlight
sqlalchemy.exc.InterfaceError: (sqlite3.InterfaceError) Error binding parameter 1 - probably unsupported type.
[SQL: INSERT INTO domain_entity (domain_id, entity) VALUES (?, ?)]
[parameters: (1, {'Normal_number': {'roles': ['day', 'month']}})]
(Background on this error at: http://sqlalche.me/e/13/rvf5)

Sorry, something went wrong (see error above). Make sure to start Rasa X with valid data and valid domain and config files. Please, also check any warnings that popped up.
If you need help fixing the issue visit our forum: http://forum.rasa.com/.

```

---

<div class="post-metadata">

**Author:** ![stephens](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/stephens/32/1632_2.png) [@stephens](https://forum.rasa.com/u/stephens)\
**Post date:** [February 10, 2021, 3:25pm UTC](https://forum.rasa.com/t/entities-with-roles-are-shown-as-unsupported-type-while-running-rasax-on-existing-project-directory/40027/2 "2021-02-10T15:25:21Z")

</div>

Welcome to the forum. It looks like you’ve added a `|` after `month` that should not be there. You’ll find the entities docs [here](https://rasa.com/docs/rasa/domain#entities). You can also run a `rasa data validate` against your project to validate the data before running Rasa X.

```auto
entities:
   - city: 
       roles:
       - from
       - to

```

---

<div class="post-metadata">

**Author:** ![zaowad](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/zaowad/32/13245_2.png) [@zaowad](https://forum.rasa.com/u/zaowad)\
**Post date:** [February 11, 2021, 6:03am UTC](https://forum.rasa.com/t/entities-with-roles-are-shown-as-unsupported-type-while-running-rasax-on-existing-project-directory/40027/3 "2021-02-11T06:03:13Z")

</div>

@stephens That is not actually in the domain.yml . It is just the pointer while i was taking ss.

---

<div class="post-metadata">

**Author:** ![zaowad](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/zaowad/32/13245_2.png) [@zaowad](https://forum.rasa.com/u/zaowad)\
**Post date:** [February 11, 2021, 6:06am UTC](https://forum.rasa.com/t/entities-with-roles-are-shown-as-unsupported-type-while-running-rasax-on-existing-project-directory/40027/4 "2021-02-11T06:06:54Z")

</div>

![Screenshot from 2021-02-11 12-04-45](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/8/8f428b74266386d8e2e36fa34bb4c401c153bdaa.png)

This is the output of `rasa data validate ` . Seems like nothing is wrong here.

---

<div class="post-metadata">

**Author:** ![zaowad](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/zaowad/32/13245_2.png) [@zaowad](https://forum.rasa.com/u/zaowad)\
**Post date:** [February 12, 2021, 7:57pm UTC](https://forum.rasa.com/t/entities-with-roles-are-shown-as-unsupported-type-while-running-rasax-on-existing-project-directory/40027/5 "2021-02-12T19:57:16Z")

</div>

@stephens any update on this issue? Thanx a lot for the suggestion to validate project directory. My project directory seems fine. I can at-least be sure that there is no problem in my directory.

---

<div class="post-metadata">

**Author:** ![stephens](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/stephens/32/1632_2.png) [@stephens](https://forum.rasa.com/u/stephens)\
**Post date:** [February 16, 2021, 5:35pm UTC](https://forum.rasa.com/t/entities-with-roles-are-shown-as-unsupported-type-while-running-rasax-on-existing-project-directory/40027/6 "2021-02-16T17:35:30Z")

</div>

I haven’t had a chance to look at this further. Can you re-connect Rasa X to your repo and show a full log of what happens from the initial connection? Please use markdown when pasting error logs.

---

<div class="post-metadata">

**Author:** ![lmb](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/lmb/32/13622_2.png) [@lmb](https://forum.rasa.com/u/lmb)\
**Post date:** [March 12, 2021, 5:23pm UTC](https://forum.rasa.com/t/entities-with-roles-are-shown-as-unsupported-type-while-running-rasax-on-existing-project-directory/40027/7 "2021-03-12T17:23:12Z")

</div>

I am also facing the same issue.

---

<div class="post-metadata">

**Author:** ![zaowad](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/zaowad/32/13245_2.png) [@zaowad](https://forum.rasa.com/u/zaowad)\
**Post date:** [May 30, 2021, 8:52pm UTC](https://forum.rasa.com/t/entities-with-roles-are-shown-as-unsupported-type-while-running-rasax-on-existing-project-directory/40027/8 "2021-05-30T20:52:21Z")

</div>

I am running rasa-x locally and running the ` rasa x --enable-api` command from my project directory. Not using git. As you suggested , i edited the error log in bash markdown format. Please have a look.

---

<div class="post-metadata">

**Author:** ![Jonas](https://avatars.discourse-cdn.com/v4/letter/j/aeb1de/32.png) [@Jonas](https://forum.rasa.com/u/Jonas)\
**Post date:** [May 31, 2021, 9:25am UTC](https://forum.rasa.com/t/entities-with-roles-are-shown-as-unsupported-type-while-running-rasax-on-existing-project-directory/40027/9 "2021-05-31T09:25:10Z")

</div>

I think Rasa-X is still missing the featuers to support roles and groups. With Rasa-X 0.40 you can start editing the nlu files with roles and groups in Rasa-X, however the entities in the domain file are not updated as rasa needs them. I’m facing the same problems.

---

<div class="post-metadata">

**Author:** ![dav-92](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/dav-92/32/14875_2.png) [@dav-92](https://forum.rasa.com/u/dav-92)\
**Post date:** [June 9, 2021, 9:00am UTC](https://forum.rasa.com/t/entities-with-roles-are-shown-as-unsupported-type-while-running-rasax-on-existing-project-directory/40027/10 "2021-06-09T09:00:53Z")

</div>

this is still a problem in 0.40.1

omitting the roles in the domain file seems to be “bypassing” this
