# Mapping Policy not included in policy ensemble. But is defined in the config.yml

**URL:** <https://forum.rasa.com/t/mapping-policy-not-included-in-policy-ensemble-but-is-defined-in-the-config-yml/15170>\
**Category:** Rasa Open Source\
**Created:** [September 3, 2019, 2:06pm UTC](https://forum.rasa.com/t/mapping-policy-not-included-in-policy-ensemble-but-is-defined-in-the-config-yml/15170 "2019-09-03T14:06:51Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Narogus](https://avatars.discourse-cdn.com/v4/letter/n/87869e/32.png) [@Narogus](https://forum.rasa.com/u/Narogus)\
**Post date:** [September 3, 2019, 2:06pm UTC](https://forum.rasa.com/t/mapping-policy-not-included-in-policy-ensemble-but-is-defined-in-the-config-yml/15170/1 "2019-09-03T14:06:51Z")

</div>

Getting a INFO warning when running training and shell;

```auto
rasa.core.policies.ensemble - MappingPolicy not included in policy ensemble. 
Default intents 'restart and back will not trigger actions 'action_restart' and 'action_back'.

```

even though my config.yml looks like:

```auto
language: en
pipeline: supervised_embeddings
policies:
- name: MappingPolicy
- name: KerasPolicy 

```

Any ideas about why the MappingPolicy is not registered for the `rasa.core.policies.ensemble` ? Annoying not being able to restart a conversation within the shell.

---

<div class="post-metadata">

**Author:** ![erohmensing](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/erohmensing/32/1789_2.png) [@erohmensing](https://forum.rasa.com/u/erohmensing)\
**Post date:** [September 3, 2019, 2:59pm UTC](https://forum.rasa.com/t/mapping-policy-not-included-in-policy-ensemble-but-is-defined-in-the-config-yml/15170/2 "2019-09-03T14:59:04Z")

</div>

@Narogus did you retrain your bot after having added MappingPolicy?

---

<div class="post-metadata">

**Author:** ![Narogus](https://avatars.discourse-cdn.com/v4/letter/n/87869e/32.png) [@Narogus](https://forum.rasa.com/u/Narogus)\
**Post date:** [September 4, 2019, 12:28pm UTC](https://forum.rasa.com/t/mapping-policy-not-included-in-policy-ensemble-but-is-defined-in-the-config-yml/15170/3 "2019-09-04T12:28:31Z")

</div>

Yes. The warning comes up both during training, and when running the shell.

I have been trying to run Rasa with docker. The Rasa version in the docker container is Rasa 1.3.0a2, found by running:

```auto
docker run -v $(pwd):/app rasa/rasa --version

```

In another local version (Rasa 1.2.7), not running in docker, I’m not experiencing this issue.

---

<div class="post-metadata">

**Author:** ![erohmensing](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/erohmensing/32/1789_2.png) [@erohmensing](https://forum.rasa.com/u/erohmensing)\
**Post date:** [September 4, 2019, 12:33pm UTC](https://forum.rasa.com/t/mapping-policy-not-included-in-policy-ensemble-but-is-defined-in-the-config-yml/15170/4 "2019-09-04T12:33:48Z")

</div>

Hm, that’s strange, we’ll look into it. However i’d stick to the most recent published version (1.2.7) and not the alpha release, as they can be touchy.

Do you get the same issue is you run 1.2.7 in docker?

---

<div class="post-metadata">

**Author:** ![Narogus](https://avatars.discourse-cdn.com/v4/letter/n/87869e/32.png) [@Narogus](https://forum.rasa.com/u/Narogus)\
**Post date:** [September 4, 2019, 12:43pm UTC](https://forum.rasa.com/t/mapping-policy-not-included-in-policy-ensemble-but-is-defined-in-the-config-yml/15170/5 "2019-09-04T12:43:46Z")

</div>

Ok, thanks!

No, I haven’t. I’ll try that, and get back to you!

---

<div class="post-metadata">

**Author:** ![Narogus](https://avatars.discourse-cdn.com/v4/letter/n/87869e/32.png) [@Narogus](https://forum.rasa.com/u/Narogus)\
**Post date:** [September 4, 2019, 1:14pm UTC](https://forum.rasa.com/t/mapping-policy-not-included-in-policy-ensemble-but-is-defined-in-the-config-yml/15170/6 "2019-09-04T13:14:15Z")

</div>

Version 1.2.7 works!

---

<div class="post-metadata">

**Author:** ![erohmensing](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/erohmensing/32/1789_2.png) [@erohmensing](https://forum.rasa.com/u/erohmensing)\
**Post date:** [September 4, 2019, 1:32pm UTC](https://forum.rasa.com/t/mapping-policy-not-included-in-policy-ensemble-but-is-defined-in-the-config-yml/15170/7 "2019-09-04T13:32:24Z")

</div>

Awesome. Will keep an eye on this when 1.3 gets released! If you experience it again, let us know.

---

<div class="post-metadata">

**Author:** ![ice2tricky](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/ice2tricky/32/4361_2.png) [@ice2tricky](https://forum.rasa.com/u/ice2tricky)\
**Post date:** [September 6, 2019, 11:48am UTC](https://forum.rasa.com/t/mapping-policy-not-included-in-policy-ensemble-but-is-defined-in-the-config-yml/15170/8 "2019-09-06T11:48:12Z")

</div>

The issue is related to the 1.3 release, it started when I updated to it.

---

<div class="post-metadata">

**Author:** ![erohmensing](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/erohmensing/32/1789_2.png) [@erohmensing](https://forum.rasa.com/u/erohmensing)\
**Post date:** [September 6, 2019, 12:04pm UTC](https://forum.rasa.com/t/mapping-policy-not-included-in-policy-ensemble-but-is-defined-in-the-config-yml/15170/9 "2019-09-06T12:04:46Z")

</div>

Okay, yes I believe this is a bug and I know how to fix it. @ice2tricky could you create a github issue for this please?

---

<div class="post-metadata">

**Author:** ![ice2tricky](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/ice2tricky/32/4361_2.png) [@ice2tricky](https://forum.rasa.com/u/ice2tricky)\
**Post date:** [September 6, 2019, 12:50pm UTC](https://forum.rasa.com/t/mapping-policy-not-included-in-policy-ensemble-but-is-defined-in-the-config-yml/15170/10 "2019-09-06T12:50:02Z")

</div>

created

---

<div class="post-metadata">

**Author:** ![erohmensing](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/erohmensing/32/1789_2.png) [@erohmensing](https://forum.rasa.com/u/erohmensing)\
**Post date:** [September 9, 2019, 11:16am UTC](https://forum.rasa.com/t/mapping-policy-not-included-in-policy-ensemble-but-is-defined-in-the-config-yml/15170/11 "2019-09-09T11:16:58Z")

</div>

Thanks 🙌🏻

---

<div class="post-metadata">

**Author:** ![noman](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/noman/32/10071_2.png) [@noman](https://forum.rasa.com/u/noman)\
**Post date:** [September 17, 2019, 2:13pm UTC](https://forum.rasa.com/t/mapping-policy-not-included-in-policy-ensemble-but-is-defined-in-the-config-yml/15170/12 "2019-09-17T14:13:25Z")

</div>

@erohmensing did you fix the bug ?

---

<div class="post-metadata">

**Author:** ![erohmensing](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/erohmensing/32/1789_2.png) [@erohmensing](https://forum.rasa.com/u/erohmensing)\
**Post date:** [September 17, 2019, 3:53pm UTC](https://forum.rasa.com/t/mapping-policy-not-included-in-policy-ensemble-but-is-defined-in-the-config-yml/15170/13 "2019-09-17T15:53:11Z")

</div>

@noman yes, it was released with 1.3.3

---

<div class="post-metadata">

**Author:** ![noman](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/noman/32/10071_2.png) [@noman](https://forum.rasa.com/u/noman)\
**Post date:** [September 18, 2019, 9:51pm UTC](https://forum.rasa.com/t/mapping-policy-not-included-in-policy-ensemble-but-is-defined-in-the-config-yml/15170/14 "2019-09-18T21:51:44Z")

</div>

Great Thanks

---

<div class="post-metadata">

**Author:** ![noman](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/noman/32/10071_2.png) [@noman](https://forum.rasa.com/u/noman)\
**Post date:** [September 18, 2019, 9:52pm UTC](https://forum.rasa.com/t/mapping-policy-not-included-in-policy-ensemble-but-is-defined-in-the-config-yml/15170/15 "2019-09-18T21:52:55Z")

</div>

Just want to know one more thing related to Mapping policy. Which is; what are the benefits of Mapping policy and when should we use it?

---

<div class="post-metadata">

**Author:** ![noman](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/noman/32/10071_2.png) [@noman](https://forum.rasa.com/u/noman)\
**Post date:** [September 18, 2019, 9:58pm UTC](https://forum.rasa.com/t/mapping-policy-not-included-in-policy-ensemble-but-is-defined-in-the-config-yml/15170/16 "2019-09-18T21:58:09Z")

</div>

An example would be really helpful in case of form actions.

Like if the form action is activated and requested slot is “XYZ” but user asked for the time that is mapped to an action ‘action\_get\_time’ after performing the action and event UtteranceReverted(), how can a bot re-ask the user for the ‘XYZ’ slot?

---

<div class="post-metadata">

**Author:** ![erohmensing](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/erohmensing/32/1789_2.png) [@erohmensing](https://forum.rasa.com/u/erohmensing)\
**Post date:** [September 19, 2019, 7:57am UTC](https://forum.rasa.com/t/mapping-policy-not-included-in-policy-ensemble-but-is-defined-in-the-config-yml/15170/17 "2019-09-19T07:57:07Z")

</div>

Mhm so if you add the intent that maps to the action to the `not_intent` of the slot mappings, it should let the other policies (e.g. mapping) handle the input. then on the next turn the form policy will jump back in again.

---

<div class="post-metadata">

**Author:** ![noman](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/noman/32/10071_2.png) [@noman](https://forum.rasa.com/u/noman)\
**Post date:** [September 19, 2019, 8:38am UTC](https://forum.rasa.com/t/mapping-policy-not-included-in-policy-ensemble-but-is-defined-in-the-config-yml/15170/18 "2019-09-19T08:38:40Z")

</div>

@erohmensing it was a bouncer 😃 i didnt get your comment. Can you please simplify for my understanding please. Thanks

---

<div class="post-metadata">

**Author:** ![erohmensing](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/erohmensing/32/1789_2.png) [@erohmensing](https://forum.rasa.com/u/erohmensing)\
**Post date:** [September 19, 2019, 11:22am UTC](https://forum.rasa.com/t/mapping-policy-not-included-in-policy-ensemble-but-is-defined-in-the-config-yml/15170/19 "2019-09-19T11:22:48Z")

</div>

Take a look at the form documentation here, it will help you understand my comment [Forms](https://rasa.com/docs/rasa/core/forms/#custom-slot-mappings)

---

<div class="post-metadata">

**Author:** ![noman](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/noman/32/10071_2.png) [@noman](https://forum.rasa.com/u/noman)\
**Post date:** [September 19, 2019, 7:33pm UTC](https://forum.rasa.com/t/mapping-policy-not-included-in-policy-ensemble-but-is-defined-in-the-config-yml/15170/20 "2019-09-19T19:33:30Z")

</div>

ok i get your comment, but the problem is still there, when the form policy jumps back again, it simply goes into to the action\_listen but i want to prompt the user for the slot that he had missed out previously by asking the bot for another intent that was mapped to some other action.

[Next page](https://forum.rasa.com/t/mapping-policy-not-included-in-policy-ensemble-but-is-defined-in-the-config-yml/15170.md?page=2)
