Getting an error "Tried to set non-existent slot 'requested_slot' when running interactive mode

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.

rasa version: 1.1.3, rasa-sdk version: 1.1.0

Hi @lahsuk

could you please provide your domain.yml and your stories.md content?

That would help!

Regards Julian

I am facing a similar issue. My stories.md content is:

    ##manual story1
    * greet
      - utter_greet
    * initial_choice
      - initial_choice_form
      - form{"name": "initial_choice_form"}
      - form{"name": null}
      
    ## start of the form
    * initial_choice
      - initial_choice_form
      - form{"name": "initial_choice_form"}
      - form{"name": null}

And my domain.yml is:

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

hi @JulianGerhard

i have the same issue to can you look into this post… i have mentioned all req things

I’m also facing the same problem. Any updates?

Please send us your form action and your domain

Hello all,

I have updated my version of rasa to the most recent, however it appears that I’m still facing the same problem as the others.

rasa.core.trackers - Tried to set non existent slot 'selected_dimesions'. Make sure you added all your slots to your domain file.

This error will not go away when I run either “rasa train” or “rasa interactive”.

The file domain.yml is as follows:

actions:
- action_menu
- action_get_vendas
- action_get_produtos
- action_ask_filtro
- action_ask_valor
- action_confirm_valor
- action_limpar_filtros
- action_get_faturamento
- action_get_quantidade_vendas
- action_get_preco_medio
- action_get_ticket_medio
- utter_goodbye
entities:
- campo
- filial
- mes
- campo_valor
- selected_dimensions
intents:
- greet
- vendas
- produtos
- filtros
- choose
- limpar_filtros
- faturamento
- quantidade_vendas
- preco_medio
- ticket_medio
- goodbye
- affirm
- thankyou
- deny
responses:
  utter_goodbye:
  - text: Tchau
session_config:
  carry_over_slots_to_new_session: true
  session_expiration_time: 60
slots:
  campo:
    type: unfeaturized
  campo_valor:
    type: unfeaturized
  filial:
    type: unfeaturized
  mes:
    type: unfeaturized
  selected_dimensions:
    type: unfeaturized

Can any one help me with this?

Another thing, when I am using rasa interactive, it will set the slot selected_dimensions

Current slots:
        campo: None, campo_valor: None, filial: None, mes: None, selected_dimensions: {'ano': '2015'}

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?

2020-09-16 12:23:25 ERROR rasa.core.trackers - Tried to set non existent slot 'FetchAPI'. Make sure you added all your slots to your domain file.

Whenever you get this kind of error, delete all files in your models folder and then train your rasa again.

this is issue got fixed…

2 Likes

I’m facing the same issue, but deleting all model files and retraining the model did not help

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.

1 Like

Hi All,

If you all are facing this issue in latest rasa version 2.4 or other than this.

Then define your slot as follows:

slots: slot_name: type: text/list/bool Influence_conversation: true/false

1 Like

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