When migrating from d7 using drush I get

Upgrading upgrade_contact_category
"Attempt to create a bundle with an ID longer than 32 characters: contact_the_builder_of_this_site1()."

Perhaps a truncate plugin could be added to
contact/migration_templates/contact_category.yml?
Although that would create the (much lesser) risk of duplicates

Comments

matslats created an issue. See original summary.

heddn’s picture

Status: Active » Postponed (maintainer needs more info)

I'm pretty sure we fixed this in the past few years. Can someone confirm?

quietone’s picture

Yes, this has been fixed, sort of.
The migration now has this, which will limit the length of the id. However, is uses a length of 32 and should be less than 32, to allow characters for the string that makes the field unique. Thats because te MakeUniqueBase process plugin gets the substr using length before adding the string that makes it unque.

  id:
    -
      plugin: machine_name
      source: category
    -
      plugin: make_unique_entity_field
      entity_type: contact_form
      field: id
      length: 32

This length was added in #2247903: Add a substr options to DedupeBase process plugin to several migrations.

So, I think this can be close and we open an issue to check all the migrations that use length 32. Of course make_unique_entity_field should also be a bit smarter. Made a new issue to look into that #3046397: Change length in make_unique_entity_field to less than 32

quietone’s picture

Status: Postponed (maintainer needs more info) » Closed (outdated)

Closing