Problem/Motivation

Attempt to migrate a D7.72 site with GA 7.x-2.6 to D9.0.5.

Steps to reproduce

Use the migrate UI, or drush migrate:import d7_google_analytics_settings

Observe error message, on the CLI with Drush or in DbLog with the migrate UI

The "migration" plugin does not exist. Valid plugin IDs for Drupal\migrate\Plugin\MigratePluginManager are: block_plugin_id, block_settings, block_visibility, block_region, block_theme, d7_field_type
  _defaults, d7_field_option_translation, d7_field_instance_option_translation, d7_field_instance_settings, d7_field_instance_defaults, d7_field_settings, d6_field_type_defaults, d6_field_option_transl
  ation, d6_field_instance_option_translation, field_formatter_settings_defaults, d6_field_field_settings, field_instance_widget_settings, d6_field_instance_defaults, field_settings, process_field, fie
  ld_type, d7_field_permission_settings, d6_field_file, file_uri, filter_format_permission, filter_id, filter_settings, google_analytics_visibility_pages, google_analytics_visibility_roles, d6_imagecac
  he_actions, content_translation_enabled_setting, language_types, language_negotiation, language_domains, field_link, link_uri, urlencode, explode, download, extract, get, file_copy, entity_exists, sk
  ip_on_empty, menu_link_parent, substr, null_coalesce, static_map, migration_lookup, sub_process, format_date, route, concat, skip_row_if_not_set, log, make_unique_entity_field, flatten, machine_name,
   default_value, callback, array_build, node_complete_node_translation_lookup, node_complete_node_revision_lookup, node_complete_node_lookup, skip_on_value, default_entity_value, dom_str_replace, sing
  le_value, dom_migration_lookup, file_blob, str_replace, multiple_values, merge, transliteration, array_shift, entity_lookup, dom, dom_apply_styles, array_pop, entity_generate, node_update_7008, d6_ur
  l_alias_language, path_set_translated, search_configuration_rankings, timezone, system_update_7000, forum_vocabulary, user_langcode, profile_field_settings, user_update_8002, d6_profile_field_option_
  translation, user_update_7002, convert_tokens

Then try a drush ms d7_google_analytics_settings, and get:

------------------- ------------------------------ ----------- ------- ---------- ------------- ---------------
  Group               Migration ID                   Status      Total   Imported   Unprocessed   Last Imported
 ------------------- ------------------------------ ----------- ------- ---------- ------------- ---------------
  Default (default)   d7_google_analytics_settings   Importing   1       0          1
 ------------------- ------------------------------ ----------- ------- ---------- ------------- ---------------

Proposed resolution

Use the current plugin name in GoogleAnalyticsVisibility[Pages|Roles]::transform(), that is migration_lookup instead of migration.

Remaining tasks

User interface changes

None.

API changes

None.

Data model changes

None.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

fgm created an issue. See original summary.

fgm’s picture

Status: Active » Needs review
FileSize
1.49 KB

Suggested patch.

Wim Leers’s picture

Priority: Normal » Major
Status: Needs review » Reviewed & tested by the community

Confirmed! This is a hard stop and breaks the migration completely.

I can confirm this fixes the migration 👍

marc.bau’s picture

Matomo module needs the same patch...

Migration is still failing for me with the patch in Drupal 9.1.2!

sim_1’s picture

+1 to RTBC for this patch! Migrating from 7.72 -> 9.1.2 and this kept the migration from completely stopping.

sjhuskey’s picture

Migrating from 7.81 to 9.2. This kept the migration from failing. Thanks!

  • japerry committed 050c7f1 on 4.x authored by fgm
    Issue #3170816 by fgm: D7 to D9 migration fails with "The "migration"...
japerry’s picture

Version: 8.x-3.x-dev » 4.x-dev
Status: Reviewed & tested by the community » Fixed

Confirmed! Updated in the 4.x branch.

Wim Leers’s picture

Version: 4.x-dev » 8.x-3.x-dev
Status: Fixed » Reviewed & tested by the community

Version 4 is in the alpha stage. Can you please also commit this to the 8.x-3.x branch, so that people can migrate into a stable module? 😊🙏

  • japerry committed 72c1e53 on 8.x-3.x
    Issue #3170816 by fgm: D7 to D9 migration fails with "The "migration"...
japerry’s picture

Version: 8.x-3.x-dev » 4.x-dev
Status: Reviewed & tested by the community » Patch (to be ported)

Marking patch to be ported because I've committed the patch to 3.x and the 4.x version needs some updates for dimensions and metrics. There is some internal Acquia work to get that issue fixed.

Wim Leers’s picture

Thanks!

amarlata’s picture

Created a new patch for dimensions and metrics field migration from D7 to D9.

amarlata’s picture

Created a new patch for dimensions and metrics field migration from D7 to D9 and added new file in patch

amarlata’s picture

Updated patch with the 4.x branch.

amarlata’s picture

Status: Patch (to be ported) » Needs review

  • japerry committed c7ad776 on 4.x
    Issue #3170816 by amarlata, japerry: D7 to D9 migration fails with "The...
japerry’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.