# TypeError: run() missing 1 required positional argument: 'domain'

**URL:** https://forum.rasa.com/t/typeerror-run-missing-1-required-positional-argument-domain/48324
**Category:** Rasa Open Source
**Created:** [October 8, 2021, 5:59am UTC](https://forum.rasa.com/t/typeerror-run-missing-1-required-positional-argument-domain/48324 "2021-10-08T05:59:35Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![sdhaker2](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/sdhaker2/32/17498_2.png) [@sdhaker2](https://forum.rasa.com/u/sdhaker2)
#### Post date: [October 8, 2021, 5:59am UTC](https://forum.rasa.com/t/typeerror-run-missing-1-required-positional-argument-domain/48324/1 "2021-10-08T05:59:35Z")

</div>

I am tried to run the custom action but getting this error…I

 ![Screenshot (128)](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/3X/c/d/cd7d6fc86a380b9ee6ef9e5e27558cf768e0f134.png) ![Screenshot (129)](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/3X/5/2/529cbc3f055009d206c49b420812dc51437bbf04.png) ![Screenshot (130)](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/3X/a/4/a4afe919b301d67f6e3a9c61a4a8cd58a8923004.png) ![Screenshot (131)](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/3X/2/2/2251eb8b0bc05fc0a01cd9abc3e5eb9f8a76686c.png)have looked in the rasa forum but could not found anything related to this…here are my custom action code and the error.

---

<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: [October 8, 2021, 1:24pm UTC](https://forum.rasa.com/t/typeerror-run-missing-1-required-positional-argument-domain/48324/15 "2021-10-08T13:24:00Z")

</div>

You have one extra parameter, `slot_value`, that should not be there.

If you want to get a slot’s value, use `tracker.get_slot('slot_name')`

---

<div class="post-metadata">

### Author: ![sdhaker2](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/sdhaker2/32/17498_2.png) [@sdhaker2](https://forum.rasa.com/u/sdhaker2)
#### Post date: [October 9, 2021, 4:07am UTC](https://forum.rasa.com/t/typeerror-run-missing-1-required-positional-argument-domain/48324/16 "2021-10-09T04:07:48Z")

</div>

thanks @ChrisRahme it works fine now.

---

<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: [October 9, 2021, 5:28am UTC](https://forum.rasa.com/t/typeerror-run-missing-1-required-positional-argument-domain/48324/17 "2021-10-09T05:28:22Z")

</div>

@sdhaker2 If the end solution is by Chris (Thanks Buddy 😉); then I am deleting the above post of mine and you also delete the same, so that there is no confusion for other users. Good Luck for your project!

---

<div class="post-metadata">

### Author: ![sdhaker2](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/sdhaker2/32/17498_2.png) [@sdhaker2](https://forum.rasa.com/u/sdhaker2)
#### Post date: [October 9, 2021, 6:14am UTC](https://forum.rasa.com/t/typeerror-run-missing-1-required-positional-argument-domain/48324/18 "2021-10-09T06:14:12Z")

</div>

okay and Thank you @nik202 for your feedback and time

---

<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: [October 9, 2021, 12:53pm UTC](https://forum.rasa.com/t/typeerror-run-missing-1-required-positional-argument-domain/48324/19 "2021-10-09T12:53:46Z")

</div>

Glad to be of help.

By the way, your code can be greatly shortened and made more scalable (all these ifs/elifs can be removed).

Send it here if you want me to fix it 🙂

Please put three backticks (```) above and under your code though when posting it here so that it formats properly. Or just send the file.

---

<div class="post-metadata">

### Author: ![sdhaker2](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/sdhaker2/32/17498_2.png) [@sdhaker2](https://forum.rasa.com/u/sdhaker2)
#### Post date: [October 10, 2021, 4:44am UTC](https://forum.rasa.com/t/typeerror-run-missing-1-required-positional-argument-domain/48324/20 "2021-10-10T04:44:08Z")

</div>

That is great but if else is no big deal for me…i can also remove those like create a dictionary. The main issue was already solved by you and i am very grateful for your help. If i have any problem i will definitely ask.

Thanks a lot
