YamlValidationException: Failed to validate 'C:\Users\....domain.yml'. Please make sure the file is correct and all mandatory parameters are specified. Here are the errors found during validation

version: “2.0”

entities:

  • email
  • name
  • phnumber
  • state
  • symp1
  • symp10
  • symp11
  • symp12
  • symp13
  • symp2
  • symp3
  • symp4
  • symp5
  • symp6
  • symp7
  • symp8
  • symp9
  • zipcode

intents:

  • email_entry
  • zipcode_entry
  • name_entry_old
  • affirm
  • greet_started
  • phnumber_entry
  • name_entry
  • symptom
  • symp9
  • greet
  • symp4
  • symp5
  • symp8
  • corona_state
  • symp6
  • symp7
  • symp13
  • symp3
  • symp12
  • symp1
  • symp11
  • symp2
  • symp10
  • statewise
  • essential
  • deny
  • goodbye responses: utter_ask_email:
  • text: What is your email ID? utter_ask_name:
  • text: Hey! What can I call you? utter_ask_name_old:
  • text: Could you remind me your name? utter_ask_phnumber:
  • text: What is your phone number(preferably whatsapp number)? utter_ask_state:
  • text: Which state’s stats would you like to know? utter_ask_symptom1:
  • buttons:
    • payload: /symp1{“symp1”:“Yes”} title: Yes
    • payload: /symp1{“symp1”:“No”} title: No text: Are you facing any difficulty in breathing or shortness of breath? utter_ask_symptom10:
  • buttons:
    • payload: /symp10{“symp10”:“Yes”} title: Yes
    • payload: /symp10{“symp10”:“No”} title: No text: Do you have conjunctivitis? utter_ask_symptom11:
  • buttons:
    • payload: /symp11{“symp11”:“Yes”} title: Yes
    • payload: /symp11{“symp11”:“No”} title: No text: Are you having any headaches? utter_ask_symptom12:
  • buttons:
    • payload: /symp12{“symp12”:“Yes”} title: Yes
    • payload: /symp12{“symp12”:“No”} title: No text: Do you face the loss of taste or smell? utter_ask_symptom13:
  • buttons:
    • payload: /symp13{“symp13”:“Yes”} title: Yes
    • payload: /symp13{“symp13”:“No”} title: No text: Do you have a rash on skin, or discolouration of fingers or toes? utter_ask_symptom2:
  • buttons:
    • payload: /symp2{“symp2”:“Yes”} title: Yes
    • payload: /symp2{“symp2”:“No”} title: No text: Do you have chest pain or pressure? utter_ask_symptom3:
  • buttons:
    • payload: /symp3{“symp3”:“Yes”} title: Yes
    • payload: /symp3{“symp3”:“No”} title: No text: Do you suffer from loss of speech or movement? utter_ask_symptom4:
  • buttons:
    • payload: /symp4{“symp4”:“Yes”} title: Yes
    • payload: /symp4{“symp4”:“No”} title: No text: Do you have a fever? utter_ask_symptom5:
  • buttons:
    • payload: /symp5{“symp5”:“Yes”} title: Yes
    • payload: /symp5{“symp5”:“No”} title: No text: Do you have a dry cough? utter_ask_symptom6:
  • buttons:
    • payload: /symp6{“symp6”:“Yes”} title: Yes
    • payload: /symp6{“symp6”:“No”} title: No text: Are you feeling tired? utter_ask_symptom7:
  • buttons:
    • payload: /symp7{“symp7”:“Yes”} title: Yes
    • payload: /symp7{“symp7”:“No”} title: No text: Do you have any aches and pains? utter_ask_symptom8:
  • buttons:
    • payload: /symp8{“symp8”:“Yes”} title: Yes
    • payload: /symp8{“symp8”:“No”} title: No text: Do you have a sore throat? utter_ask_symptom9:
  • buttons:
    • payload: /symp9{“symp9”:“Yes”} title: Yes
    • payload: /symp9{“symp9”:“No”} title: No text: Do you have diarrhoea? utter_ask_zipcode:
  • text: What is your pincode? utter_firsttime:
  • buttons:
    • payload: /affirm title: Yes
    • payload: /deny title: No text: Is this the first time you’re using this chatbot? utter_goodbye:
  • text: Bye utter_greet:
  • buttons:
    • payload: /symptom title: Symptom checker
    • payload: /statewise title: Statewise stats
    • payload: /essential title: Essential services text: Hey! How can I help you? utter_greet_old:
  • buttons:
    • payload: /symptom title: Symptom checker
    • payload: /statewise title: Statewise stats
    • payload: /essential title: Essential services text: null utter_slot_values:
  • buttons:
    • payload: /affirm title: Yes
    • payload: /deny title: No text: “Can you confirm that these are your details?\n - name: {name}\n - email:
      \ {email}\n - phnumber: {phnumber}\n - pincode: {zipcode}\n” utter_submit:
  • text: All done!

