# In Formbot example, changed name of function and rasa train continues to look for old function name

**URL:** <https://forum.rasa.com/t/in-formbot-example-changed-name-of-function-and-rasa-train-continues-to-look-for-old-function-name/20781>\
**Category:** Rasa Open Source\
**Created:** [November 1, 2019, 9:01pm UTC](https://forum.rasa.com/t/in-formbot-example-changed-name-of-function-and-rasa-train-continues-to-look-for-old-function-name/20781 "2019-11-01T21:01:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![d7x](https://avatars.discourse-cdn.com/v4/letter/d/8baadc/32.png) [@d7x](https://forum.rasa.com/u/d7x)\
**Post date:** [November 1, 2019, 9:01pm UTC](https://forum.rasa.com/t/in-formbot-example-changed-name-of-function-and-rasa-train-continues-to-look-for-old-function-name/20781/1 "2019-11-01T21:01:22Z")

</div>

The code that was changed in multiple files used ‘utter\_slots\_values’ which I changed to ‘utter\_slots\_values\_restaurant’ in the appropriate files. I grepped the directory to ensure that I changed all references for ‘utter\_slots\_values’. Now when I run rasa train I get the message `WARNING rasa.core.domain - 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.` I’ve run rasa train about 10 times but I still get this message. Even though I ran the code successfully many times, once I renamed the function, rasa train has continued to look for the old function name. How can I get rasa train to work?

NOTE: some of the code that I pasted is converted to bullets since I chose the editor option to pre-format the code output below. The code I posted uses the proper formatting - no syntax errors. Code in domain.yml utter\_slots\_values\_restaurant:

- text: “I am going to run a restaurant search using the following parameters:\n  
\ - cuisine: {cuisine}\n - num\_people: {num\_people}\n - outdoor\_seating: {outdoor\_seating}\n  
\ - preferences: {preferences}\n - feedback: {feedback}”

Code in stories.md

## happy path

- greet
  - utter\_greet

- request\_restaurant
  - restaurant\_form
  - form{“name”: “restaurant\_form”}
  - form{“name”: null}
  - utter\_slots\_values\_restaurant

Here’s some of the output: 2019-11-01 16:54:28 WARNING rasa.core.domain - 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. 2019-11-01 16:54:28 WARNING rasa.core.domain - 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. Processed Story Blocks: 100%|█████████████████████████████████████████████████████████████████████████████| 12/12 [00:00\<00:00, 222.95it/s, # trackers=9] Processed trackers: 100%|████████████████████████████████████████████████████████████████████████████████| 12/12 [00:00\<00:00, 1198.26it/s, # actions=55] Processed actions: 0it [00:00, ?it/s, # examples=8]Traceback (most recent call last): File “/usr/local/lib/python3.6/dist-packages/rasa/core/domain.py”, line 400, in index\_for\_action return self.action\_names.index(action\_name) ValueError: ‘utter\_slots\_values’ is not in list

```
During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/bin/rasa", line 11, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.6/dist-packages/rasa/ __main__.py", line 76, in main
    cmdline_arguments.func(cmdline_arguments)
  File "/usr/local/lib/python3.6/dist-packages/rasa/cli/train.py", line 76, in train
    kwargs=extract_additional_arguments(args),
  File "/usr/local/lib/python3.6/dist-packages/rasa/train.py", line 45, in train
    kwargs=kwargs,
  File "uvloop/loop.pyx", line 1417, in uvloop.loop.Loop.run_until_complete
  File "/usr/local/lib/python3.6/dist-packages/rasa/train.py", line 96, in train_async
    kwargs,
  File "/usr/local/lib/python3.6/dist-packages/rasa/train.py", line 182, in _train_async_internal
    kwargs=kwargs,
  File "/usr/local/lib/python3.6/dist-packages/rasa/train.py", line 217, in _do_training
    kwargs=kwargs,
  File "/usr/local/lib/python3.6/dist-packages/rasa/train.py", line 346, in _train_core_with_validated_data
    kwargs=kwargs,
  File "/usr/local/lib/python3.6/dist-packages/rasa/core/train.py", line 67, in train
    agent.train(training_data, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/rasa/core/agent.py", line 687, in train
    self.policy_ensemble.train(training_trackers, self.domain, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/rasa/core/policies/ensemble.py", line 127, in train
    policy.train(training_trackers, domain, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/rasa/core/policies/memoization.py", line 162, in train
    self._add_states_to_lookup(trackers_as_states, trackers_as_actions, domain)
  File "/usr/local/lib/python3.6/dist-packages/rasa/core/policies/memoization.py", line 109, in _add_states_to_lookup
    feature_item = domain.index_for_action(action)
  File "/usr/local/lib/python3.6/dist-packages/rasa/core/domain.py", line 402, in index_for_action
    self._raise_action_not_found_exception(action_name)
  File "/usr/local/lib/python3.6/dist-packages/rasa/core/domain.py", line 411, in _raise_action_not_found_exception
    "".format(action_name, action_names)
NameError: Cannot access action 'utter_slots_values', as that name is not a registered action for this domain.
```

---

<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:** [November 4, 2019, 9:23am UTC](https://forum.rasa.com/t/in-formbot-example-changed-name-of-function-and-rasa-train-continues-to-look-for-old-function-name/20781/2 "2019-11-04T09:23:28Z")

</div>

Did you also update the name of the template in the `actions` sections in the `domain.yml`?

---

<div class="post-metadata">

**Author:** ![d7x](https://avatars.discourse-cdn.com/v4/letter/d/8baadc/32.png) [@d7x](https://forum.rasa.com/u/d7x)\
**Post date:** [November 4, 2019, 2:42pm UTC](https://forum.rasa.com/t/in-formbot-example-changed-name-of-function-and-rasa-train-continues-to-look-for-old-function-name/20781/3 "2019-11-04T14:42:07Z")

</div>

I just found the issue - while I did update the name of the template, there were other references that I found. When I updated them to the new action name, rasa train worked perfectly. Thanks!
