Questions tagged [migration]

"Migration" means either the migration of data from from a different framework/CMS to Drupal, or from Drupal to Drupal.

Filter by
Sorted by
Tagged with
-1
votes
1answer
62 views

XML parser selector skips mixed content in migration

I am trying to migrate and map the source fields of an external rss/xml file into Drupal. I have built a custom module: In config/install folder I have my yml file modules/custom/import_rss/config/...
4
votes
1answer
363 views

Migration of content with an UI

My goal is to import data of customers from a csv file to my custom entity. For that I wrote a migration with the migrate_source_csv module as source plugin. This works fine, but the problem is, that ...
1
vote
1answer
614 views

error on CLI when using drush config-import staging

I'm getting this error below whenever I try executing the commands drush config-import staging on the CLI. I'm basically in the process of migrating a drupal 7 DB to Drupal 8 and currently following ...
-1
votes
1answer
21 views

Set up a cron job to run drush migrate command

I have a custom module which migrates articles from a remote xml file. Because the RSS feed changes, I want my Drupal site to be in sync with the RSS feed. How do add e.g this command drush mim ...
1
vote
1answer
811 views

Migrate media with alternative text

I'm trying to import image with new media module on core 8.5. I've a json source and on my .yml I've: field_media_image: target_id: plugin: migration migration: immagini ...
3
votes
1answer
369 views

Migration sources files problem

I am trying to migrate a drupal 6 to 8 through drupal migrate ui and i am getting a error with the sources files, drupal 8 is not able to read sites folders due is writting a double slash. Does ...
0
votes
1answer
601 views

Migration of CSV into paragraphs fails with unexpected error

I try to import CSV files into a Drupal 8 installation but I can't manage to make the relationship to paragraphs appear. I followed the steps of this tutorial but can't figure out how to make it work. ...
0
votes
0answers
10 views

Migrate update all nodes on the first import / track_changes don't work

i'm using migrate to create and update nodes from external sources (xml files). These xml files are stored inside a directory and are deleted and re-uploaded once a day (during night). In these files, ...
0
votes
1answer
26 views

What's the easiest way of importing content of a custom D6 content type into a D8 site?

I have a Drupal 6 site with three custom content types. We have tried using the Migrate Drupal UI module to migrate these to our new Drupal 8 site, but this resulted in all of the plain text fields ...
0
votes
0answers
27 views

How can I merge a development site with a production one on an earlier core version?

I work for a small company that currently has a Drupal 6 site setup and working well on a live Azure server. However, we need to migrate to D8 (should have done it years ago!) and are wondering how to ...
0
votes
1answer
536 views

How to get the drush command defined in migrate tools to work?

I have a D8 site since some months. Today I realised that I needed drush in order to migrate some contents (using the migrate tools module). Composer was not installed, so I installed it. Then I ...
0
votes
1answer
332 views

MigrateSQLMap with multiple same-name source keys?

I'm using migrate module 7.x-2.5 with a MySQL source database. My records are defined by the intersection of two tables, so I need two keys in my $source_key parameter to MigrateSQLMap(). I've done ...
0
votes
1answer
330 views

Possible to extract multiple key/value pairs (links) from string in CSV and migrate into multiple link field

I am using migrate source CSV and trying to extract a string which contains multiple key/value pairs of links in format: "Google.com|https://google.com,Yahoo.com|https://yahoo.com" I need to save ...
3
votes
1answer
2k views

How do I migrate users passwords?

I want to migrate some users from my Drupal 7 installation to a new Drupal 8 installation. I do not want to migrate the whole site or any content. And I also do not want to migrate all users. The ...
2
votes
1answer
431 views

Migrate : Update not working

Im using the migrate module to import data from a json feed. Mostly work fine however, i require that each time the feed is imported , updated records in the source are updated in the destination if ...
0
votes
1answer
404 views

Migration from source YML: implode all values of each array element nested inside an parent array

