Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
i'm trying to migrate data from a .csv file using the modules migrate tools, migrate plus and migrate csv but i get the following error:
"The configuration cannot be imported because it failed validation for the following reasons:
Configuration THEMENAME.settings depends on the THEMENAME extension that will not be installed after import."
Comment | File | Size | Author |
---|---|---|---|
Capture du 2017-05-11 18-07-31.png | 113.04 KB | zchokri |
Comments
Comment #2
zchokri CreditAttribution: zchokri commentedComment #3
mikeryanIt appears you're getting that error when importing configuration, not when running migration? What does the .yml you're importing look like?
Comment #4
zchokri CreditAttribution: zchokri commentedyes when importing configuration
Comment #5
mikeryanI'm not sure where to move this issue - it doesn't appear to have anything to do with migrate_plus (or, really, migration at all). I guess core configuration management is closest...
You're using the configuration UI to import some YAML and getting an error message that has nothing to do with the YAML you're trying to import. I'm perplexed, maybe some configuration management expert might hazard a guess...
Comment #6
TigerWhite CreditAttribution: TigerWhite commentedI have the same issue ...
zchokri Have you resolved it?
Comment #7
zchokri CreditAttribution: zchokri commentedYes
You must delete the the THEMENAME config, you can use drush to delete it with the command : " drush config-delete THEMENAME.settings "
Comment #9
james917 CreditAttribution: james917 commentedI deleted THEMENAME config but I am still getting the same errors
Comment #10
GiorgosKYou can delete config from database if have not exported yet so it does not give you trouble later
or you can delete from export directory when importing and gives you the trouble mentioned above
I believe this happens because bootstrap has the starterkits with this particular config install for example in
themes/contrib/bootstrap/starterkits/less/config/install/THEMENAME.settings.yml
but is this a bug of bootstrap or core ? what does this setting get into the database in the first place ?
Here is a discussion for it on bootstrap issue queue #2706711: Configuration THEMENAME.settings depends on the THEMENAME theme that will not be installed after import.
Comment #11
renus09 CreditAttribution: renus09 commentedHi,
I am also getting error while importing a view single item from dev to stage environment drupal8-
The configuration cannot be imported because it failed validation for the following reasons:
Configuration block.block.block depends on the
Theme theme that will not be installed after import.
Configuration block.block.block103 depends on the
Theme theme that will not be installed after import.
Configuration block.block.block104 depends on the
Theme theme that will not be installed after import.
Configuration block.block.block105 depends on the
Theme theme that will not be installed after import.
Please suggest how to overcome this issue.
Comment #12
aquaphenixI ran into a similar issue as described on #11,
Configuration block "block.block.views_block__featured_content_featured_content_block" depends on the theme that will not be installed after import. Looking at the block.block.views_block__featured_content_featured_content_block.yml file the theme value is set to null. For some reason the value was not set correctly, updated to the correct installed theme and running again drush cim fix the issue for me.
Comment #13
lukusI'm experiencing the same problem.