# Loading domain from 'dom ain.yml' failed. Using empty domain. Error

**URL:** <https://forum.rasa.com/t/loading-domain-from-dom-ain-yml-failed-using-empty-domain-error/46191>\
**Category:** Rasa Open Source\
**Created:** [July 27, 2021, 5:43am UTC](https://forum.rasa.com/t/loading-domain-from-dom-ain-yml-failed-using-empty-domain-error/46191 "2021-07-27T05:43:29Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Samr-123](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/samr-123/32/16228_2.png) [@Samr-123](https://forum.rasa.com/u/Samr-123)\
**Post date:** [July 27, 2021, 5:43am UTC](https://forum.rasa.com/t/loading-domain-from-dom-ain-yml-failed-using-empty-domain-error/46191/1 "2021-07-27T05:43:29Z")

</div>

Hello, I am getting errors related to domain. I am trying to send email through rasa. But am facing these kinds of errors. Please help UserWarning: Loading domain from ‘dom ain.yml’ failed. Using empty domain. Error: 'The slots for form ‘email\_form’ were specified as ‘\<class ‘NoneType’\>’. They need to be specif ied as dictionary.

---

<div class="post-metadata">

**Author:** ![ChrisRahme](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/chrisrahme/32/15572_2.png) [@ChrisRahme](https://forum.rasa.com/u/ChrisRahme)\
**Post date:** [July 27, 2021, 5:57am UTC](https://forum.rasa.com/t/loading-domain-from-dom-ain-yml-failed-using-empty-domain-error/46191/2 "2021-07-27T05:57:49Z")

</div>

> [@Samr-123](#):
>
> Error: 'The slots for form ‘email\_form’ were specified as ‘\<class ‘NoneType’\>’. They need to be specif ied as dictionary.

The error is here. Please show us how you defined the slots for `email_form`.

---

<div class="post-metadata">

**Author:** ![Samr-123](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/samr-123/32/16228_2.png) [@Samr-123](https://forum.rasa.com/u/Samr-123)\
**Post date:** [July 27, 2021, 5:58am UTC](https://forum.rasa.com/t/loading-domain-from-dom-ain-yml-failed-using-empty-domain-error/46191/3 "2021-07-27T05:58:53Z")

</div>

here is the code for my domain file version: “2.0”

intents:

- greet
- goodbye
- os
- ras\_server
- vpn\_server
- ping
- send\_email

entities:

- email
- subject
- message

slots: email: type: text subject: type: text message: type: text

responses: utter\_greet:

- text: “Hey! How can I help you?”

utter\_goodbye:

- text: “Bye”

utter\_os\_def:

- text: “Operating system acts as an interpreter between computer application and hardware. It works as a user interface.”

utter\_ras\_server:

- text: “RAS means Remote Access Server. It allows operating the tool or information that typically resides on a network or IT devices through a combination of hardware and software”

utter\_vpn\_server:

- text: “VPN means Virtual Private Network. It is a private communications network often used by companies or organizations to communicate confidentially over a public network. This is used by the mobile users in the network.”

utter\_ping:

- text: “Between two or more devices, to check the physical IP connectivity Ping command is used.”

utter\_ask\_email:

- text: “Please provide email whom you want to send email”

utter\_ask\_subjects:

- text: “Please provide subject for your email”

utter\_ask\_message:

- text: “Please provide message for your email”

actions:

- action\_submit forms: email\_form: required\_slots: email: -type: from\_entity entity: email subject: -type: from\_entity entity: subject message: -type: from\_entity entity: message

session\_config: session\_expiration\_time: 60 carry\_over\_slots\_to\_new\_session: true

---

<div class="post-metadata">

**Author:** ![ChrisRahme](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/chrisrahme/32/15572_2.png) [@ChrisRahme](https://forum.rasa.com/u/ChrisRahme)\
**Post date:** [July 27, 2021, 6:25am UTC](https://forum.rasa.com/t/loading-domain-from-dom-ain-yml-failed-using-empty-domain-error/46191/4 "2021-07-27T06:25:51Z")

</div>

That’s weird, everything looks fine to me…

What versions of Rasa and Rasa SDK are you using? Show me the output of `rasa --version`.

NB: To properly format code and command outputs in the Forum, don’t directly copy-paste into the reply. Use three backticks (```) above and below the code

````auto
```
Like so
```

````

---

<div class="post-metadata">

**Author:** ![Samr-123](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/samr-123/32/16228_2.png) [@Samr-123](https://forum.rasa.com/u/Samr-123)\
**Post date:** [July 27, 2021, 6:28am UTC](https://forum.rasa.com/t/loading-domain-from-dom-ain-yml-failed-using-empty-domain-error/46191/5 "2021-07-27T06:28:50Z")

</div>

ok ‘’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’ Rasa Version : 2.8.0 Minimum Compatible Version: 2.8.0 Rasa SDK Version : 2.8.0 Rasa X Version : None Python Version : 3.8.0 Operating System : Windows-10-10.0.19041-SP0 ‘’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’

---

<div class="post-metadata">

**Author:** ![nik202](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nik202/32/16098_2.png) [@nik202](https://forum.rasa.com/u/nik202)\
**Post date:** [July 27, 2021, 8:33am UTC](https://forum.rasa.com/t/loading-domain-from-dom-ain-yml-failed-using-empty-domain-error/46191/6 "2021-07-27T08:33:58Z")

</div>

@Samr-123 Share your action.py and you said you sending an email from rasa, right?

@Samr-123 why you using from\_entity any specific reason? I guess you want to send the message. This will work fine with you. slots will be fetch. Further, please share the send\_email Intent from nlu.yml

```
forms:
   required_slots:
       email_from:
            email:
             - type: from_text
            subject:
             - type: from_text
            message:
             - type: from_text

```

Update and try and tell us.

---

<div class="post-metadata">

**Author:** ![nik202](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nik202/32/16098_2.png) [@nik202](https://forum.rasa.com/u/nik202)\
**Post date:** [July 27, 2021, 11:35am UTC](https://forum.rasa.com/t/loading-domain-from-dom-ain-yml-failed-using-empty-domain-error/46191/9 "2021-07-27T11:35:45Z")

</div>

@Samr-123 Its ok, but if you are beginner. I would encourage please try run the small code, and first, read and understand all the concept of rasa whilst reading there Documentation.

Please visit this course its a free : [https://www.udemy.com/course/rasa-for-beginners/](https://www.udemy.com/course/rasa-for-beginners/)

Please subscribe the rasa channel on youtube, there are some good tutorials.

@Samr-123 If you replace my suggested code, it will work fine for you.

@Samr-123 Please follow this video and perform the steps. I know you already see it and working from this video. But this time please see code. [https://www.youtube.com/watch?v=dGH91BxXVis](https://www.youtube.com/watch?v=dGH91BxXVis)

I wish you able to solve this issue, if you have further doubt please mention us or please close this thread as a solution for other. Good Luck!

---

<div class="post-metadata">

**Author:** ![Samr-123](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/samr-123/32/16228_2.png) [@Samr-123](https://forum.rasa.com/u/Samr-123)\
**Post date:** [July 27, 2021, 4:13pm UTC](https://forum.rasa.com/t/loading-domain-from-dom-ain-yml-failed-using-empty-domain-error/46191/10 "2021-07-27T16:13:09Z")

</div>

thankyou soo much i just forgot to remove the account info. yeah i just enrolled in that course. Hopefully it will help. Thankyou

---

<div class="post-metadata">

**Author:** ![nik202](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nik202/32/16098_2.png) [@nik202](https://forum.rasa.com/u/nik202)\
**Post date:** [July 27, 2021, 4:18pm UTC](https://forum.rasa.com/t/loading-domain-from-dom-ain-yml-failed-using-empty-domain-error/46191/11 "2021-07-27T16:18:59Z")

</div>

@Samr-123 Congrts 🙂 Please close this thread with the solution for others, Good Luck!

---

<div class="post-metadata">

**Author:** ![nik202](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nik202/32/16098_2.png) [@nik202](https://forum.rasa.com/u/nik202)\
**Post date:** [August 5, 2021, 7:50am UTC](https://forum.rasa.com/t/loading-domain-from-dom-ain-yml-failed-using-empty-domain-error/46191/12 "2021-08-05T07:50:06Z")

</div>

@Samr-123 Can I request to close this thread with solution for others please.
