Questions tagged [migration]

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

3
votes
0answers
102 views

Multiple source items per row

I'm migrating content from a Joomla SQL source. The images are stored inside of the text as inline images. This is how my source data looks like: +------------+--------------------------------------...
3
votes
0answers
74 views

How to disable updates during migration?

For the past couple years, something has confounded me about Drupal Migrate: there is a --update option and a --needs-update option when using Drush, but Migrate seems to update on it's own without ...
2
votes
0answers
25 views

How do I import only user-related fields?

I am trying to do data migration from a Drupal 7 site to a Drupal 8 site. (No other entities are migrated). I am trying to import users which has 5-7 fields and I tried to import fields using: ...
2
votes
0answers
70 views

Can't figure out why it won't trigger prepareRow

I have created a simple migration class that extends SqlBase. When I run it with drush and dump the query in query(), I can see that it is working. When I dump a 'hello' in getIds() that fires. ...
2
votes
0answers
335 views

How do I migrate images and image data?

I used the Drupal migration module (browser) to migrate a Drupal 7 site to Drupal 8. Even though I had to restart the migration a few times, it migrated all the users and the nodes. I can't figure ...
2
votes
0answers
190 views

Migrate taxonomy with depth

I need to migrate a CSV file of 3000 Taxonomy terms with depth of 5 levels deep. This is a small sample of the CSV comma-separated values file. About Us About Us, Our Programs About Us, Our History, ...
2
votes
0answers
185 views

Migrate WordPress featured image into to Drupal content type

I have a Drupal 8 site and I've installed the WordPress Migrate module and its dependencies for migrating a WordPress site to Drupal 8. All things are done and imported successfully with help of this ...
2
votes
0answers
81 views

Migrate different content types from other CMS

I want to migrate content from a non-Drupal CMS to Drupal 8 using the Migration API. In the source CMS, I have different types of content that I have to map to Drupal 8 content types. The navigation ...
2
votes
0answers
466 views

How to properly programmatically add field collections to an entity in drupal 8?

What is the proper way to programmatically add a field collection to an entity in Drupal 8? I can't find this online. This is what I'm using and it seems to work. The tricky part is setting the ...
2
votes
0answers
657 views

Password migration

I know that from Drupal 6 to Drupal 8 we needed to make the MD5 hash on migration, but I thought that from 7 to 8 it wasn't going to need any changes. Drupal 8 Migrate examples doesn't mention ...
2
votes
0answers
30 views

Migrate comments of Recipe module from D6 to D7

Hi I have a site which teaches how to cook different types of food and I use recipe module for listing the recipes of different foods. The site was first developed in Drupal6 and recently I have ...
2
votes
0answers
38 views

Drupal Migrate Questions

I am migrating from a table in the database into a Drupal content type. I have a field that is using a taxonomy reference that has a hierarchy. The problem i am facing is when the taxonomy is in this ...
2
votes
0answers
209 views

How to resolve my fatal error while trying to migrate an existing site to Platform.sh?

I am new to Platform.sh and I am trying to migrate an existing site to Platform.sh, using the Platform.sh documentation. I have successfully imported the code base, the database, and the files. I ...
2
votes
0answers
88 views

How to migrate File Entities - images and docs into D7 from .csv and attach them to nodes?

I've got a simple feature which creates a content type with title and fields - subtitle, body, images a documents. The main thing is that I use media module, so I actually attach file entities - image ...
2
votes
0answers
112 views

Migrate module: (image) sourceMigration gets correct output, but only loads 1 image

On the migrate module, my source migration "ProductImageMigration" gets all the files from the database and loads them correctly into my public folder. Checked and double checked, not a single error. ...
2
votes
0answers
113 views

How can I migrate a site into an organic group

I have several sites that are being migrated from Drupal 6 to Drupal 7. However, most of these sites are very small and all have a lot in common (similar content types, fields, views, etc...). So, ...
2
votes
0answers
182 views

Migrate: createStub() method not being invoked

I'm trying to use Migrate to import some stuff from a database into terms on a site. The terms might be hierarchal, so I'm trying to create stubs for the possible parents. However, my createStub() ...
2
votes
0answers
72 views

