# Problem with using \`rasa data validate\` when using an external NLG server

**URL:** <https://forum.rasa.com/t/problem-with-using-rasa-data-validate-when-using-an-external-nlg-server/57569>\
**Category:** Rasa Open Source\
**Created:** [March 14, 2023, 4:14pm UTC](https://forum.rasa.com/t/problem-with-using-rasa-data-validate-when-using-an-external-nlg-server/57569 "2023-03-14T16:14:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![thisisishara](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/thisisishara/32/18281_2.png) [@thisisishara](https://forum.rasa.com/u/thisisishara)\
**Post date:** [March 14, 2023, 4:14pm UTC](https://forum.rasa.com/t/problem-with-using-rasa-data-validate-when-using-an-external-nlg-server/57569/1 "2023-03-14T16:14:32Z")

</div>

**Problem**

I have a `rasa 3.4.5` bot that uses an [`external NLG server`](https://github.com/RasaHQ/rasa/blob/main/examples/nlg_server/nlg_server.py) which works without any issues when executed. No issues whatsoever.

As the [documentation](https://rasa.com/docs/rasa/nlg/) suggests, since I am using the utterances directly in my rules, I have listed all the utterance names under the `actions` key in the `domain.yml`.

However, when I run `rasa data validate`, there are a bunch of `UserWarnings` about the utterances being used in stories but are `not valid utterance actions`.

eg: `UserWarning: The action 'utter_greet' is used in the stories, but is not a valid utterance action. Please make sure the action is listed in your domain and there is a template defined with its name.`

And, sadly the validation job fails with `Project validation completed with errors.` error message, which shouldn’t be the case since the utterance names are already listed under the `actions`, like I mentioned, as suggested in the documentation. I am planning on implementing a CI/CD pipeline and only deploy the assistant if `rasa data validate` is successfully executed so failing to do so is a huge issue eventhough there’s nothing wrong with the configs of the assistant in any of the YAML files.

Are there any ongoing issues to fix this any time soon?

I have attached my [rules.yml](https://forum.rasa.com/uploads/short-url/A3eY6a1Ft8CKDe77DNJR9jZQ7Ih.yml) (723 Bytes) and [domain.yml](https://forum.rasa.com/uploads/short-url/j7Oo3QVUuVBay98OFA6OGPBY9Zs.yml) (1.5 KB) as a reference herewith.

Here’s the error log:

 ![error_log_rasa_data_validate](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/3X/1/2/12d882f97096c3f4a1404fa5e90513c79ab5a57f.png)

**Steps to reproduce**

- create a new rasa assistant
- remove responses from the domain and attach an [`external NLG server`](https://rasa.com/docs/rasa/nlg/). Code for the external NLG can be obtained from [here](https://github.com/RasaHQ/rasa/blob/main/examples/nlg_server/nlg_server.py)
- list the utterance names under `actions` in the `domain.yml` since there is no more `responses` key.
- run `rasa data validate`. the job should fail due to the reason of `missing utterance actions`

---

<div class="post-metadata">

**Author:** ![stephens](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/stephens/32/1632_2.png) [@stephens](https://forum.rasa.com/u/stephens)\
**Post date:** [March 19, 2023, 5:40pm UTC](https://forum.rasa.com/t/problem-with-using-rasa-data-validate-when-using-an-external-nlg-server/57569/2 "2023-03-19T17:40:57Z")

</div>

You should file a bug report on Jira. Warnings should not cause a validate failure. This should only cause a failure if the `--fail-on-warnings` is set.
