Getting an error "Tried to set non-existent slot ‘requested_slot’ when running interactive mode.
2019-06-21 16:09:14 ERROR rasa.core.trackers - Tried to set non existent slot 'requested_slot'. Make sure you added all your slots to your domain file.
Any reason why this happens? I’m training for form.
intents:
- Integration
- affirm
- deny
- goodbye
- greet
- inform
- initial_choice
- need_help
- stop
- thankyou
entities:
- CARDINAL
- actionName
- choice
- component
- number
- number_partition
- number_partitions
- question
- resourceName
- size_partition
- size_partitions
- user_input
slots:
actionName:
type: unfeaturized
auto_fill: false
choice:
type: unfeaturized
auto_fill: false
component:
type: unfeaturized
auto_fill: false
number_partition:
type: unfeaturized
auto_fill: false
question:
type: unfeaturized
auto_fill: false
requested_slot:
type: unfeaturized
resourceName:
type: unfeaturized
auto_fill: false
size_partition:
type: unfeaturized
auto_fill: false
templates:
utter_ask_actionName:
- text: "Which action do you want to know about?\n Example- integration"
utter_ask_component:
- text: In which component do you want to perform {actionName}
utter_ask_continue:
- text: Do you want to continue?
utter_ask_number_partition:
- text: What is the number of partitions that you would like to add?
utter_ask_question:
- text: What would you like to know?
utter_ask_resourceName:
- text: Which resource would you like to add to RM?
utter_ask_size_partition:
- text: What would be the size of the partitions?
utter_default:
- text: Sorry, I didn't understand you, please try input something else
utter_fallback:
- text: ' Invalid answer, please try again '
utter_goodbye:
- text: Hope I was able to help you! GoodBye!
utter_greet:
- text: "Hey! I am the Platform Chat Bot!\nWhat can I help you with-\n1. Component\
\ Information\nExample - 'Help me integrate CAL'\n2. Adding a resource to Resource\
\ Manager\n3. FAQ\n4. Exit"
utter_noworries:
- text: Thanks for contacting! Goodbye! :)
utter_submit:
- text: "\nI hope I was able to process your request. You can continue by choosing\
\ one amongst the following options-\n1. Component Information\nExample - 'Help\
\ me integrate CAL'\n2. Adding a resource to Resource Manager\n3. FAQ\n4. Exit"
utter_wait:
- text: Please wait while I process your request!
utter_wrong_resource:
- text: The resource that you are trying to add already exists!
actions:
- utter_ask_continue
- utter_ask_number_partition
- utter_ask_question
- utter_ask_resourceName
- utter_ask_size_partition
- utter_fallback
- utter_goodbye
- utter_greet
- utter_noworries
- utter_submit
- utter_wait
- utter_wrong_resource
forms:
- initial_choice_form
but then in my actions file, I am unable to do the function tracker.get_slot(‘selected_dimensions’) . I get this error (in rasa run actions) when I take the value from the slot.
NameError: name 'select_dimensions' is not defined
Would anyone have an inkling of what’s wrong and how I can fix the problem?
I am also getting the same error, even though the slots are available in the domain.yml file but still error is getting generated.
Kindly suggest how to resolve this issue.
Despite the error, the function is able to extract the slot at the end. I am thinking we should leave the error as it is… if anyone figured it out please tell.
try to check formating on rules.yml, domain.yml, and stories.yml. Last time i got that error because missformat in stories.yml but the error mention domain.yml