Error : Loading domain from 'domain.yml' failed. Using empty domain

Rasa version:2.6.2

Python version:3.7.4

Operating system (windows, osx, …): Ubuntu

Issue: Hey! I am trying to validate my rasa project using rasa data validate command , I get an error stating UserWarning: Loading domain from ‘domain.yml’ failed. Using empty domain. Error: 'If you use the deprecated list syntax for forms, all form names have to be strings. Error (including full traceback):

/home/agsc_rdi_a_arcotlo/venv/lib/python3.7/site-packages/rasa/shared/utils/io.py:97: UserWarning: Loading domain from 'domain.yml' failed. Using empty domain. Error: 'If you use the deprecated list syntax for forms, all form names have to be strings. Please see https://rasa.com/docs/rasa/forms for more information.'
/home/agsc_rdi_a_arcotlo/venv/lib/python3.7/site-packages/rasa/shared/utils/io.py:97: UserWarning: Issue found in 'data/rules.yml':
Found intent 'greetings' in stories which is not part of the domain.
  More info at https://rasa.com/docs/rasa/stories
/home/agsc_rdi_a_arcotlo/venv/lib/python3.7/site-packages/rasa/shared/utils/io.py:97: UserWarning: Issue found in 'data/rules.yml':
Found intent 'how_are_you' in stories which is not part of the domain.
  More info at https://rasa.com/docs/rasa/stories
/home/agsc_rdi_a_arcotlo/venv/lib/python3.7/site-packages/rasa/shared/utils/io.py:97: UserWarning: Issue found in 'data/rules.yml':
Found intent 'feedback' in stories which is not part of the domain.
  More info at https://rasa.com/docs/rasa/stories
/home/agsc_rdi_a_arcotlo/venv/lib/python3.7/site-packages/rasa/shared/utils/io.py:97: UserWarning: Issue found in 'data/rules.yml':
Found intent 'attached_file' in stories which is not part of the domain.
  More info at https://rasa.com/docs/rasa/stories
/home/agsc_rdi_a_arcotlo/venv/lib/python3.7/site-packages/rasa/shared/utils/io.py:97: UserWarning: Issue found in 'data/rules.yml':
Found intent 'dialog_access_time' in stories which is not part of the domain.
  More info at https://rasa.com/docs/rasa/stories
/home/agsc_rdi_a_arcotlo/venv/lib/python3.7/site-packages/rasa/shared/utils/io.py:97: UserWarning: Issue found in 'data/rules.yml':
Found intent 'help' in stories which is not part of the domain.
  More info at https://rasa.com/docs/rasa/stories
/home/agsc_rdi_a_arcotlo/venv/lib/python3.7/site-packages/rasa/shared/utils/io.py:97: UserWarning: Issue found in 'data/rules.yml':
Found intent 'praise' in stories which is not part of the domain.
  More info at https://rasa.com/docs/rasa/stories
/home/agsc_rdi_a_arcotlo/venv/lib/python3.7/site-packages/rasa/shared/utils/io.py:97: UserWarning: Issue found in 'data/rules.yml':
Found intent 'creator' in stories which is not part of the domain.
  More info at https://rasa.com/docs/rasa/stories
/home/agsc_rdi_a_arcotlo/venv/lib/python3.7/site-packages/rasa/shared/utils/io.py:97: UserWarning: Issue found in 'data/rules.yml':
Found intent 'later' in stories which is not part of the domain.
  More info at https://rasa.com/docs/rasa/stories
/home/agsc_rdi_a_arcotlo/venv/lib/python3.7/site-packages/rasa/shared/utils/io.py:97: UserWarning: Issue found in 'data/rules.yml':
Found intent 'thanks_goodbye' in stories which is not part of the domain.
  More info at https://rasa.com/docs/rasa/stories
/home/agsc_rdi_a_arcotlo/venv/lib/python3.7/site-packages/rasa/shared/utils/io.py:97: UserWarning: Issue found in 'data/rules.yml':
Found intent 'affirm' in stories which is not part of the domain.
  More info at https://rasa.com/docs/rasa/stories
/home/agsc_rdi_a_arcotlo/venv/lib/python3.7/site-packages/rasa/shared/utils/io.py:97: UserWarning: Issue found in 'data/rules.yml':
Found intent 'deny' in stories which is not part of the domain.
  More info at https://rasa.com/docs/rasa/stories
/home/agsc_rdi_a_arcotlo/venv/lib/python3.7/site-packages/rasa/shared/utils/io.py:97: UserWarning: Issue found in 'data/rules.yml':
Found intent 'training_details' in stories which is not part of the domain.
  More info at https://rasa.com/docs/rasa/stories
/home/agsc_rdi_a_arcotlo/venv/lib/python3.7/site-packages/rasa/shared/utils/io.py:97: UserWarning: Issue found in 'data/rules.yml':
Project validation completed with errors.

All the intents are available in domain.yml file but still rasa is unable to read the intents from domain.yml file.

Kindly suggest how to resolve this issue. Thanks in advance

this is most likely the reason your domain can’t be read, can you post the forms section of your domain?

forms:

  • host_reg_form: comp_name: - type: text entity: comp_name project_domain: - type: categorical entity: project_domain system_type: - type: categorical entity: system_type

Any updates ?