[migrate_upgrade] Migrate Upgrade, Migrate Tools and Migrate Commerce leads to dependency failure on media types

Created on 23 January 2021, almost 4 years ago
Updated 14 May 2024, 7 months ago

Problem/Motivation

I ran a migration of a D7 site with Migrate Upgrade, Migrate Commerce and Media Migration. When it gets to the field instance configuration point it hits this error:
[error] Migration upgrade_d7_field_instance did not meet the requirements. Missing migrations d7_file_entity_type:image. requirements: d7_file_entity_type:image.

The error comes from Drupal\migrate\Plugin\Migration::checkRequirements(), so I traced through to that point to see the following:

This shows the "requirements" list with the following:

  • upgrade_d7_field
  • upgrade_commerce1_product_type
  • upgrade_commerce1_product_variation_type
  • upgrade_d7_file_entity_type_image
  • d7_file_entity_type:image

So the "upgrade_" prefix works fine, but for some reason the pre-modifyId()'d dependency is still included in the dependencies list.

Proposed resolution

Fix the bug (-:

Remaining tasks

Fix the bug (-:

User interface changes

n/a

API changes

n/a

Data model changes

n/a

πŸ› Bug report
Status

Closed: cannot reproduce

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States DamienMcKenna NH, USA

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