# Getting error on creating slots

**URL:** <https://forum.rasa.com/t/getting-error-on-creating-slots/55225>\
**Category:** Rasa Open Source\
**Created:** [September 7, 2022, 4:37pm UTC](https://forum.rasa.com/t/getting-error-on-creating-slots/55225 "2022-09-07T16:37:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vanshika2207](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/vanshika2207/32/21487_2.png) [@vanshika2207](https://forum.rasa.com/u/vanshika2207)\
**Post date:** [September 7, 2022, 4:37pm UTC](https://forum.rasa.com/t/getting-error-on-creating-slots/55225/1 "2022-09-07T16:37:33Z")

</div>

fail to validate domain file I am getting error in my domain file as follow: YamlValidationException: Failed to validate ‘C:\Users\saxen\Buddy\domain.yml’. Please make sure the file is correct and all mandatory parameters are specified. Here are the errors found during validation: in C:\Users\saxen\Buddy\domain.yml:21: Cannot find required key ‘mappings’. Path: ‘/slots/city’ [domain.yml](https://forum.rasa.com/uploads/short-url/h4a5lEtWLQ7nBwlbfLoPkqPgxzc.yml) (978 Bytes) [nlu.yml](https://forum.rasa.com/uploads/short-url/cy03lpNHChmIziFtF7VTdTABqo0.yml) (2.2 KB) [stories.yml](https://forum.rasa.com/uploads/short-url/pPCFzAjoQvNUYjXlXGiSwoxl4qX.yml) (1.2 KB) I am using rasa version: Rasa Version : 3.2.6 Minimum Compatible Version: 3.0.0 Rasa SDK Version : 3.2.0 Python Version : 3.8.10 Operating System : Windows-10-10.0.22000-SP0 Python Path : c:\users\saxen\appdata\local\programs\python\python38\python.exe I am new to Rasa …kindly someone help

---

<div class="post-metadata">

**Author:** ![rasa\_learner](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/rasa_learner/32/21721_2.png) [@rasa\_learner](https://forum.rasa.com/u/rasa_learner)\
**Post date:** [September 11, 2022, 4:18pm UTC](https://forum.rasa.com/t/getting-error-on-creating-slots/55225/2 "2022-09-11T16:18:10Z")

</div>

You have to add [slot mappings](https://rasa.com/docs/rasa/domain/#slot-mappings) in the domain file.

---

<div class="post-metadata">

**Author:** ![vanshika2207](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/vanshika2207/32/21487_2.png) [@vanshika2207](https://forum.rasa.com/u/vanshika2207)\
**Post date:** [September 23, 2022, 3:04am UTC](https://forum.rasa.com/t/getting-error-on-creating-slots/55225/3 "2022-09-23T03:04:58Z")

</div>

Thankyou …but now I getting following error: you have defined training data consisting of entity examples, but your nlu configuration does not include an entity extractor trained on your training data. to extract non-pretrained entities, add one of mitieentityextractor, crfentityextractor, dietclassifier to your configuration. more info at [Components](https://rasa.com/docs/rasa/components)

kindly help

---

<div class="post-metadata">

**Author:** ![rasa\_learner](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/rasa_learner/32/21721_2.png) [@rasa\_learner](https://forum.rasa.com/u/rasa_learner)\
**Post date:** [September 23, 2022, 3:16am UTC](https://forum.rasa.com/t/getting-error-on-creating-slots/55225/4 "2022-09-23T03:16:35Z")

</div>

To extract entities you have to add Entity Extractor in your config
