YamlValidationException: Failed to validate ‘C:\Users\welcome\anaconda3\envs\rasaflow\rasainit\domain.yml’. Please make sure the file is correct and all mandatory par ameters are specified. Here are the errors found during validation: in C:\Users\welcome\anaconda3\envs\rasaflow\rasainit\domain.yml:34: Value ‘ordereddict([(‘text’, ‘Hey!! How are you ? How can i help you sir.’)])’ is not a list. Value path: ‘/responses/utter_greet’ in C:\Users\welcome\anaconda3\envs\rasaflow\rasainit\domain.yml:37: Value ‘ordereddict([(‘text’, ‘yes sir sure,please provide further details-mobile number or transaction id’)])’ is not a list. Value path: ‘/responses/utter_my_o rder’ in C:\Users\welcome\anaconda3\envs\rasaflow\rasainit\domain.yml:40: Value ‘ordereddict([(‘text’, ‘thank you for providing details sir,we are verifying…,please wait for a while.’)])’ is not a list. Value path: ‘/responses/utter _confirm’
domain.yml (728 Bytes) nlu.yml (2.1 KB) stories.yml (460 Bytes)
config.yml (1.3 KB)
these are my files please help rasa team
@kingofpop27 You only need to add - before the text in response i.e line 33,36,39 in VS code.
In domain.yml
responses:
utter_greet:
- text: "Hey!! How are you ? How can i help you sir."
utter_my_order:
- text: "yes sir sure,please provide further details-mobile number or transaction id"
utter_confirm:
- text: "thank you for providing details sir,we are verifying...,please wait for a while."
Delete the older train model, re-train it and run the code. This will solve your issue. Good Luck!
nik dude or any dudes please help me out with this now an thank u in advance . . .
Core training was skipped because no valid domain file was found. Only an NLU-model was created. Please specify a valid domain using the ‘–domain’ argument or check if the provided domain file exists.
(rasaflow) C:\Users\welcome\anaconda3\envs\rasaflow\rasainit>rasa data validate C:\Users\welcome\anaconda3\envs\rasaflow\lib\site-packages\rasa\shared\utils\io.py:97: UserWarning: Loading domain from ‘domain.yml’ failed. Using empty domain. Error : ‘Forms have to be specified as dictionary.’ C:\Users\welcome\anaconda3\envs\rasaflow\lib\site-packages\rasa\shared\utils\io.py:97: UserWarning: Issue found in ‘data\rules.yml’: Found intent ‘goodbye’ in stories which is not part of the domain. More info at Stories C:\Users\welcome\anaconda3\envs\rasaflow\lib\site-packages\rasa\shared\utils\io.py:97: UserWarning: Issue found in ‘data\rules.yml’: Found intent ‘bot_challenge’ in stories which is not part of the domain. More info at Stories C:\Users\welcome\anaconda3\envs\rasaflow\lib\site-packages\rasa\shared\utils\io.py:97: UserWarning: Issue found in ‘data\stories.yml’: Found intent ‘greet’ in stories which is not part of the domain. More info at Stories C:\Users\welcome\anaconda3\envs\rasaflow\lib\site-packages\rasa\shared\utils\io.py:97: UserWarning: Issue found in ‘data\stories.yml’: Found intent ‘request_init’ in stories which is not part of the domain. More info at Stories C:\Users\welcome\anaconda3\envs\rasaflow\lib\site-packages\rasa\shared\utils\io.py:97: UserWarning: Issue found in ‘data\stories.yml’: Found intent ‘mobile_number’ in stories which is not part of the domain. More info at Stories C:\Users\welcome\anaconda3\envs\rasaflow\lib\site-packages\rasa\shared\utils\io.py:97: UserWarning: Issue found in ‘data\stories.yml’: Found intent ‘order_cancellation’ in stories which is not part of the domain. More info at Stories C:\Users\welcome\anaconda3\envs\rasaflow\lib\site-packages\rasa\shared\utils\io.py:97: UserWarning: Issue found in ‘data\stories.yml’: Found intent ‘trans_id’ in stories which is not part of the domain. More info at Stories C:\Users\welcome\anaconda3\envs\rasaflow\lib\site-packages\rasa\shared\utils\io.py:97: UserWarning: Issue found in ‘data\stories.yml’: Found intent ‘confirm’ in stories which is not part of the domain. More info at Stories C:\Users\welcome\anaconda3\envs\rasaflow\lib\site-packages\rasa\shared\utils\io.py:97: UserWarning: Issue found in ‘data\stories.yml’: Found intent ‘industry_news’ in stories which is not part of the domain. More info at Stories Project validation completed with errors.
@kingofpop27 did you make the changes that nik recommended? What does your domain file look like now? Have you run rasa data validate
to see what it says?
Yes I made the changes and done Rasa data validate …it solved but shows … Another error I think…which I pasted in above msg…please look it
domain.yml (788 Bytes)
nlu.yml (2.1 KB)
rules.yml (244 Bytes)
stories.yml (460 Bytes)
@kingofpop27 Thou, its not related to the main topic error, this is another error. Let me guide you again:
-
In domain.yml if you are not using actions: on line 27 and forms: on line 29 delete it
-
In rule.yml you mentioned intent: goodbye , do mention goodbye in domain.yml section too under intents:
-
n rule.yml you mentioned intent: bot_challenge , do mention goodbye in domain.yml section too under intents:
Try update this and run the code, and share the error if encountered
@nik202 bro i have done what u said and still gettin some errors
domain.yml (980 Bytes)
nlu.yml (2.1 KB) rules.yml (393 Bytes) stories.yml (460 Bytes)
@kingofpop27 It’s same or some error. I will encourage to create a fresh issue thread for your new errors and share the screenshot please.