Why would piece of content of each content type be migrated but their text formats wrong? I'm trying to migrate content D6 -> D7. I've written the importers (actually just edited existing ones) and run the process. However, as far as I can see, body of content are imported but with the wrong format i.e. one of them correctly shows as Full HTML while another shows just Select. 

Below is my importer:

class StoryMigration extends NodeMigration {
  public function __construct(array $arguments) {
    parent::__construct($arguments);
    $this-&gt;addFieldMapping('title', 'title');
    $this-&gt;addFieldMapping('body', 'body');
    $this-&gt;addFieldMapping('taxonomy_tags_1', 'field_tags')
      -&gt;defaultValue('tid');
    $this-&gt;addFieldMapping('field_headerimage', 'field_headerimage')
      -&gt;sourceMigration('Files');
    $this-&gt;addFieldMapping('field_headerimage:file_class')
      -&gt;defaultValue('MigrateFileFid');
  }
}


UPDATE: I also did a format mapping, like below:

$common_arguments = array(
    'source_connection' =&gt; 'default',
    'source_version' =&gt; 6,
    'format_mappings' =&gt; array(
      '1' =&gt; 'filtered_html',
      '2' =&gt; 'full_html',
      '3' =&gt; 'php_code'
    ),
   ...
   ...
   ...
  );
You need to map the body format. 

This is from 6 years ago, but reposting in case mikeryan does not see this question.


  if the format is part of the source data (i.e., it varies from node
  to node), you can make use of the source_field feature:


$this-&gt;addFieldMapping('body', 'body')
     -&gt;arguments(array('format' =&gt; array('source_field' =&gt; 'body_format'));


Where body_format is the value from the source db I believe.

It has been a loooong time since I have done a 6 to 7 migration. 

This post might also be of use if you are using migrate_d2d.