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

If you can send your Domain I can try debugging it for you. I’m not sure what else could be causing it currently besides a null value

@desmarchris Hi, I got the same issue ftarlaci. Is the issue fixed? I also don’t have any null values.

domain.yml (12.2 KB)

This line might be the issue:

"- text: | Hallo, Ik ben de HRSC Chatbot. Ik maak gebruik van taalanalyse "

where you are using the yaml’s multiline symbol “|” For some reason Rasa didn’t like any of the official yaml syntaxes so I removed all of those and placed all response sentences in quotation marks and it worked.

@desmarchris hey, I got the same error. Can you check my file.domain.yml (9.4 KB) @ftarlaci

@ftarlaci Thank you. It works!

@Abhinav there are two issues with your file:

  1. - about_us: {triggers: action_about_us} This is the 1.x format for the MappingPolicy. This has been deprecated in favor of writing Rules.

  2. there’s an extra - for this response causing the error:

    - image: https://i.imgur.com/nGF1K8f.jpg
    - text: Here is something to cheer you up

If you change it to this it works:

  utter_cheer_up:
    - text: Here is something to cheer you up
      image: https://i.imgur.com/nGF1K8f.jpg

I’ll add onto the GitHub Issue that we’re missing the explanation for what’s wrong with the file in our output.

1 Like

@desmarchris I am facing the same error and it is a valid YAML too. Please have a look at the file and help me to identify the errordomain.yml (2.0 KB)

domain.yml (2.2 KB) Xin chào… tôi đang bị lỗi : “YamlValidationException: Failed to validate ‘C:\Users\Bao Bi\Documents\chatbot\domain.yml’. Please make sure the file is correct and all mandatory parameters are specified. Here are the errors found during validation” … Ai đó có thể giúp tôi được không? tôi lần đầu tham gia

“YamlValidationException: Failed to validate ‘C:\Users\Bao Bi\Documents\chatbot\domain.yml’. Please make sure the file is correct and all mandatory parameters are specified. Here are the errors found during validation”… help me,pleasedomain.yml|attachment (2.2 KB)

rules_dform.yml (762 Bytes) @desmarchris I am facing the same issues but in rules file YamlValidationException: Failed to validate ‘data/rules.yml’. Please make sure the file is correct and all mandatory parameters are specified. Here are the errors found during validation: in data/rules.yml:17: Key ‘slot’ was not defined. Path: ‘/rules/1/condition/2’

It is valid YAML file

pls help

im using rasa v 3 so slots have a different syntaxe try to respect how to write it