# Error running graph component for node train\_UnexpecTEDIntentPolicy2

**URL:** <https://forum.rasa.com/t/error-running-graph-component-for-node-train-unexpectedintentpolicy2/60011>\
**Category:** Rasa Open Source\
**Created:** [October 23, 2023, 9:38am UTC](https://forum.rasa.com/t/error-running-graph-component-for-node-train-unexpectedintentpolicy2/60011 "2023-10-23T09:38:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![victor\_sh](https://avatars.discourse-cdn.com/v4/letter/v/43a26b/32.png) [@victor\_sh](https://forum.rasa.com/u/victor_sh)\
**Post date:** [October 23, 2023, 9:38am UTC](https://forum.rasa.com/t/error-running-graph-component-for-node-train-unexpectedintentpolicy2/60011/1 "2023-10-23T09:38:14Z")

</div>

Hello!  
I encounter this issue not for the first time, when I write a story, and an error occurs: Error running graph component for node train\_UnexpecTEDIntentPolicy2. If I delete this story, everything is back to normal.

Example of the story:

```auto
- story: what is person doing
  steps:
  - intent: what_is_person_doing
    entities:
    - person
  - action: utter_what_is_person_doing

```

I’ve checked many times, all intents and actions are registered in domain.yml. There are no warnings or errors regarding the use of intents and the configuration of stories. But only this story out of many others causes such an exception - Error running graph component for node train\_UnexpecTEDIntentPolicy2.

Moreover, when I move this story to a rule, everything works as it should, no exceptions are thrown, and the model trains.

I’m afraid that when this bundle becomes part of a big story, for example, from interactive mode, it may cause the same exception and inability to train the model.

Has anyone encountered this? What is this related to?

My configuration:

```auto
Rasa Version : 3.6.10
Minimum Compatible Version: 3.5.0
Rasa SDK Version : 3.6.2
Python Version : 3.10.12
Operating System : Linux-6.2.0-35-generic-x86_64-with-glibc2.35

```

---

<div class="post-metadata">

**Author:** ![camille\_f](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/camille_f/32/24801_2.png) [@camille\_f](https://forum.rasa.com/u/camille_f)\
**Post date:** [November 18, 2024, 2:30pm UTC](https://forum.rasa.com/t/error-running-graph-component-for-node-train-unexpectedintentpolicy2/60011/2 "2024-11-18T14:30:21Z")

</div>

I got this error when I made a new intent and listed it in my nlu.yml files, but did not include it in my domain.yml file. The top of the domain.yml file includes an intent section.

I also get it if I have included a new intent in my stories.yml file but forgot to put it in the nlu.yml file.
