# FormBot : Encountered an exception while running action

**URL:** <https://forum.rasa.com/t/formbot-encountered-an-exception-while-running-action/12863>\
**Category:** Rasa Open Source\
**Created:** [July 12, 2019, 10:41am UTC](https://forum.rasa.com/t/formbot-encountered-an-exception-while-running-action/12863 "2019-07-12T10:41:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pranav2810](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/pranav2810/32/3960_2.png) [@pranav2810](https://forum.rasa.com/u/pranav2810)\
**Post date:** [July 12, 2019, 10:41am UTC](https://forum.rasa.com/t/formbot-encountered-an-exception-while-running-action/12863/1 "2019-07-12T10:41:57Z")

</div>

i’m unable to run example/formbot in the github ie Form action ( [rasa\_core/examples/formbot at master · RasaHQ/rasa\_core · GitHub](https://github.com/RasaHQ/rasa_core/tree/master/examples/formbot) )

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/e/e9390ff4dcc47a888a02daa9a635d59f86f469ba.png)there are no logs in the action server ![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/f/f50bd017cc3c7975b14eb056ba46aa15f5f81d5e.png)i’ve tried calling the interative shell using "rasa interactive -m latest/model/path --endpoints endpoints/path

---

<div class="post-metadata">

**Author:** ![Tanja](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/tanja/32/4696_2.png) [@Tanja](https://forum.rasa.com/u/Tanja)\
**Post date:** [July 12, 2019, 12:04pm UTC](https://forum.rasa.com/t/formbot-encountered-an-exception-while-running-action/12863/2 "2019-07-12T12:04:40Z")

</div>

We don’t maintain the code in the link you shared anymore. It seems like you are using Rasa 1.x. Please use the updated example here: [rasa/examples/formbot at master · RasaHQ/rasa · GitHub](https://github.com/RasaHQ/rasa/tree/master/examples/formbot).

---

<div class="post-metadata">

**Author:** ![gpn1998](https://avatars.discourse-cdn.com/v4/letter/g/b4bc9f/32.png) [@gpn1998](https://forum.rasa.com/u/gpn1998)\
**Post date:** [January 22, 2020, 10:14pm UTC](https://forum.rasa.com/t/formbot-encountered-an-exception-while-running-action/12863/3 "2020-01-22T22:14:42Z")

</div>

Hi. I am also trying to get to know rasa using the formbot example. I think the “updated” code in the repository is not so updated any more, though I cannot be sure. I had several problems.

FYI I am using

- windows 10 stable build
- Python 3.7.6
- Powershell 5.x
- RASA 1.6.1

Also, I pulled the latest repo with the most updated code of the examples, using the following:

> `git clone https://github.com/RasaHQ/rasa.git`

> `cd rasa/examples/formbot`

Assuming this is the correct repo, I still ran into the following problems. To problem 1 I found a solution myself (below); problem 2 has me stumped.

Problem 1 was when I ran - as per the instructions - the command rasa train there was a long list of errors

> 0/11 [00:00\<?, ?it/s, # trackers=1]c:\py-workspace.venv\lib\site-packages\rasa\core\domain.py:604: UserWarning: Failed to use action ‘utter\_greet’ in history. Please make sure all actions are listed in the domains action list. If you recently removed an action, don’t worry about this warning. It should stop appearing after a while. f"Failed to use action ‘{latest\_action}’ in history. " c:\py-workspace.venv\lib\site-packages\rasa\core\domain.py:604: UserWarning: Failed to use action ‘utter\_slots\_values’ in history. Please make sure all actions are listed in the domains action list. If you recently removed an action, don’t worry about this warning. It should stop appearing after a while. f"Failed to use action ‘{latest\_action}’ in history. " c:\py-workspace.venv\lib\site-packages\rasa\core\domain.py:604: UserWarning: Failed to use action ‘utter\_noworries’ in history. Please make sure all actions are listed in the domains action list. If you recently removed an action, don’t worry about this warning. It should stop appearing after a while. f"Failed to use action ‘{latest\_action}’ in history. " Processed Story Blocks: 0%| | 0/11 [00:00\<?, ?it/s, # trackers=1]c:\py-workspace.venv\lib\site-packages\rasa\core\domain.py:604: UserWarning: Failed to use action ‘utter\_chitchat’ in history. Please make sure all actions are listed in the domains action list. If you recently removed an action, don’t worry about this warning. It should stop appearing after a while. f"Failed to use action ‘{latest\_action}’ in history. " Processed Story Blocks: 0%| | 0/11 [00:00\<?, ?it/s, # trackers=1c :\py-workspace.venv\lib\site-packages\rasa\core\domain.py:604: UserWarning: Failed to use action ‘utter\_ask\_continue’ in history. Please make sure all actions are listed in the domains action list. If you recently removed an action, don’t worry about this warning. It should stop appearing after a while.

After working on this it seems that the provided domain.yml file is wrong. I changed the “responses” section to be called “templates” and also added a section of “actions” with the following content:

> actions:
> 
> - utter\_ask\_cuisine
> 
> - utter\_ask\_num\_people
> 
> - utter\_ask\_outdoor\_seating
> 
> - utter\_ask\_preferences
> 
> - utter\_ask\_feedback
> 
> - utter\_submit
> 
> - utter\_slots\_values
> 
> - utter\_noworries
> 
> - utter\_chitchat
> 
> - utter\_ask\_continue
> 
> - utter\_wrong\_cuisine
> 
> - utter\_wrong\_num\_people
> 
> - utter\_wrong\_outdoor\_seating
> 
> - utter\_default
> 
> - utter\_greet
> 
> - utter\_iamabot

After these changes the “rasa train” command worked.

However, even after this I am stuck, now with the custom actions. I try to run - as per the instructions - the command

> Start-Job -ScriptBlock{rasa run actions}

but this fails with the errors

> ERROR rasa\_sdk.executor - Failed to register package ‘actions’. Traceback (most recent call last): File “c:\py-workspace.venv\lib\site-packages\rasa\_sdk\executor.py”, line 206, in register\_package self.\_import\_submodules(package) File “c:\py-workspace.venv\lib\site-packages\rasa\_sdk\executor.py”, line 191, in _import\_submodules package = importlib.import\_module(package) File "C:\Users\Gilad\AppData\Local\Programs\Python\Python37\lib\importlib\_init_.py", line 127, in import\_module return \_bootstrap.\_gcd\_import(name[level:], package, level) File “”, line 1006, in \_gcd\_import File “”, line 983, in \_find\_and\_load File “”, line 965, in \_find\_and\_load\_unlocked ModuleNotFoundError: No module named ‘actions’

After a pretty thorough search I believe I am doing everything as described in the doc but still stuff does not work. Please advise!

Thank you
