# Migration issue : "rasa data convert config" ends up with an error

**URL:** <https://forum.rasa.com/t/migration-issue-rasa-data-convert-config-ends-up-with-an-error/37422>\
**Category:** Rasa Open Source\
**Created:** [November 26, 2020, 7:10am UTC](https://forum.rasa.com/t/migration-issue-rasa-data-convert-config-ends-up-with-an-error/37422 "2020-11-26T07:10:37Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bhanu](https://avatars.discourse-cdn.com/v4/letter/b/eb9ed0/32.png) [@Bhanu](https://forum.rasa.com/u/Bhanu)\
**Post date:** [November 26, 2020, 7:10am UTC](https://forum.rasa.com/t/migration-issue-rasa-data-convert-config-ends-up-with-an-error/37422/1 "2020-11-26T07:10:37Z")

</div>

(vlogs\_v2) [root form\_bot\_v6]# rasa data convert config

Your model configuration contains the ‘FormPolicy’. Note that this command does not migrate the ‘FormPolicy’ and you have to migrate the ‘FormPolicy’ manually. Please see the migration guide for further details: [Version Migration Guide](https://rasa.com/docs/rasa/migration-guide) 2020-11-26 06:54:18 INFO rasa.shared.utils.validation - The ‘version’ key is missing in the training data file /rasa/bots\_v2/form\_bot\_v6/domain.yml. Rasa Open Source will read the file as a version ‘2.0’ file. See [Training Data Format](https://rasa.com/docs/rasa/training-data-format). /rasa/anaconda3/envs/vlogs\_v2/lib/python3.6/site-packages/rasa/shared/core/slots.py:262: FutureWarning: UnfeaturizedSlot is deprecated and will be removed in Rasa Open Source 3.0. Please change the type and configure the ‘influence\_conversation’ flag for slot ‘requested\_slot’ instead. category=FutureWarning, /rasa/anaconda3/envs/vlogs\_v2/lib/python3.6/site-packages/rasa/shared/core/domain.py:616: FutureWarning: The `forms` section in the domain used the old Rasa Open Source 1 list format to define forms. Rasa Open Source will be configured to use the deprecated `FormAction` within the Rasa SDK. If you want to use the new Rasa Open Source 2 `FormAction` adapt your `forms` section as described in the documentation. Support for the deprecated `FormAction` in the Rasa SDK will be removed in Rasa Open Source 3.0. category=FutureWarning, Output file ‘data/rules.yml’ did not exist and will be created. Migrating the ‘MappingPolicy’. Migrating the ‘FallbackPolicy’. Traceback (most recent call last): File “/rasa/anaconda3/envs/vlogs\_v2/bin/rasa”, line 8, in sys.exit(main()) File “/rasa/anaconda3/envs/vlogs\_v2/lib/python3.6/site-packages/rasa/ **main**.py”, line 116, in main cmdline\_arguments.func(cmdline\_arguments) File “/rasa/anaconda3/envs/vlogs\_v2/lib/python3.6/site-packages/rasa/cli/data.py”, line 459, in \_migrate\_model\_config model\_configuration File “/rasa/anaconda3/envs/vlogs\_v2/lib/python3.6/site-packages/rasa/core/config.py”, line 81, in migrate\_fallback\_policies \_update\_fallback\_config(new\_config, fallback\_config) File “/rasa/anaconda3/envs/vlogs\_v2/lib/python3.6/site-packages/rasa/core/config.py”, line 135, in \_update\_fallback\_config FallbackClassifier. **name** , config.get(“pipeline”, []) File “/rasa/anaconda3/envs/vlogs\_v2/lib/python3.6/site-packages/rasa/core/config.py”, line 103, in \_get\_config\_for\_name (config for config in config\_part if config.get(“name”) == component\_name), {} File “/rasa/anaconda3/envs/vlogs\_v2/lib/python3.6/site-packages/rasa/core/config.py”, line 103, in (config for config in config\_part if config.get(“name”) == component\_name), {} AttributeError: ‘str’ object has no attribute ‘get’

---

<div class="post-metadata">

**Author:** ![kearnsw](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/kearnsw/32/4838_2.png) [@kearnsw](https://forum.rasa.com/u/kearnsw)\
**Post date:** [November 26, 2020, 3:22pm UTC](https://forum.rasa.com/t/migration-issue-rasa-data-convert-config-ends-up-with-an-error/37422/2 "2020-11-26T15:22:30Z")

</div>

Can you post your config.yml file?

---

<div class="post-metadata">

**Author:** ![Bhanu](https://avatars.discourse-cdn.com/v4/letter/b/eb9ed0/32.png) [@Bhanu](https://forum.rasa.com/u/Bhanu)\
**Post date:** [November 26, 2020, 7:43pm UTC](https://forum.rasa.com/t/migration-issue-rasa-data-convert-config-ends-up-with-an-error/37422/3 "2020-11-26T19:43:46Z")

</div>

[config.yml](https://forum.rasa.com/uploads/short-url/reoVJzC5cN60bRlJOagW2bcU7Ef.yml) (268 Bytes)

---

<div class="post-metadata">

**Author:** ![kearnsw](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/kearnsw/32/4838_2.png) [@kearnsw](https://forum.rasa.com/u/kearnsw)\
**Post date:** [November 26, 2020, 8:53pm UTC](https://forum.rasa.com/t/migration-issue-rasa-data-convert-config-ends-up-with-an-error/37422/4 "2020-11-26T20:53:26Z")

</div>

The only thing that sticks out to me is that pipeline templates, e.g. `supervised_embeddings` were all deprecated even before the update to 2.0. Since your config looks pretty standard, I’d suggest starting with the new default config instead of trying to convert your old one. Here is the new default config for convenience:

```auto

language: en

pipeline:
# # No configuration for the NLU pipeline was provided. The following default pipeline was used to train your model.
# # If you'd like to customize it, uncomment and adjust the pipeline.
# # See https://rasa.com/docs/rasa/tuning-your-model for more information.
# - name: WhitespaceTokenizer
# - name: RegexFeaturizer
# - name: LexicalSyntacticFeaturizer
# - name: CountVectorsFeaturizer
# - name: CountVectorsFeaturizer
# analyzer: char_wb
# min_ngram: 1
# max_ngram: 4
# - name: DIETClassifier
# epochs: 100
# - name: EntitySynonymMapper
# - name: ResponseSelector
# epochs: 100
# - name: FallbackClassifier
# threshold: 0.3
# ambiguity_threshold: 0.1

policies:
- name: MemoizationPolicy
- name: TEDPolicy
  max_history: 5
  epochs: 10

```

---

<div class="post-metadata">

**Author:** ![Bhanu](https://avatars.discourse-cdn.com/v4/letter/b/eb9ed0/32.png) [@Bhanu](https://forum.rasa.com/u/Bhanu)\
**Post date:** [November 27, 2020, 6:23am UTC](https://forum.rasa.com/t/migration-issue-rasa-data-convert-config-ends-up-with-an-error/37422/5 "2020-11-27T06:23:06Z")

</div>

Thanks for taking out time and trying to resolve it.

Yeah… I was also thinking of doing it manually… but I don’t think error is because of the pipeline template as the error is coming while migrating the fallback policy.

---

<div class="post-metadata">

**Author:** ![kearnsw](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/kearnsw/32/4838_2.png) [@kearnsw](https://forum.rasa.com/u/kearnsw)\
**Post date:** [November 27, 2020, 2:44pm UTC](https://forum.rasa.com/t/migration-issue-rasa-data-convert-config-ends-up-with-an-error/37422/6 "2020-11-27T14:44:41Z")

</div>

It looks like the Fallback Policy needs to be manually migrated to a number of different locations:

> **[Version Migration Guide](https://rasa.com/docs/rasa/migration-guide/#manually-migrating-from-the-fallback-policy)**
>
> Information about changes between major versions of chatbot framework Rasa Core
> and how you can migrate from one version to another.

Which requires the following updates to the config (note it is added to both policies and pipeline):

```yaml

policies:
  # Other policies
  - name: RulePolicy
    core_fallback_threshold: 0.3
    core_fallback_action_name: "action_default_fallback"

pipeline:
  # Other components
  - name: FallbackClassifier
    threshold: 0.4
    ambiguity_threshold: 0.1

```

and rules.yml:

```yaml

rules:
  - rule: Ask the user to rephrase whenever they send a message with low NLU confidence
    steps:
    - intent: nlu_fallback
    - action: utter_please_rephrase

```

I still don’t believe you’ll be able to convert the file due to the pipeline template, so you’ll want to remove that as well.

---

<div class="post-metadata">

**Author:** ![BelenAleman](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/belenaleman/32/13902_2.png) [@BelenAleman](https://forum.rasa.com/u/BelenAleman)\
**Post date:** [February 26, 2024, 10:28am UTC](https://forum.rasa.com/t/migration-issue-rasa-data-convert-config-ends-up-with-an-error/37422/7 "2024-02-26T10:28:08Z")

</div>

I would like to share the following Python script that facilitates the migration process from Dialogflow to Rasa Open Source.

> **[GitHub - 1millionbot/rasa-migration-df](https://github.com/1millionbot/rasa-migration-df)**
>
> Contribute to 1millionbot/rasa-migration-df development by creating an account on GitHub.

Feel free to test it and share any comment/issue/improvement

Best,

Belén
