Drush Config Import and Export issue

Created on 12 October 2023, about 1 year ago
Updated 13 October 2023, about 1 year ago

1.config form creation - config name is ''game_page_template_form.settings''
2.for the config form, i have created the menu.links.yml and routing.yml file.
3.i have to import the configuration using drush config-import
4.once imported and commited, again i made some changes in any of the configuration.
5. again i run the drush config-import. it showing the error like this..

[error] Drupal\Core\Config\ConfigImporterException: There were errors validating the config synchronization.
Configuration game_page_template_form.settings depends on the game_page_template_form extension that will not be installed after import. in Drupal\Core\Config\ConfigImporter->validate() (line 794 of /var/www/html/web/core/lib/Drupal/Core/Config/ConfigImporter.php).

In ConfigImportCommands.php line 360:

The import failed due to the following reasons:
Configuration game_page_template_form.settings depends on the game_page_template_form extension that will not
be installed after import.

Failed to run drush cim: exit status 1

attached the screenshot.

💬 Support request
Status

Closed: works as designed

Version

9.5

Component
Configuration 

Last updated 1 day ago

Created by

🇮🇳India KalaiyarasiThangavel

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @KalaiyarasiThangavel
  • 🇬🇧United Kingdom longwave UK

    This error means your config declares a dependency on the game_page_template_form module but that module is not enabled in core.extension.yml. Either your module is not enabled or the dependency in the config refers to the wrong module name.

  • 🇮🇳India KalaiyarasiThangavel

    Thanks for the update @longwave.
    But i don't have any module or dependency in the name of "game_page_template_form" . once i have changed the config name, this dependency name also changed. I think this is related to config name...

  • 🇬🇧United Kingdom longwave UK

    What is your custom module name? Your config should be named after that.

  • 🇮🇳India KalaiyarasiThangavel

    Thank You so much @longwave.

    I have added my config name wrongly. actually, the module name is 'game' but i have added the config name is 'game_page_template_form.settings'. that is the problem. Thanks.

  • Status changed to Closed: works as designed about 1 year ago
Production build 0.71.5 2024