Migration: the "csvrownum" should start from the second row I am importing some nodes from csv file in drupal.

I am assigning row number to one of the field of that content type.

The first row in the csv is the header which contains the column names only. The data start from the second row.

I am using the "csvrownum" for the csv row number. But it starts from the first row. It should exclude the first row as the data starts from the second row. How will I do this?

Here is my code:

$this-&gt;source = new MigrateSourceCSV($path, $columns, array('header_rows' =&gt; 1));
          //The destination CCK (boundle)
          $node_options = MigrateDestinationNode::options("en", "full_html");
          $this-&gt;destination = new MigrateDestinationNode('lot', $node_options);
          $this-&gt;map = new MigrateSQLMap(
              $this-&gt;machineName, array(
            "csvrownum" =&gt; array(
              'type' =&gt; 'int',
              'unsigned' =&gt; TRUE,
              'not null' =&gt; TRUE,
              'alias' =&gt; 'import'
            )
              ), MigrateDestinationNode::getKeySchema()
          );
          //Field mapping
          $this-&gt;addFieldMapping('title', 'Title');
          $this-&gt;addFieldMapping('field_number', 'csvrownum');
I think that's the expected behavior, you could use the prepareRow() method to increment csvrownum in whatever your header_rows is.