Running Rasa X locally throws an InvalidDomain for a duplicated session_started_metadata slot

Hello everybody,

I’m trying to run Rasa X locally but I am facing an issue where I get an InvalidDomain error stating that the session_started_metadata slot is duplicated. However, this is not a slot I defined in the domain and must be a rasa-defined one. This happens when running:

rasa x --debug --enable-api --endpoint endpoints-local.yml --cors "*"

Does anybody else have this issue? I asked this question on GitHub a couple of weeks ago but I didn’t get any answer.

Thanks for your help! Nicolas

Relevant Logs

2021-09-24 14:18:29 DEBUG  - Injecting stories from file 'tests/test_rules.yml' to database (test stories: True).
/home/nicolas/anaconda3/envs/rasax2.1/lib/python3.8/site-packages/rasa/shared/core/ FutureWarning: UnfeaturizedSlot is deprecated and will be removed in Rasa Open Source 3.0. Please change the type and configure the 'influence_conversation' flag for slot 'session_started_metadata' instead.
Traceback (most recent call last):
  File "/home/nicolas/anaconda3/envs/rasax2.1/lib/python3.8/site-packages/rasa/cli/", line 496, in run_locally
  File "/home/nicolas/anaconda3/envs/rasax2.1/lib/python3.8/site-packages/rasax/community/", line 241, in main
  File "/home/nicolas/anaconda3/envs/rasax2.1/lib/python3.8/site-packages/rasax/community/", line 163, in _initialize_with_local_data
  File "uvloop/loop.pyx", line 1456, in uvloop.loop.Loop.run_until_complete
  File "/home/nicolas/anaconda3/envs/rasax2.1/lib/python3.8/site-packages/rasax/community/", line 376, in inject_files_from_disk
    await inject_stories(
  File "/home/nicolas/anaconda3/envs/rasax2.1/lib/python3.8/site-packages/rasax/community/", line 143, in inject_stories
    test_story_blocks = await story_service.save_stories_from_files(
  File "/home/nicolas/anaconda3/envs/rasax2.1/lib/python3.8/site-packages/rasax/community/services/", line 560, in save_stories_from_files
    additional_blocks = await self.save_stories(
  File "/home/nicolas/anaconda3/envs/rasax2.1/lib/python3.8/site-packages/rasax/community/services/", line 438, in save_stories
    domain = domain_service.get_merged_domain(project_id)
  File "/home/nicolas/anaconda3/envs/rasax2.1/lib/python3.8/site-packages/rasax/community/services/", line 377, in get_merged_domain
    merged_domain = merged_domain.merge(CoreDomain.from_dict(domain.as_dict()))
  File "/home/nicolas/anaconda3/envs/rasax2.1/lib/python3.8/site-packages/rasa/shared/core/", line 212, in from_dict
    return cls(
  File "/home/nicolas/anaconda3/envs/rasax2.1/lib/python3.8/site-packages/rasa/shared/core/", line 637, in __init__
  File "/home/nicolas/anaconda3/envs/rasax2.1/lib/python3.8/site-packages/rasa/shared/core/", line 1810, in _check_domain_sanity
    raise InvalidDomain(
rasa.shared.core.domain.InvalidDomain: Duplicate slots in domain. These slots occur more than once in the domain: 'session_started_metadata'.

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: