# Invalid Domain file while training model with 'rasa train core --domain domain.yml'

**URL:** <https://forum.rasa.com/t/invalid-domain-file-while-training-model-with-rasa-train-core-domain-domain-yml/57758>\
**Category:** Rasa Open Source\
**Created:** [March 28, 2023, 5:01am UTC](https://forum.rasa.com/t/invalid-domain-file-while-training-model-with-rasa-train-core-domain-domain-yml/57758 "2023-03-28T05:01:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sarvesh-gap](https://avatars.discourse-cdn.com/v4/letter/s/7ea924/32.png) [@sarvesh-gap](https://forum.rasa.com/u/sarvesh-gap)\
**Post date:** [March 28, 2023, 5:01am UTC](https://forum.rasa.com/t/invalid-domain-file-while-training-model-with-rasa-train-core-domain-domain-yml/57758/1 "2023-03-28T05:01:58Z")

</div>

I have been using Rasa Open Source and have stuck into the problem that the trained model is NLU-model only. I trained the model with the command “rasa train core --domain domain.yml” and it says ‘Core training was skipped because no valid domain file was found. Please specify a valid domain using ‘–domain’ argument or check if the provided domain file exists.’ and if I intentionally make a mistake then the prompt detects the error in domain.yml file. I checked the file with python library yamllint, the library does not show any error and still the prompt says no valid domain file. Please help me out. Rasa version - 3.5.0 Python version - 3.10.7 Below is the file that I have created. [domain.yml](https://forum.rasa.com/uploads/short-url/xsTQ6rkobkJpgVFh7US0qMxltW6.yml) (2.0 KB)

Also, do other files like rules.yml, nlu.yml or stories.yml affect the working of core model with domain file ?

---

<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:** [March 30, 2023, 4:18pm UTC](https://forum.rasa.com/t/invalid-domain-file-while-training-model-with-rasa-train-core-domain-domain-yml/57758/2 "2023-03-30T16:18:07Z")

</div>

What does `rasa data validate` say? Did you use `rasa init` to setup the project and does the directory structure look like [this](https://rasa.com/docs/rasa/command-line-interface/#rasa-init)?

> Also, do other files like rules.yml, nlu.yml or stories.yml affect the working of core model with domain file ?

Yes