slots: email: type: unfeaturized name: type: unfeaturized phnumber: type: unfeaturized requested_slot: type: unfeaturized state: type: unfeaturized symp1: type: categorical values: - yes - no - other symp10: type: categorical values: - yes - no - other symp11: type: categorical values: - yes - no - other symp12: type: categorical values: - yes - no - other symp13: type: categorical values: - yes - no - other symp2: type: categorical values: - yes - no - other symp3: type: categorical values: - yes - no - other symp4: type: categorical values: - yes - no - other symp5: type: categorical values: - yes - no - other symp6: type: categorical values: - yes - no - other symp7: type: categorical values: - yes - no - other symp8: type: categorical values: - yes - no - other symp9: type: categorical values: - yes - no - other zipcode: type: unfeaturized

session_config: carry_over_slots_to_new_session: true session_expiration_time: 60

actions:

  • action_corona_tracker
  • action_fetch
  • action_submit
  • action_symp_analysis
  • action_symp_update
  • utter_ask_email
  • utter_ask_name
  • utter_ask_name_old
  • utter_ask_phnumber
  • utter_ask_state
  • utter_ask_symptom1
  • utter_ask_symptom10
  • utter_ask_symptom11
  • utter_ask_symptom12
  • utter_ask_symptom13
  • utter_ask_symptom2
  • utter_ask_symptom3
  • utter_ask_symptom4
  • utter_ask_symptom5
  • utter_ask_symptom6
  • utter_ask_symptom7
  • utter_ask_symptom8
  • utter_ask_symptom9
  • utter_firsttime
  • utter_goodbye
  • utter_greet
  • utter_greet_old
  • utter_slot_values
  • utter_submit

forms: details_form: name_entry: - type: from_intent intent: name email_entry: - type: from_entity intent: email phnumber_entry: - type: from_entity intent: phnumber zipcode_entry: - type: from_entity intent: zipcode

@desmarchris please help

@robynbitner please help

hey @rishikesh2651 can you share the error output from your terminal?

@desmarchris (rasa_venv) C:\Users…\Rasa>rasa train 2021-02-08 20:05:30.757530: W tensorflow/stream_executor/platform/default/dso_loader.cc:59] Could not load dynamic library ‘cudart64_101.dll’; dlerror: cudart64_101.dll not found 2021-02-08 20:05:30.768417: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine. 2021-02-08 20:05:34.076623: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library nvcuda.dll 2021-02-08 20:05:34.730131: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1716] Found device 0 with properties: pciBusID: 0000:03:00.0 name: GeForce 940MX computeCapability: 5.0 coreClock: 1.2415GHz coreCount: 3 deviceMemorySize: 2.00GiB deviceMemoryBandwidth: 13.41GiB/s 2021-02-08 20:05:34.748824: W tensorflow/stream_executor/platform/default/dso_loader.cc:59] Could not load dynamic library ‘cudart64_101.dll’; dlerror: cudart64_101.dll not found 2021-02-08 20:05:34.758795: W tensorflow/stream_executor/platform/default/dso_loader.cc:59] Could not load dynamic library ‘cublas64_10.dll’; dlerror: cublas64_10.dll not found 2021-02-08 20:05:34.768149: W tensorflow/stream_executor/platform/default/dso_loader.cc:59] Could not load dynamic library ‘cufft64_10.dll’; dlerror: cufft64_10.dll not found 2021-02-08 20:05:34.778413: W tensorflow/stream_executor/platform/default/dso_loader.cc:59] Could not load dynamic library ‘curand64_10.dll’; dlerror: curand64_10.dll not found 2021-02-08 20:05:34.786975: W tensorflow/stream_executor/platform/default/dso_loader.cc:59] Could not load dynamic library ‘cusolver64_10.dll’; dlerror: cusolver64_10.dll not found 2021-02-08 20:05:34.797541: W tensorflow/stream_executor/platform/default/dso_loader.cc:59] Could not load dynamic library ‘cusparse64_10.dll’; dlerror: cusparse64_10.dll not found 2021-02-08 20:05:34.806933: W tensorflow/stream_executor/platform/default/dso_loader.cc:59] Could not load dynamic library ‘cudnn64_7.dll’; dlerror: cudnn64_7.dll not found 2021-02-08 20:05:34.815866: W tensorflow/core/common_runtime/gpu/gpu_device.cc:1753] Cannot dlopen some GPU libraries. Please make sure the missing libraries mentioned above are installed properly if you would like to use GPU. Follow the guide at GPU support  |  TensorFlow for how to download and setup the required libraries for your platform. Skipping registering GPU devices… YamlValidationException: Failed to validate ‘C:\Users\samee\AppData\Local\Programs\Python\Python37\Rishikesh\Rasa\domain.yml’. Please make sure the file is correct and all mandatory parameters are specified. Here are the errors found during validation

