I have a form on a development box that I need to migrate into a production environment. The Drupal installs are nearly identical between the two.
When I attempt to export/import the form from dev to production, I get the following error.
The configuration cannot be imported because it failed validation for the following reasons:
Configuration globalredirect.settings depends on the globalredirect extension that will not be installed after import.
Configuration system.action.user_add_role_action.administrator1 depends on the user.role.administrator1 configuration that will not exist after import.
Configuration system.action.user_add_role_action.editor1 depends on the user.role.editor1 configuration that will not exist after import.
Configuration system.action.user_remove_role_action.administrator1 depends on the user.role.administrator1 configuration that will not exist after import.
Configuration system.action.user_remove_role_action.editor1 depends on the user.role.editor1 configuration that will not exist after import.
As a test I attempted to import this same form config into my dev box (as a duplicate), the same error was thrown.
Please advise.
Comments
Comment #2
ksavoie commentedComment #3
jrockowitz commentedThis feels like a more general support question and should be posted to https://drupal.stackexchange.com/questions/tagged/webforms.
I would make sure all the missing config is installed on the remote server via (/admin/config/development/configuration)
Comment #4
ksavoie commentedIf that were the case shouldn't I have been able to import the form onto the same install it came from?
The import failed the same on both the Prod. box and when imported on the Dev box it came from.
Comment #5
jrockowitz commentedStill sound like a configuration management issue and not a webform specific issue.
Comment #6
ksavoie commentedThanks Jacob.
You are correct, my database had orphaned configuration settings that were generated years ago when migrating from a D7 site to D8. I never knew they were there and they never caused an issue until now.
After a manual cleanup of the 'config' table I was able to successfully import the form.
Thanks for your prompt response!
Comment #7
jrockowitz commented