Rasa 3.x YamlValidationException: Failed to validate

Hi,I’m testing rasa 3 X financial case encountered an error, can you help support it?

(installingrasa) E:\starspace\GavinNLP\2022_rasa_example\financial-demo-main>rasa --version
Rasa Version      :         3.0.6
Minimum Compatible Version: 3.0.0
Rasa SDK Version  :         3.0.4
Rasa X Version    :         None
Python Version    :         3.8.8
Operating System  :         Windows-10-10.0.18362-SP0
Python Path       :         e:\anaconda3\envs\installingrasa\python.exe



(installingrasa) E:\starspace\GavinNLP\2022_rasa_example\financial-demo-main> rasa data validate
YamlValidationException: Failed to validate 'E:\starspace\GavinNLP\2022_rasa_example\financial-demo-main\domain.yml'. Please make sure the file is correct
and all mandatory parameters are specified. Here are the errors found during validation:
  in E:\starspace\GavinNLP\2022_rasa_example\financial-demo-main\domain.yml:47:
      Cannot find required key 'mappings'. Path: '/slots/AA_CONTINUE_FORM'
  in E:\starspace\GavinNLP\2022_rasa_example\financial-demo-main\domain.yml:50:
      Cannot find required key 'mappings'. Path: '/slots/PERSON'
  in E:\starspace\GavinNLP\2022_rasa_example\financial-demo-main\domain.yml:53:
      Cannot find required key 'mappings'. Path: '/slots/account_type'
  in E:\starspace\GavinNLP\2022_rasa_example\financial-demo-main\domain.yml:56:
      Cannot find required key 'mappings'. Path: '/slots/amount-of-money'
  in E:\starspace\GavinNLP\2022_rasa_example\financial-demo-main\domain.yml:59:
      Cannot find required key 'mappings'. Path: '/slots/amount_transferred'
  in E:\starspace\GavinNLP\2022_rasa_example\financial-demo-main\domain.yml:63:
      Cannot find required key 'mappings'. Path: '/slots/credit_card'
  in E:\starspace\GavinNLP\2022_rasa_example\financial-demo-main\domain.yml:66:
      Cannot find required key 'mappings'. Path: '/slots/currency'
  in E:\starspace\GavinNLP\2022_rasa_example\financial-demo-main\domain.yml:70:
      Cannot find required key 'mappings'. Path: '/slots/end_time'
  in E:\starspace\GavinNLP\2022_rasa_example\financial-demo-main\domain.yml:73:
      Cannot find required key 'mappings'. Path: '/slots/end_time_formatted'
  in E:\starspace\GavinNLP\2022_rasa_example\financial-demo-main\domain.yml:76:
      Cannot find required key 'mappings'. Path: '/slots/grain'
  in E:\starspace\GavinNLP\2022_rasa_example\financial-demo-main\domain.yml:79:
      Cannot find required key 'mappings'. Path: '/slots/handoff_to'
  in E:\starspace\GavinNLP\2022_rasa_example\financial-demo-main\domain.yml:82:
      Cannot find required key 'mappings'. Path: '/slots/next_form_name'
  in E:\starspace\GavinNLP\2022_rasa_example\financial-demo-main\domain.yml:85:
      Cannot find required key 'mappings'. Path: '/slots/number'
  in E:\starspace\GavinNLP\2022_rasa_example\financial-demo-main\domain.yml:88:
      Cannot find required key 'mappings'. Path: '/slots/payment_amount_type'
  in E:\starspace\GavinNLP\2022_rasa_example\financial-demo-main\domain.yml:92:
      Cannot find required key 'mappings'. Path: '/slots/previous_form_name'
  in E:\starspace\GavinNLP\2022_rasa_example\financial-demo-main\domain.yml:95:
      Cannot find required key 'mappings'. Path: '/slots/repeated_validation_failures'
  in E:\starspace\GavinNLP\2022_rasa_example\financial-demo-main\domain.yml:98:
      Cannot find required key 'mappings'. Path: '/slots/requested_slot'
  in E:\starspace\GavinNLP\2022_rasa_example\financial-demo-main\domain.yml:101:
      Cannot find required key 'mappings'. Path: '/slots/search_type'
  in E:\starspace\GavinNLP\2022_rasa_example\financial-demo-main\domain.yml:104:
      Cannot find required key 'mappings'. Path: '/slots/start_time'
  in E:\starspace\GavinNLP\2022_rasa_example\financial-demo-main\domain.yml:107:
      Cannot find required key 'mappings'. Path: '/slots/start_time_formatted'
  in E:\starspace\GavinNLP\2022_rasa_example\financial-demo-main\domain.yml:110:
      Cannot find required key 'mappings'. Path: '/slots/time'
  in E:\starspace\GavinNLP\2022_rasa_example\financial-demo-main\domain.yml:113:
      Cannot find required key 'mappings'. Path: '/slots/time_formatted'
  in E:\starspace\GavinNLP\2022_rasa_example\financial-demo-main\domain.yml:116:
      Cannot find required key 'mappings'. Path: '/slots/vendor_name'
  in E:\starspace\GavinNLP\2022_rasa_example\financial-demo-main\domain.yml:119:
      Cannot find required key 'mappings'. Path: '/slots/zz_confirm_form'
  in E:\starspace\GavinNLP\2022_rasa_example\financial-demo-main\domain.yml:284:
      Value 'ordereddict([('AA_CONTINUE_FORM', [ordereddict([('intent', 'affirm'), ('type', 'from_intent'), ('value', 'yes')]), ordereddict([('intent', 'de
