# Trouble with rasa data validate - "not a valid utterance action"

**URL:** <https://forum.rasa.com/t/trouble-with-rasa-data-validate-not-a-valid-utterance-action/47208>\
**Category:** Rasa Open Source\
**Created:** [August 25, 2021, 5:56pm UTC](https://forum.rasa.com/t/trouble-with-rasa-data-validate-not-a-valid-utterance-action/47208 "2021-08-25T17:56:05Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![ml2021](https://avatars.discourse-cdn.com/v4/letter/m/a4c791/32.png) [@ml2021](https://forum.rasa.com/u/ml2021)\
**Post date:** [August 25, 2021, 5:56pm UTC](https://forum.rasa.com/t/trouble-with-rasa-data-validate-not-a-valid-utterance-action/47208/1 "2021-08-25T17:56:05Z")

</div>

Hi!

I am using Response Selector and one retrieval intent following Rasa documentation. When running `rasa data validate` I get the following message:

> UserWarning: The action ‘utter\_faq’ 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. More info at [Actions](https://rasa.com/docs/rasa/actions#utterance-actions)

I used Response Selector in config as mentioned in documentation:

```auto
- name: ResponseSelector
    epochs: 100
    retrieval_intent: faq

```

I have my retrieval intents in a separate .yml file, and utterances (example: utter\_faq/faq1, utter\_faq/faq2) are in domain.yml. I also created a few stories and rules as advised. I have tried to put the retrieval intents in my nlu.yml file but I get the same error…

Event if I run `rasa train` I get this:

> ActionNotFoundException: Cannot access action ‘utter\_faq’, as that name is not a registered action for this domain. Available actions are:

How can I solve this?

---

<div class="post-metadata">

**Author:** ![ChrisRahme](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/chrisrahme/32/15572_2.png) [@ChrisRahme](https://forum.rasa.com/u/ChrisRahme)\
**Post date:** [August 25, 2021, 6:09pm UTC](https://forum.rasa.com/t/trouble-with-rasa-data-validate-not-a-valid-utterance-action/47208/2 "2021-08-25T18:09:31Z")

</div>

> [@ml2021](#):
>
> UserWarning: The action ‘utter\_faq’ 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. More info at [Actions](https://rasa.com/docs/rasa/actions#utterance-actions)

Don’t worry about that warning, it’s because you have intents named `utter_faq/x`, `utter_faq/y`, but not just `utter_faq` 🙂

> [@ml2021](#):
>
> ActionNotFoundException: Cannot access action ‘utter\_faq’, as that name is not a registered action for this domain. Available actions are:

As for this, be carefult that in your domain, you haven’t listed any regular utterances (in this case, `utter_faq`) under `actions`.

---

<div class="post-metadata">

**Author:** ![ml2021](https://avatars.discourse-cdn.com/v4/letter/m/a4c791/32.png) [@ml2021](https://forum.rasa.com/u/ml2021)\
**Post date:** [August 25, 2021, 6:21pm UTC](https://forum.rasa.com/t/trouble-with-rasa-data-validate-not-a-valid-utterance-action/47208/3 "2021-08-25T18:21:07Z")

</div>

@ChrisRahme Thanks for your reply. Unfortunately this UserWarning does not allow me to train the model as it raises the `ActionNotFoundException` mentioned. In `domain.yml` I don’t list regular utterances under actions.

I also tried to move the regular utterances `utter_faq` to a separate responses.yml file under data\>nlu\>responses folder, but error is still raised. Any thoughts?

---

<div class="post-metadata">

**Author:** ![nik202](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nik202/32/16098_2.png) [@nik202](https://forum.rasa.com/u/nik202)\
**Post date:** [August 25, 2021, 6:31pm UTC](https://forum.rasa.com/t/trouble-with-rasa-data-validate-not-a-valid-utterance-action/47208/4 "2021-08-25T18:31:18Z")

</div>

> [@ml2021](#):
>
> ActionNotFoundException

@ml2021 can you share the nlu.yml file? I hope you mention both `- intent: utter_faq/faq1` and `- intent: utter_faq/faq2` with some examples in nlu file?

such as just a demo example:

```auto
- intent: faq/faq1
  examples: |
    - What is your name?
    - May I know your name?
    - What do people call you?
    - Do you have a name for yourself?
- intent: faq/faq2
  examples: |
    - What's the weather like today?
    - Does it look sunny outside today?
    - Oh, do you mind checking the weather for me please?
    - I like sunny days in Berlin.

```

and

```auto
intents:
  - faq

```

in domain.yml

- rule: response to faq steps:
  - intent: faq
  - action: utter\_faq

---

<div class="post-metadata">

**Author:** ![ml2021](https://avatars.discourse-cdn.com/v4/letter/m/a4c791/32.png) [@ml2021](https://forum.rasa.com/u/ml2021)\
**Post date:** [August 26, 2021, 9:31am UTC](https://forum.rasa.com/t/trouble-with-rasa-data-validate-not-a-valid-utterance-action/47208/5 "2021-08-26T09:31:23Z")

</div>

> [@ml2021](#):
>
> I have my retrieval intents in a separate .yml file, and utterances (example: utter\_faq/faq1, utter\_faq/faq2)

@nik202 yes that is what I have described, all seem ok. Only difference from what you said is that my intents: faq/faq1intent: faq/faq2 are in a separate .yml file under data\>nlu\>faq.yml. But even when I cut and paste them in domain.yml, the error ir the same and I cant train the model.

Anyone facing a similar issue? Rasa version is 2.8.0

---

<div class="post-metadata">

**Author:** ![nik202](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nik202/32/16098_2.png) [@nik202](https://forum.rasa.com/u/nik202)\
**Post date:** [August 26, 2021, 9:33am UTC](https://forum.rasa.com/t/trouble-with-rasa-data-validate-not-a-valid-utterance-action/47208/6 "2021-08-26T09:33:09Z")

</div>

@ml2021 quite strange it should work as mention in the doc. Have you seen rasa GitHub repos and some examples there? It will help you to find the error and steps you facing and missing.

@ml2021 If you can share some code file, I can dry run the code for you and check the problem, for that I need all related files. Thanks.

@ml2021 can you share the faq1.yml and faq2.yml files

---

<div class="post-metadata">

**Author:** ![ml2021](https://avatars.discourse-cdn.com/v4/letter/m/a4c791/32.png) [@ml2021](https://forum.rasa.com/u/ml2021)\
**Post date:** [August 26, 2021, 9:35am UTC](https://forum.rasa.com/t/trouble-with-rasa-data-validate-not-a-valid-utterance-action/47208/7 "2021-08-26T09:35:16Z")

</div>

Yes unfortunately cant find a solution for this `ActionNotFoundException:`. @rctatman any advice you may have? thanks

---

<div class="post-metadata">

**Author:** ![rctatman](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/rctatman/32/6734_2.png) [@rctatman](https://forum.rasa.com/u/rctatman)\
**Post date:** [August 27, 2021, 3:44pm UTC](https://forum.rasa.com/t/trouble-with-rasa-data-validate-not-a-valid-utterance-action/47208/8 "2021-08-27T15:44:04Z")

</div>

What do your responses in your domain file look like? This error is usually due to a formatting problem.
