Issue

This is the error message you see when trying to import configuration on Drupal 8 or 9.

Site UUID in source storage does not match the target storage

 

Solution

Update the site UUID with the following command.

drush cset system.site uuid "[UUID_FROM_CONFIG_FILE]"

Replace UUID_FROM_CONFIG_FILE with the uuid from system.site.yml config file. 

 

Tags