# Encountered empty domain during validation

**URL:** <https://forum.rasa.com/t/encountered-empty-domain-during-validation/60603>\
**Category:** Rasa Open Source\
**Created:** [December 22, 2023, 7:38pm UTC](https://forum.rasa.com/t/encountered-empty-domain-during-validation/60603 "2023-12-22T19:38:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rohitbarate](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/rohitbarate/32/23752_2.png) [@Rohitbarate](https://forum.rasa.com/u/Rohitbarate)\
**Post date:** [December 22, 2023, 7:38pm UTC](https://forum.rasa.com/t/encountered-empty-domain-during-validation/60603/1 "2023-12-22T19:38:39Z")

</div>

i am new to rasa . i got below error . error : **“Encountered empty domain during validation.”**

_ **what is the primary reason for this error ?** _

i have provided my domain.yml file

[domain.yml](https://forum.rasa.com/uploads/short-url/6WV3nrSK1myRhHGgFOFmYNzsLQB.yml) (95.4 KB)

---

<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:** [December 24, 2023, 6:34am UTC](https://forum.rasa.com/t/encountered-empty-domain-during-validation/60603/2 "2023-12-24T06:34:31Z")

</div>

If the domain.yml is not in the root directory of the project, this can cause the error you are seeing. If that’s the case, use the `--domain` option to specify the directory with the domain file.

---

<div class="post-metadata">

**Author:** ![awais](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/awais/32/24842_2.png) [@awais](https://forum.rasa.com/u/awais)\
**Post date:** [December 5, 2024, 7:15am UTC](https://forum.rasa.com/t/encountered-empty-domain-during-validation/60603/3 "2024-12-05T07:15:52Z")

</div>

My domain file is in root directory but I still facing same isssue

---

<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:** [December 5, 2024, 5:49pm UTC](https://forum.rasa.com/t/encountered-empty-domain-during-validation/60603/4 "2024-12-05T17:49:14Z")

</div>

Add `--domain domain.yml` to the command line

---

<div class="post-metadata">

**Author:** ![vpkprasanna](https://avatars.discourse-cdn.com/v4/letter/v/a698b9/32.png) [@vpkprasanna](https://forum.rasa.com/u/vpkprasanna)\
**Post date:** [February 8, 2025, 3:21pm UTC](https://forum.rasa.com/t/encountered-empty-domain-during-validation/60603/5 "2025-02-08T15:21:12Z")

</div>

added it but still got the same issue now suddenly , previously without this command itself it used to work
