Cannot find required key 'mappings'. Path: '/slots/place'

version: “3.1”

session_config: session_expiration_time: 60 carry_over_slots_to_new_session: true

intents:

  • greet
  • goodbye
  • affirm
  • deny
  • mood_great
  • mood_unhappy
  • bot_challenge
  • university_hours
  • admission_process
  • admission_no
  • courses

entities:

  • name
  • university slots: place: type: text influence_conversation: true mapping:
    • type: from_entity entity: university

person: type: text influence_conversation: true mapping: - type: from_entity entity: name

the error:

YamlValidationException: Failed to validate ‘C:\schoolproject\universitybot\domain.yml’. Please make sure the file is correct and all mandatory parameters are specified. Here are the errors found during validation: in C:\schoolproject\universitybot\domain.yml:25: Cannot find required key ‘mappings’. Path: ‘/slots/place’ in C:\schoolproject\universitybot\domain.yml:32: Cannot find required key ‘mappings’. Path: ‘/slots/person’

(environ) C:\schoolproject\universitybot>rasa train YamlValidationException: Failed to validate ‘C:\schoolproject\universitybot\domain.yml’. Please make sure the file is correct and all mandatory parameters are specified. Here are the errors found during validation: in C:\schoolproject\universitybot\domain.yml:25: Cannot find required key ‘mappings’. Path: ‘/slots/place’ in C:\schoolproject\universitybot\domain.yml:32: Cannot find required key ‘mappings’. Path: ‘/slots/person’

don’t know where i’m wrong… please help

Hi @MESHEmugles, it might be a syntax problem. You can validate your domain file here, https://yamlchecker.com.

it shows it is valid… but not working at my end

you have a spelling error…change mapping to mappings