When running a batched import (both through drush and migrate_ui) I'm missing data from my destination entity (Profile2). I can dpm the $entity and $row variables in the prepare() method and my source data appears in both from what I can see, however after the migration is done there are fields in the entity that are empty.

The weird thing is, if I run a migration from Drush using a few ids in an idlist, all data is migrated just fine. Am I possibly running in to some sort of resource limit and data is being silently dropped?

Comments

evanbarter’s picture

Status: Active » Closed (works as designed)

Nevermind, the problem was in my own code. For future reference calling removeFieldMapping will apply for all records being mapped, not just the current record.