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

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 (2.0 KB)

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

What does rasa data validate say? Did you use rasa init to setup the project and does the directory structure look like this?

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

Yes