I'm using migrate_d2d to migrate content from Drupal 6 to 7. I have a taxonomy term migration and a node migration. The taxonomy term migration runs correctly and creates 11 taxonomy terms, but when the node migration runs, the terms are not being mapped.

My migration code can be reviewed here: https://gist.github.com/vinmassaro/a7bce8175aa3cafffc2035092b0fe7be

It doesn't seem to be finding anything, because when I examine the output of of $row from prepareRow, there is no [1] element in the object coming from the source. What am I missing here?

Migrate documentation says say the taxonomy terms are mapped this way, which is the format I have it in:

$this->addFieldMapping('field_taxonomy_reference', 'legacytermid')

Thanks in advance!

1 Answer 1


I was not properly implementing the prepareRow() method, missing this part:

if (parent::prepareRow($row) === FALSE) {
  return FALSE;

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.