We are trying to pull in some data from an outside source that serves JSON. The structure of said json is like this: [ { "name":"something", "desc":"some kind of desc.", "...
0
votes
0answers
13 views

Migrate only pages of articles, news and basic pages Drupal 7 to 8 [closed]

I need to save all articles, news and basic pages that are in the database of a Drupal 7 website and migrate this data to a website database that is in Drupal 8. I just need the nodes that are in the ...
0
votes
1answer
382 views

Specify which Migrate entries need to be updated using prepareRow

I have made a Migration that i run with Cron. My highwater field is the date changed, which is present in the XML (source) document. Then I do this in my cron function: $result = $migration->...
0
votes
1answer
175 views

Migrate from Ubercart 3 to Commerce

I have been trying to understand how to accomplish this for quite some time. And I'm not getting anywhere. The info I'm finding seems a bit dated. Can anyone tell me where to start to get this ...
0
votes
1answer
334 views

How can I import fields into Drupal 8.4 user profile from a csv file that has identical values in the key row?

I'm using Migrate Tools, Migrate Plus and Migrate Source CSV. My CSV file looks like that: "Stg";"Color";"Fruit" "user1";"red";"apple" "user1";"blue";"pear" "user2";"green";"banana" "user2";"black";"...
0
votes
0answers
28 views

Add database connections on the fly, instead of defining them in settings.php

I am trying to add DB Information on the fly, instead of defining in settings.php I am adding connection on module install $other_database = array( 'database' => 'pantheon', 'username' =>...
0
votes
1answer
28 views

Drupal 8 external content migration translation problem

I am trying to import content into Drupal 8 from an external source (not previous Drupal version). I have crawled the original site and placed the content in a database. I am then writing a custom ...
0
votes
2answers
778 views

How to add a default taxonomy term to all nodes in a migration?

For a Drupal 7 to Drupal 8 migration, we're taking what was a Quotation content type and migrating it into an Article content type, joining a ton of nodes that are staying as Articles. To distinguish,...
1
vote
2answers
90 views

How to skip empty and missing values from a migration

I'm trying to skip fields that are not present in my source file or that are empty, but I keep getting "Migration failed with source plugin exception: Passed variable is not an array or object" This ...
0
votes
2answers
432 views

Migrate Paragraphs from CSV

I am migrating Paragraphs from CSV file. I have Paragraph called Text with two fields -> title and body. The problem is that I would like to also migrate translations for them, which currently don't ...
0
votes
0answers
7 views

Term not being migrated into taxonomy reference field

I've got two migrations set up, pulling from two separate JSON feeds. The first is a feed of taxonomy terms with a tid, vid, and name. I'm able to run migration on this fine and generate the relevant ...
0
votes
0answers
12 views

D7 to D8 Migrated webform is not detected in layout

I tried to add a webform that is migrated from drupal 7 site inside a layout for homepage. On adding the webform in a region, it showed error as "There are no entities matching webform_4" But the ...
1
vote
1answer
17 views

Metatag migration from html

Drupal 8.8 Modules: Metatags & Migration plus. I am trying to convert a tag in an XML file to an open graph image metatag. File: modules/custom/my_module/dataxml.html This is the url that has ...
2
votes
2answers
2k views

Set entity reference target_id in migration yml

I migrate Drupal 6 to Drupal 8. In Drupal 8 I have content type that has field with type Entity reference that reference specific taxonomy dictionary. I can't find out how to set Entity reference ...
0
votes
1answer
428 views

selecting hierarchical select values during migration

I want to select the values of a taxonomy which is being shown by heirachical select. These values are to be selected while importing the data through csv by using migration module. right now i am ...
0
votes
0answers
29 views

Moving to new composer.json with web directory

In my Drupal 8.8.2 site, all my images were in public_html/sites/default/files. But in the new scheme of things, the sites directory is under public_html/web/sites/default/files, and every link is ...
0
votes
2answers
358 views

Mapping field columns with D8 migrate and d7_node source plugin

I'm trying to write a D8 migrations files but the following one isn't working on the source 'body/value' because it resolves to a null value instead of the intended string. id: my_d7_node_news label: ...
0
votes
0answers
16 views

Migration hierarchical taxonomy terms with same terms (without unique id)

Hello I'm using the Migrate module in Drupal 8.8.2 Currently I am working on a migration of products via an XML file. The products are available in different coatings an colors. The hiëarchial ...
8
votes
1answer
514 views

How do I go about migrating books using MIgrate_D2D?

I've had to rebuild my sites recently due to a hit on the Drupalgeddon bug I thought I closed. I've been trying to migrate everything in easily but it doesn't seem to want to for whatever reason. Now,...
6
votes
2answers
2k views

How to migrate multilingual image alt fields from CSV?

I'm migrating multilingual content to Drupal 8 from a group of CSV files, and I'm about 95% of the way there. I have an image field attached to an article content type that shares the image among all ...
0
votes
0answers
26 views

Images are not showing after migration and were also not migrated into the files folder

I am trying to migrate drupal 7 to drupal 8 using default migration modules ( Migrate, Migrate Drupal, Migrate Drupal UI, Migrate Plus, Migrate Source CSV, Migrate Tools ) using this modules content ...
0
votes
1answer
98 views

How can I reference previously imported media entities?

I have been trying to attach media entities to node entities in Drupal 8 with a custom migration but despite numerous attempts and countless hours reviewing forums i'm stumped - I'm desperately hoping ...
1
vote
1answer
778 views

Convert Field Collections into Paragraphs during Migration

I have a content type that uses Field Collections in Drupal 7. I am migrating to Drupal 8. Is there a way to convert the Field Collection Entity into Paragraph during migration?
0
votes
0answers
13 views

Migration_lookup plugin when field names don't match

I had a migration for image files to media images. It used a migration lookup of: field_media_image/target_id: - plugin: migration_lookup migration: agr_file source: fid Now I am migrating ...
0
votes
1answer
629 views

CSV migration always returns “id is defined as a source ID but has no value”

I have a freshly composer installed Drupal 8.6.13. I tried to migrate csv sources and allways got the error message [error] Migration failed with source plugin exception: id is defined as a source ...
0
votes
0answers
16 views

How can I combine “concat” after “explode” in Migrate API YML?

I have a YML file for creating Commerce Variation and create their multiple images. However, I can not get "concat" to work after "explode" so that I can add the full file path to the exploded file ...
1
vote
1answer
730 views

Creating multiple destinations from one source

I'm writing a Drupal 8 migration from a non-Drupal site where I need to migrate news articles that have inline images in them, sometimes more than 10. I've figured I'll do this in two steps: A ...
0
votes
0answers
21 views

Migrating Drupal 7 to Drupal 8 - Source Plugin Error

I am trying to migrate a Drupal 7 site to Drupal 8, however, I keep getting this error; Resolve all issues below to continue the upgrade. The d6_library_transaction plugin must define the ...
0
votes
0answers
13 views

How to migrate file fields to media entities in a multilingual site?

I'm trying to migrate images from a file field on a multy-language site - migrated from Drupal 6. Most of the pages on the website are from Bulgarian source language and they are translated to English,...
0
votes
0answers
28 views

How can I import and create multiple images from CSV file using Migrate Plus API?

I've done a lot of research but none of the examples seem to fit our use case. I have a migrate plus YML file that creates images from a CSV file that will then be used on Commerce products migrate ...
0
votes
1answer
27 views

Migrate two user fields (translation) to translation

I'm trying to migrate two user fields in Drupal 7 (name in two languajes) to a translated field in Drupal 8. I have tried several options but all failed. I have two yml templates (one for the user and ...
3
votes
2answers
710 views

Where is the Migrate UI page?

In Drupal 8.2.x there is the new migration UI tool. I've enabled it, but I can't find any link going to any UI page. Back in Drupal 7 when you enabled a module, it would have a configure link next to ...
-2
votes
1answer
106 views

How to import a million of nodes? Very slow import

I've been dealing with this problem for several days. I need to import around 1,600,000 nodes (one time). Everything is set correctly, but the speed is horrible. Both on the shared server and on the ...
0
votes
0answers
29 views

Migrate entity reference fields attached to a node or user entity

I'm trying to migrate content from drupal 7 to existing drupal 8 website. I created a custom module with configs to make custom migration. I have an entity reference field in drupal 7 referenced to ...
1
vote
1answer
52 views

How can you reference taxonomy term by another field in Yaml file?

I created my own Yaml file with fields inside to migrate nodes. I run into this problem. If I use the feeds module, I can set (during mappings) that a given field (taxonomy term reference field) can ...

1
2 3 4 5
24