Serializer error - not a valid bundle type for denormalization

Created on 19 June 2022, almost 3 years ago
Updated 25 September 2024, 6 months ago

Problem/Motivation

When importing content to a new Drupal 9 site from a Drupal 8 site (which had previously been migrated from D7), I get this error which halts the process:

Symfony\Component\Serializer\Exception\UnexpectedValueException: "comment_node_article" is not a valid bundle type for denormalization. in Drupal\serialization\Normalizer\EntityNormalizer->extractBundleData() (line 119 of /[my site root]/core/modules/serialization/src/Normalizer/FieldableEntityNormalizerTrait.php).

I had been able to work around some other errors about some node types not existing, but I don't know how to address this one. Besides, of course, simply removing the comment items from the data to import and then maybe pasting them in later?

Steps to reproduce

Content import from D8.9.20 to D9.4.0 using Content Synchronization 3.0.0-beta1 with content of type "comment.comment_node_article" in the data to be imported.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ’¬ Support request
Status

Active

Version

4.0

Component

Import

Created by

πŸ‡ΊπŸ‡ΈUnited States sjnorton

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024