Problem/Motivation

If you call drush migrate:messages for a migration that has not yet run, a fatal error occurs:

TypeError: Drupal\migrate_tools\IdMapFilter::currentSource(): Return value must be of type array, null returned in Drupal\migrate_tools\IdMapFilter->currentSource() (line 216 of /var/www/app/docroot/modules/contrib/migrate_tools/src/IdMapFilter.php).

Steps to reproduce

1. define a migration, e.g. mymigration
2. run drush migrate:messages mymigration

Proposed resolution

tbc

Remaining tasks

User interface changes

API changes

Data model changes

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

malcomio created an issue. See original summary.

steinmb’s picture

I also noticed this on a migration in progress.

david-b made their first commit to this issue’s fork.

steinmb’s picture

Status: Active » Reviewed & tested by the community

Change looks OK. Not sure if we also need to update comments and/or a test.

  • heddn committed 977c2b1f on 6.0.x authored by david-b
    Issue #3328061: Error when calling migrate:messages for migration that...
heddn’s picture

Status: Reviewed & tested by the community » Fixed

Thanks for your contributions.

Status: Fixed » Closed (fixed)

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

david-b’s picture