Last updated 23 March 2015. Created on 17 April 2014.
Edited by TheodorosPloumis, joachim. Log in to edit this page.

A Migration can skip a source row by returning FALSE in prepareRow().

The following is a technique (untested) for outputting skipped source data rows, so that they can be reviewed by a human, and cleaned up or processed in some way:

- create the Migration class as normal, rejecting source rows by returning FALSE in prepareRow().
- create a second, dependent migration, with:
-- the map table of the first migration as its source, filtered on 'needs_update' = MigrateMap::STATUS_IGNORED.
-- write each row to the desired output (eg, CSV file with a custom destination class)

Looking for support? Visit the forums, or join #drupal-support in IRC.