ny'), ('type', 'from_intent'), ('value', 'no')]), ordereddict([('intent', ['inform', 'cc_payment_form']), ('type', 'from_text')])]), ('credit_card', [order
eddict([('entity', 'credit_card'), ('type', 'from_entity')]), ordereddict([('intent', ['inform', 'cc_payment_form']), ('type', 'from_text')])]), ('amount-o
f-money', [ordereddict([('entity', 'amount-of-money'), ('not_intent', ['check_balance', 'check_earnings']), ('type', 'from_entity')]), ordereddict([('entit
y', 'number'), ('not_intent', ['check_balance', 'check_earnings']), ('type', 'from_entity')]), ordereddict([('intent', ['inform', 'cc_payment_form']), ('ty
pe', 'from_text')])]), ('time', [ordereddict([('entity', 'time'), ('type', 'from_entity')]), ordereddict([('intent', ['inform', 'cc_payment_form']), ('type
', 'from_text')])]), ('zz_confirm_form', [ordereddict([('intent', 'affirm'), ('type', 'from_intent'), ('value', 'yes')]), ordereddict([('intent', 'deny'),
('type', 'from_intent'), ('value', 'no')]), ordereddict([('intent', ['inform', 'cc_payment_form']), ('type', 'from_text')])])])' is not a list. Value path:
 '/forms/cc_payment_form/required_slots'
  in E:\starspace\GavinNLP\2022_rasa_example\financial-demo-main\domain.yml:337:
      Value 'ordereddict([('AA_CONTINUE_FORM', [ordereddict([('intent', 'affirm'), ('type', 'from_intent'), ('value', 'yes')]), ordereddict([('intent', 'de
ny'), ('type', 'from_intent'), ('value', 'no')]), ordereddict([('intent', ['inform', 'transfer_money_form']), ('type', 'from_text')])]), ('PERSON', [ordere
ddict([('entity', 'PERSON'), ('type', 'from_entity')]), ordereddict([('intent', ['inform', 'transfer_money_form']), ('type', 'from_text')])]), ('amount-of-
money', [ordereddict([('entity', 'amount-of-money'), ('not_intent', ['check_balance', 'check_earnings']), ('type', 'from_entity')]), ordereddict([('entity'
, 'number'), ('not_intent', ['check_balance', 'check_earnings']), ('type', 'from_entity')]), ordereddict([('intent', ['inform', 'transfer_money_form']), ('
type', 'from_text')])]), ('zz_confirm_form', [ordereddict([('intent', 'affirm'), ('type', 'from_intent'), ('value', 'yes')]), ordereddict([('intent', 'deny
'), ('type', 'from_intent'), ('value', 'no')]), ordereddict([('intent', ['inform', 'transfer_money_form']), ('type', 'from_text')])])])' is not a list. Val
ue path: '/forms/transfer_money_form/required_slots'
  in E:\starspace\GavinNLP\2022_rasa_example\financial-demo-main\domain.yml:383:
      Value 'ordereddict([('AA_CONTINUE_FORM', [ordereddict([('intent', 'affirm'), ('type', 'from_intent'), ('value', 'yes')]), ordereddict([('intent', 'de
ny'), ('type', 'from_intent'), ('value', 'no')]), ordereddict([('intent', ['inform', 'transaction_search_form']), ('type', 'from_text')])]), ('search_type'
, [ordereddict([('intent', 'search_transactions'), ('type', 'from_trigger_intent'), ('value', 'spend')]), ordereddict([('intent', 'check_earnings'), ('type
', 'from_trigger_intent'), ('value', 'deposit')]), ordereddict([('type', 'from_entity'), ('entity', 'search_type')])]), ('time', [ordereddict([('entity', '
time'), ('type', 'from_entity')]), ordereddict([('intent', ['inform', 'transaction_search_form']), ('type', 'from_text')])]), ('zz_confirm_form', [orderedd
ict([('intent', 'affirm'), ('type', 'from_intent'), ('value', 'yes')]), ordereddict([('intent', 'deny'), ('type', 'from_intent'), ('value', 'no')]), ordere
ddict([('intent', ['inform', 'transaction_search_form']), ('type', 'from_text')])])])' is not a list. Value path: '/forms/transaction_search_form/required_
slots'

domain.yml (11.8 KB)

Hello @duanzhihua the one you trying to run is developed in 2.X and you are running the boto on 3.X, make the necessary changes in the code as per the latest rasa, you are good to go.

2 Likes

Thank you for your guidance. I ran the data migration command according to the official website documents. The problem has been solved. Thank you


(installingrasa) E:\starspace\GavinNLP\2022_rasa_example\financial-demo-main>rasa data migrate

@duanzhihua great can you please close this thread for your reference and for others. Good Luck!