Create and add paragraphs programmatically to nodes. After trying to use migrate and feeds. Including migration from field collection to paragraphs or ECK. The final solution for me was to do it manually. Migrate mixed up all of the content. Feeds imported the Paragraphs nicelp
Source code viewer
$csv = <<<END nid,my_field_value_1,my_field_value_2,my_field_value_3 nid,my_field_value_1,my_field_value_2,my_field_value_3 END; // Split rows into an array. $rows = str_getcsv($csv, "\n"); foreach($rows as &$row) { // Get values from a row. $row = str_getcsv($row, ","); // Create new paragraph based on the input. $paragraph = \Drupal\paragraphs\Entity\Paragraph::create([ 'type' => 'my_paragaph_type', 'field_value_1' => $row[1], 'field_value_2' => $row[2], 'field_value_3' => $row[3], ]); $paragraph->save(); // Add it to nodes existing paragraphs list. $node = \Drupal\node\Entity\Node::load((int) $row[0]); $current = $node->get('field_my_paragraph_reference')->getValue(); $current[] = [ 'target_id' => $paragraph->id(), 'target_revision_id' => $paragraph->getRevisionId(), ]; $node->set('field_my_paragraph_reference', $current); $node->save(); } Programming Language: PHP