How to skip creating records with blank fields when migrating from csv file? I have created a migration with the Migrate module that migrates data from a csv file into a custom entity. There are some rows in my csv file that don't have any data for the entity that I'm importing into, so I would like to skip the creation of those entities. 

Is there a way I can do this?
in your prepareRow function test to see if a field is empty and if it is, return FALSE.  For example:

public function prepareRow($row) {
  if ($row-&gt;data == '') {
    return FALSE;
  }
}