I would recommend using a YAML validator to see where there is a syntax error

@robynbitner It’s a valid yaml file. I’ve checked it before and just now too. This is what I don’t get… The yaml checker tells it’s valid but rasa says there’s some issue.

can you run rasa data validate and post the output here?

@desmarchris (rasa_venv) C:\Users\samee\AppData\Local\Programs\Python\Python37\Rishikesh\Rasa>rasa data validate 2021-02-08 20:35:58.645754: W tensorflow/stream_executor/platform/default/dso_loader.cc:59] Could not load dynamic library ‘cudart64_101.dll’; dlerror: cudart64_101.dll not found 2021-02-08 20:35:58.690675: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine. 2021-02-08 20:36:02.891097: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library nvcuda.dll 2021-02-08 20:36:03.577888: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1716] Found device 0 with properties: pciBusID: 0000:03:00.0 name: GeForce 940MX computeCapability: 5.0 coreClock: 1.2415GHz coreCount: 3 deviceMemorySize: 2.00GiB deviceMemoryBandwidth: 13.41GiB/s 2021-02-08 20:36:03.591875: W tensorflow/stream_executor/platform/default/dso_loader.cc:59] Could not load dynamic library ‘cudart64_101.dll’; dlerror: cudart64_101.dll not found 2021-02-08 20:36:03.601496: W tensorflow/stream_executor/platform/default/dso_loader.cc:59] Could not load dynamic library ‘cublas64_10.dll’; dlerror: cublas64_10.dll not found 2021-02-08 20:36:03.612947: W tensorflow/stream_executor/platform/default/dso_loader.cc:59] Could not load dynamic library ‘cufft64_10.dll’; dlerror: cufft64_10.dll not found 2021-02-08 20:36:03.626372: W tensorflow/stream_executor/platform/default/dso_loader.cc:59] Could not load dynamic library ‘curand64_10.dll’; dlerror: curand64_10.dll not found 2021-02-08 20:36:03.638164: W tensorflow/stream_executor/platform/default/dso_loader.cc:59] Could not load dynamic library ‘cusolver64_10.dll’; dlerror: cusolver64_10.dll not found 2021-02-08 20:36:03.650907: W tensorflow/stream_executor/platform/default/dso_loader.cc:59] Could not load dynamic library ‘cusparse64_10.dll’; dlerror: cusparse64_10.dll not found 2021-02-08 20:36:03.661883: W tensorflow/stream_executor/platform/default/dso_loader.cc:59] Could not load dynamic library ‘cudnn64_7.dll’; dlerror: cudnn64_7.dll not found 2021-02-08 20:36:03.674848: W tensorflow/core/common_runtime/gpu/gpu_device.cc:1753] Cannot dlopen some GPU libraries. Please make sure the missing libraries mentioned above are installed properly if you would like to use GPU. Follow the guide at GPU support  |  TensorFlow for how to download and setup the required libraries for your platform. Skipping registering GPU devices… YamlValidationException: Failed to validate ‘C:\Users\samee\AppData\Local\Programs\Python\Python37\Rishikesh\Rasa\domain.yml’. Please make sure the file is correct and all mandatory parameters are specified. Here are the errors found during validation

@desmarchris it says:

but doesn’t actually show the errors

Hmm that’s odd it’s not showing any error. It’s kind of hard to read the file above since I think there are changes to the formatting from posting, but at first glance I can see that you have your response actions listed under actions. Only your custom actions should be listed in that section. Try removing those and repost any new errors

Alright. Give me a minute…

@desmarchris it shows the same error

Ok can you share the actual file here in the forum by using the upload file button in a response?

domain.yml (6.2 KB)

1 Like

It’s the text response for utter_greet_old. You currently have text: null, and when I change that to a random string it works for me. Try changing that and re-running your commands.

This looks like a bug in our validator so I’ll be opening an issue to fix it!

2 Likes

ok thanks mate! It doesn’t show that error anymore

1 Like

Is this issue fixed in a newer version of rasa? I am still getting the same error on an otherwise valid .yml file.

Rasa Version : 2.1.2

Rasa SDK Version : 2.2.0

Rasa X Version : 0.34.0

Python Version : 3.6.12

Operating System : Darwin-20.3.0-x86_64-i386-64bit

no fixes yet for the validation @ftarlaci. do you have any fields set as null?

No, i don’t have any null values. I have fixed everything, as well as used an auto-yaml prettifier and checked with yamllint. I am still getting the same empty validation error when I do rasa data validate or rasa train and it is preventing me from training the model.