Migrating youtube id from a csv file

I have a content type called video with two fields, title and youtube id. Im migrating content to the site using csv files however every time I migrate the youtube id field is always empty. The field ...
2
votes
0answers
56 views

What are the consequences of not having an .htaccess file?

If I have an .htaccess file installed then I get HTTP 500 errors but if I rename it then I can get farther into the site - although not down to the nodes. I'm unsure whether to pursue the problem ...
2
votes
0answers
171 views

Mapping delimited text field to taxonomy field in Migrate

I have a migration from an external (non-Drupal) DB which is currently working correctly. I am trying to add a field from the external DB which contains a delimited list of terms. I have set up the ...
2
votes
0answers
499 views

Migrate Multi-value Filefield (File Description)

Posted this here as well http://drupal.org/node/1943324 I am trying to migrate multi-value file-fields. I checked out the wine.inc but the sample provided doesn't work for me. I tried to use JSON-...
1
vote
0answers
23 views

Migrate Update already imported content from the Json source

I have two JSON source files of product categories which contain duplicate products. Here's the link of the two source JSON files https://gist.github.com/naveenvalecha/...
1
vote
0answers
40 views

Custom migration: Getting error SQLSTATE[42S02]

I'm quite new to Drupal and tried my first Migration from Drupal 6 to Drupal 8. I didn't want to migrate the entire page but only some nodes. So i got a tutorial and wrote a custom migration module (...
1
vote
0answers
21 views

How do I configure the migrate API to assign all parent and child taxonomy terms to an entity during import?

I'm importing media files which have a taxonomy in the media content type definition. Here is the section of my Yaml file that deals with the taxonomy. field_nih_asset_taxonomy_auto: - ...
1
vote
0answers
11 views

How can I use Migrate API to migrate taxonomy with an unknown level of parent child relationships in tact?

I have a JSON file with an entry that looks like this: "taxonomy": "abc/historical_controls/abc2000_2013" In my YML file I have it mapped like this: field_abc_asset_taxonomy_auto: - ...
1
vote
0answers
42 views

Body, files, and paths problems

I was suggested so many times to migrate my old project from D6, so I finally decided to jump into this. And as it always happens with Drupal, things never work as expected at first attempt. The old ...
1
vote
0answers
122 views

Advanced Migration - update nodes

I'm a little bit new in Drupal but experienced in PHP. I would like to migrate data from CSV and assign to existing nodes in DB. My question is about the possibility to match processing rows with ...
1
vote
0answers
71 views

'default_value' plugin does not run if 'get' returns null or empty value

I’ve got a D7 to D8 migration where I’m trying to migrate a field with a null value in D7 to a default value in D8. Process pipeline is similar to this: field_privacy: - plugin: get ...
1
vote
0answers
59 views

How do i skip a row from a CSV based on the value of 2 fields within the CSV file?

I have a CSV file that contains about 200 records/rows. ID, OrgID, EstabID, OrgName, Address 1, AB234, AB234, ABC corp, 123 Main Street 2, AB234, 8989, ABC Corp-West, 456 Better Street 3, 4858, ...
1
vote
0answers
65 views

Add a default_value to name field in yml file for Drupal 8 migration

process: uid: EIN field_contractor_name: CONTACT name: CONTACT - plugin: default_value default_value: 'Full Name' I am using the migrate source CSV module. I have a few ...
1
vote
0answers
175 views

Migrating taxonomy terms only if the destination doesn't have the term name

Is it possible to migrate taxonomy terms by checking if the source term name matches with the destination term name. I would like to skip the migration if the term is present in destination. Tried ...
1
vote
0answers
139 views

Migration - Paragraph is not attaching to node content type

I have below code My data.csv id, title,location_place_1,location_address_1 1,"test","Test","India" /my-project/docroot/modules/custom/data_migrate/config/install/migrate_plus.migration.data.yml ...
1
vote
0answers
29 views

Duplicate migrations listed after generating config for a migrate-upgrade

TL;DR - I'm trying to build a migration - despite starting from scratch each time, the migrations from my D7 site are duplicated in the drush migrate-status output. e.g. d7_node:contact (in the '...
1
vote
0answers
26 views

Preserve node changed timestamp during update migration?

I'm using the migrate module and Drupal 7 to update existing node content, much of which was not migrated. System of record is set to DESTINATION. Everything works fine, but I'm having some trouble ...
1
vote
0answers
24 views

A way to export workflow states globally?

My workflow and states weren't migrated from D6 so I re create them by hand. But I need to use them on another D8 website, and I don't find the way to globally export them, only state by state......
1
vote
0answers
215 views

How to migrate images?

I'm trying to import images, but why does migrate_tools swear on my yml file when I try to migrate. id: migrate__articles_teaser_images1 label: 'Migration teaser images of article' migration_tags: ...
1
vote
0answers
88 views

Why does d7_user_role need a db connection configured when migration group already defines it

I've just done a super basic user_role import and I'm trying to do a user import. Both are in the same migration group and the migration group has a souce key to specify which db listed in settings....
1
vote
0answers
260 views

migrate taxonomy term csv

I want to migrate on my Drupal 8 website a file CSV which contains taxonomies terms. Its a simple file with id,name. I create a module: name: 'Taxo Migration' type: module description: 'Migration ...
1
vote
0answers
67 views

Migration SQL Source with Track Changes

I have a D8 migration from a SQL source to nodes which is working perfectly apart from track_changes is not working, in my YAML I simply have: source: plugin: job constants: slash: / ...
1
vote
0answers
30 views

Migrate + Access $row values in a custom progress plugin

I use migrate/migrate_plus modules fo import datas from xml file. I want create a custom progress plugin to alter a value. I want to use a second value from the row to alter my first value. In my ...
1
vote
0answers
76 views

Migrate the MD5 passwords as it is without rehashing

I am trying to migrate data from a custom database which uses a different method to HASH the password. password = md5(email + password + salt) Berdir has suggested me to create a new authenticate ...
1
vote
0answers
151 views

How to map (yml) D7 nodes with terms, images, comments and references for migrating to D8?

To better understand how a custom content migration really works apart from all the tutorials showing how to install Drupal and press the migrate button with a 3 lines test import file or endless ...
1
vote
0answers
65 views

How to fix the errors I get when migrating from WordPress 4?

On a fresh Drupal 8 installation, I installed the WP Migrate module. I downloaded a snapshot of the WordPress database on my local machine, edited the settings.php file, and added the following after ...
1
vote
0answers
124 views

Migrate API: map fields outside the item_selector

I'm working on a migration of a JSON with this format: { "departement": "19", "conseillers": [ { "code": "A24", "nom": "DUNAC", "prenom": "Roger", }, { "code": "...
1
vote
0answers
255 views

Export an entity with the Migrate module

in my Drupal 8 site, I want to export certain nodes and taxonomy terms into files (JSON or XML) using the Migrate module. (The goal is to have this data in Version control, and to be able to import/...
1
vote
0answers
70 views

Migrating user names with accent causes integrity constraint violation

I'm migrating users from a Drupal 6 to a Drupal 8 site. I use the original d6_user source plugin provided by the User module, so nothing really specific about that part. I'm experiencing many ...
1
vote
0answers
207 views

Entity Reference Multiple Migration

I'm writing a migration module, and I have an entity reference multiple field in which users can choose what type of content they want to add. I need to map to this field from multiple ...
1
vote
0answers
36 views

Can I migrate Drupal 6 to 7 by using Features 7 to import Features 6 code?

I am attempting to migrate Drupal 6 to Drupal 7 using the migrate_d2d_ui module, but the cck fields are not coming over correctly. Can I use the Drupal 6 Features module to generate code which can ...
1
vote
0answers
26 views

How can I migrate pdf repository with file titles?

I've a large amount of files to be migrated, stored in a folder under my Drupal root folder. My source schema is a Mysql table like this: id (PK) dmname dmfilename tid dmdate_published I want to ...
1
vote
0answers
62 views

Multiple migration plugins

I'm creating a custom importer with migrate from json files. I've several migrate sources for nodes (called: articoli, canti, autori) and one source for comments (called: commenti). I'm using ...