NameError: Cannot access action '', as that name is not a registered action for this domain. Available actions are:

I was trying to add new intent called night in starter pack rasa , stories.md, nlu_data.md, domain.yml following error occured

(rasa2) ajinkya@VirtualBox:~/starter-pack-rasa-stack$ make train-core

python -m rasa_core.train -d domain.yml -s data/stories.md -o models/current/dialogue -c policies.yml /home/ajinkya/anaconda3/lib/python3.6/site-packages/h5py/init.py:34: FutureWarning: Conversion of the second argument of issubdtype from float to np.floating is deprecated. In future, it will be treated as np.float64 == np.dtype(float).type. from ._conv import register_converters as _register_converters /home/ajinkya/anaconda3/lib/python3.6/site-packages/pykwalify/core.py:99: UnsafeLoaderWarning: The default ‘Loader’ for ‘load(stream)’ without further arguments can be unsafe. Use ‘load(stream, Loader=ruamel.yaml.Loader)’ explicitly if that is OK. Alternatively include the following in your code:

import warnings warnings.simplefilter(‘ignore’, ruamel.yaml.error.UnsafeLoaderWarning)

In most other cases you should consider using ‘safe_load(stream)’ data = yaml.load(stream) /home/ajinkya/anaconda3/lib/python3.6/site-packages/rasa_core/training/dsl.py:246: UserWarning: Failed to parse action line ‘’. Ignoring this line. “Ignoring this line.”.format(line)) Processed Story Blocks: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 7/7 [00:00<00:00, 4625.10it/s, # trackers=1] Processed Story Blocks: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 7/7 [00:00<00:00, 377.42it/s, # trackers=7] Processed Story Blocks: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 7/7 [00:00<00:00, 86.55it/s, # trackers=44] Processed Story Blocks: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 7/7 [00:00<00:00, 86.99it/s, # trackers=35] Traceback (most recent call last): File “/home/ajinkya/anaconda3/lib/python3.6/site-packages/rasa_core/domain.py”, line 314, in index_for_action return self.action_names.index(action_name) ValueError: ‘’ is not in list

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File “/home/ajinkya/anaconda3/lib/python3.6/runpy.py”, line 193, in _run_module_as_main “main”, mod_spec) File “/home/ajinkya/anaconda3/lib/python3.6/runpy.py”, line 85, in _run_code exec(code, run_globals) File “/home/ajinkya/anaconda3/lib/python3.6/site-packages/rasa_core/train.py”, line 358, in additional_args) File “/home/ajinkya/anaconda3/lib/python3.6/site-packages/rasa_core/train.py”, line 273, in do_default_training kwargs=additional_arguments) File “/home/ajinkya/anaconda3/lib/python3.6/site-packages/rasa_core/train.py”, line 197, in train_dialogue_model agent.train(training_data, **kwargs) File “/home/ajinkya/anaconda3/lib/python3.6/site-packages/rasa_core/agent.py”, line 536, in train **kwargs) File “/home/ajinkya/anaconda3/lib/python3.6/site-packages/rasa_core/policies/ensemble.py”, line 67, in train policy.train(training_trackers, domain, **kwargs) File “/home/ajinkya/anaconda3/lib/python3.6/site-packages/rasa_core/policies/keras_policy.py”, line 154, in train **kwargs) File “/home/ajinkya/anaconda3/lib/python3.6/site-packages/rasa_core/policies/policy.py”, line 74, in featurize_for_training domain) File “/home/ajinkya/anaconda3/lib/python3.6/site-packages/rasa_core/featurizers.py”, line 406, in featurize_trackers y = self._featurize_labels(trackers_as_actions, domain) File “/home/ajinkya/anaconda3/lib/python3.6/site-packages/rasa_core/featurizers.py”, line 373, in _featurize_labels for action in tracker_actions] File “/home/ajinkya/anaconda3/lib/python3.6/site-packages/rasa_core/featurizers.py”, line 373, in for action in tracker_actions] File “/home/ajinkya/anaconda3/lib/python3.6/site-packages/rasa_core/featurizers.py”, line 62, in action_as_one_hot y[domain.index_for_action(action)] = 1 File “/home/ajinkya/anaconda3/lib/python3.6/site-packages/rasa_core/domain.py”, line 316, in index_for_action self._raise_action_not_found_exception(action_name) File “/home/ajinkya/anaconda3/lib/python3.6/site-packages/rasa_core/domain.py”, line 325, in _raise_action_not_found_exception “”.format(action_name, action_names)) NameError: Cannot access action ‘’, as that name is not a registered action for this domain. Available actions are: - action_listen - action_restart - action_default_fallback - action_deactivate_form - utter_name - utter_thanks - utter_greet - utter_goodbye - action_joke - utter_goodnight Makefile:31: recipe for target ‘train-core’ failed make: *** [train-core] Error 1

Can you share your domain.yml file ?

domain.yml (498 Bytes)

domain.yml (767 Bytes)

there are two domain.yml file. I have updated both files