MigrationGroup shared configuration breaks UI

Created on 6 April 2020, over 4 years ago
Updated 13 March 2024, 9 months ago

From Migrate Plus:

MigrationGroup configuration entities [...] allow configuration to be shared among multiple migrations.

Shared configs works beautifully whenever we run such migrations via Drush, or trigger them programmatically. However, they break the UI provided by Migrate Tools. Either visiting an individual migration page (/admin/structure/migrate/manage/<migration_group>/migrations/<migration>) or trying to trigger an import (/admin/structure/migrate/manage/<migration_group>/migrations/<migration>/execute) fail with:

The website encountered an unexpected error. Please try again later.
TypeError: Argument 1 passed to Drupal\migrate\Plugin\Migration::getProcessNormalized() must be of the type array, null given, called in /app/web/core/modules/migrate/src/Plugin/Migration.php on line 640 in Drupal\migrate\Plugin\Migration->getProcessNormalized() (line 396 of core/modules/migrate/src/Plugin/Migration.php).

While Migrate Plus is responsible for the shared group configuration functionality, since the failure is in the UI, provided by Migrate Tools, I'm posting this bug report here.

🐛 Bug report
Status

Needs review

Version

6.0

Component

Web UI

Created by

🇨🇦Canada ergonlogic Montréal, Québec 🇨🇦

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

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.

  • 🇨🇦Canada spiderman Halifax, NS

    Having used variations on this patch for some while, the newest project where I'm using migrate_tools doesn't seem to have the bug as described above. We have not installed this patch, so I'm assuming the problem got resolved elsewhere. As such, I'm going to mark this as closed. For reference, we're running migrate_tools 6.0.1 on a Drupal 9 install here :)

  • Status changed to Closed: outdated over 1 year ago
  • 🇨🇦Canada spiderman Halifax, NS
  • Status changed to Needs review 9 months ago
  • 🇮🇳India chakkche

    Still facing this issue if we try to run the migrations using ui with latest version 6.0.4

  • 🇮🇳India chakkche

    Small fix on destination.

Production build 0.71.5 2024