# Yaml Validation Exception Failed to validate. but it shows no error

**URL:** <https://forum.rasa.com/t/yaml-validation-exception-failed-to-validate-but-it-shows-no-error/39748>\
**Category:** Rasa Open Source\
**Created:** [February 2, 2021, 3:22pm UTC](https://forum.rasa.com/t/yaml-validation-exception-failed-to-validate-but-it-shows-no-error/39748 "2021-02-02T15:22:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gopimys](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/gopimys/32/13175_2.png) [@gopimys](https://forum.rasa.com/u/gopimys)\
**Post date:** [February 2, 2021, 3:22pm UTC](https://forum.rasa.com/t/yaml-validation-exception-failed-to-validate-but-it-shows-no-error/39748/1 "2021-02-02T15:22:06Z")

</div>

YamlValidationException: Failed to validate ‘C:\Tensorflow\ChatBot\Pysch\domain. yml’. Please make sure the file is correct and all mandatory parameters are spec ified. Here are the errors found during validation`Preformatted text`

here is my domian.yml please help me this for project [config.yml](https://forum.rasa.com/uploads/short-url/soe9iHBDApdqan4puZLGk4xGM6x.yml) (665 Bytes)[domain.yml](https://forum.rasa.com/uploads/short-url/sI30Bu57jWTBiILXSm9nqBtyyKr.yml) (12.3 KB)

---

<div class="post-metadata">

**Author:** ![jbh](https://avatars.discourse-cdn.com/v4/letter/j/e9a140/32.png) [@jbh](https://forum.rasa.com/u/jbh)\
**Post date:** [February 23, 2021, 7:23pm UTC](https://forum.rasa.com/t/yaml-validation-exception-failed-to-validate-but-it-shows-no-error/39748/2 "2021-02-23T19:23:28Z")

</div>

Hi gopimys, Did you ever figure out a solution to this problem? I am getting the same error `Failed to Validate` when I try to run `rasa train` or `rasa x`. Even though [YAMLlint.com](http://YAMLlint.com) says its valid. I am stuck.

---

<div class="post-metadata">

**Author:** ![Randywreed](https://avatars.discourse-cdn.com/v4/letter/r/db5fbb/32.png) [@Randywreed](https://forum.rasa.com/u/Randywreed)\
**Post date:** [June 21, 2021, 3:45am UTC](https://forum.rasa.com/t/yaml-validation-exception-failed-to-validate-but-it-shows-no-error/39748/3 "2021-06-21T03:45:45Z")

</div>

Probably its too late for the op, but for those who come after, I had this problem as well. The problem was with the formation of my buttons. The important thing is that whether the text line for the button is first or the button line is first, there is only a dash for one not the other. If you put a dash in front of both the text and the button lines you will get this error. Yaml linters will not catch this. Here’s examples of forming buttons. So either:

```auto
utter_relstub:
  - text: Religious Studies are part of the Department of Philosophy and Religion; although these programs of study are different, they cover many of the same bases.
    buttons:
    - text: Yeah
      payload: /rel_link_yes
    - text: Nah 
      payload: /rel_link_no

```

or

```auto
 utter_assignment_help:
    - buttons:
      - payload: /quiz_help
        title: Quizzes
      - payload: /reflection_help
        title: Reflections
      - payload: /kritik_help
        title: Article Analysis
      text: Ok! You need help with doing your assignment. I can help with that. Which assignment would you like information on?

```

Hope this helps someone but mostly its so when I google this again I’ll see it.
