# Settings export/import

**URL:** <https://meta.discourse.org/t/settings-export-import/174480>\
**Category:** Bug\
**Created:** [December 29, 2020, 8:40am UTC](https://meta.discourse.org/t/settings-export-import/174480 "2020-12-29T08:40:59Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)\
**Post date:** [December 29, 2020, 8:40am UTC](https://meta.discourse.org/t/settings-export-import/174480/1 "2020-12-29T08:40:59Z")

</div>

Nothing really big, but I ran into a small issue using `site_settings:import` and it bit me _hard_.  
There is an easy 'n ugly workaround (run the rake task twice) but this is typically something that is being run unattended so I did not see the error at first.

(Part of) exported settings file (`site_settings:export`)

```
sso_overrides_email: 'true'
email_editable: 'false'

```

Importing that file into another forum:

```
ERROR: sso_overrides_email: You must disable 'email editable' before enabling this setting.
Changed email_editable FROM: t TO: false

```

The second run does of course pick up the setting:

`Changed sso_overrides_email FROM: f TO: true`

Possible solutions:

- Live with it and just run the import rake task twice
- Export settings in `updated_at` order
- Have the rake task run the import twice
- Disable this kind of checks when importing from a file

---

_[View the full topic](https://meta.discourse.org/t/settings-export-import/174480)._
