Importing the following yml fails. With UUID it wants to be deleted. After removing the UUID it fails with field type doesn't exist. Any ideas? Is there some kind of order that might make the import fail.
uuid: null
langcode: de
status: true
dependencies:
config:
- field.storage.node.comment_forum
- node.type.forum
module:
- comment
_core:
default_config_hash: Tqw7kBEqm9_VZSK9bsNBAgJqAmJGP6cKEzXtf_KlqBo
id: node.forum.comment_forum
field_name: comment_forum
entity_type: node
bundle: forum
label: Comments
description: ''
required: true
translatable: true
default_value:
-
status: 2
cid: 0
last_comment_name: null
last_comment_timestamp: 0
last_comment_uid: 0
comment_count: 0
default_value_callback: ''
settings:
default_mode: 1
per_page: 30
form_location: true
anonymous: 0
preview: 1
field_type: comment
After doing a drush cex and reverting the affected file I now only have left those two lines when doing a drush cim. So the field seems to be created and deleted again. I can't find any config that is triggering that delete. Any clue?
uuid
line and remove the_core: default_config_hash
lines as well. For an existing field, I would try to export the field from the system you're trying to import to and then replace the lines above (uuid
and_core: default_config_hash
) with the lines from the exported field. (Definitely backup your db first though)The import failed due to the following reasons: Unexpected error during import with operation update for field.field.node.forum.comment_forum: Unable to determine class for field type '' found in the 'field.field.' configuration