How can I import the configuration files from different site?

How can I import the configuration files from different site

How to get and set site uuid drupal 8/9?


  When you try to import configuration using "drush cim", you will get the message like this "[error]  Drupal\Core\Config\ConfigImporterException: There were errors validating the config synchronization.
  Site UUID in source storage does not match the target storage."

The Configuration files only allow sync between same site to avoid issues importing configuration from one site to another.
We can import configuration from other websites into yours with Fresh drupal installation. Each Drupal installation uuid is unique.


Install the fresh Drupal version. then follow the below steps.

To Get the "uuid" value using drush:

drush config-get "" uuid


open the file from /config/sync folder, then copy uuid and set it using the below drush command.

Drush cim

To set the "uuid" value using drush:

drush config-set uuid 07fd574c-11cc-4b1b-b37c-83ac2baa18f8 -y


drush cset uuid 907fd574c-11cc-4b1b-b37c-83ac2baa18f8 -y


Add new comment

Restricted HTML

  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id>
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.
12 + 0 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.