Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [migration]

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

1
vote
0answers
105 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
votes
1answer
133 views

How to import user roles and pictures using the Migrate_d2d module?

I haven't been able to find any clear instructions for how to include roles & user pictures in the user migration using the migrate_d2d module. I have found a number of links with some ...
2
votes
1answer
745 views

for D8, How to skip (don't update) some fields from existing entity during import if this field already has a value

How to skip (don't update) some fields from existing entity during import if this field already has a value? That for Drupal 8 with modules (migrate, migrate_plus and migrate_tools) example of an yml ...
0
votes
1answer
24 views

How can I migrate the Domain publishing settings for nodes via SQL?

I am using Drupal 7 and Domain Access (latest stable versions). In my source site, there are nodes with "Domain access options", "publish to.." then a number of selected domains. I migrate the data ...
0
votes
2answers
59 views

Migrate as separate files

How can I create individual migration groups - one for each XLM file, without having to write a new migration class for each file? I have dozens of XML files waiting to be imported into Drupal using ...
3
votes
1answer
296 views

Get a list of available migration destination plugins

how can I get all available migration destination plugins? A way to ask with drupal console? like listed on Migrate destination plugin examples
0
votes
3answers
492 views

Migrating site from MariaDB to MS SQL 2012

I'm trying to migrate the site from a linux+mariadb platform to IIS+MS SQL platform. Could someone please tell me what is the best way to do this? What I've done so far: Installed a vanilla Drupal ...
0
votes
0answers
26 views

Concept of migrating content types and content

I have a task to migrate content types and content from one drupal 7 to another drupal 7. I know that using features module we can migrate content types. But what if my content type uses some modules ...
3
votes
1answer
259 views

Content, terms and user/author import or migration to D8 without custom module

How can I only import or simply migrate content (nodes), related terms and users/content-authors from a D7 project into a better structured D8 installation, which is similar to the old project, but ...
0
votes
1answer
257 views

Strip out MS Word html tags on migrate

I've got a migration set up whose source was apparently filled out using MS Word. The JSON source for the migration looks like this in places: { "field_courses": "<p class=\"MsoNormal\" style=\...
1
vote
2answers
308 views

Best method of importing a large csv file with fields containing multiple values and sub-fields like paragraphs and field collections

I exported an old Drupal 7 site using the Views data export module. Now I need to import this back into my new Drupal 7 site, but some of my fields contain multiple values and fields that have sub ...
0
votes
0answers
130 views

Importing a CSV file using Migrate option

I am trying to import a csv file using the drupal console as i couldn't use Drush as it is causing some issues. drupal config:import:single Followed the steps from here, so I used this in console ...
2
votes
2answers
1k views

Mapping roles to users while migrating

Following [this][1], I have done migration for users from Drupal 7 to Drupal 8, but I got stuck with assigning roles to the specified users. In user.php file, my code for mapping roles to assigned ...
0
votes
2answers
46 views

How do I migrate from a site using a core version to another one using the same version?

I like to change the web-hosting provider. I want to remove un-necassary and useless stuff (e.g. modules, content types that aren't used from the site). I have no idea how to do this. Is there a ...
0
votes
2answers
779 views

How to migrate multiple columns to single field in CSV Migrate

In my CSV file, I am having columns by name summary_1,summary_2 and summary_3. I want all of it migrated to a field in Drupal field_summary. The field supports multiple values. id: sections_tfr ...
0
votes
2answers
226 views

alternative to storing api keys in migration yaml files?

I've created a yaml file to import Twitter timeline items (not super simple since documentation on the migrate_plus OAuth plugin seems to be few and far between); this migration naturally requires the ...
1
vote
0answers
201 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/...
0
votes
0answers
132 views

Migration pre-import/event listeners

Before running a User migration, I need to get some additional information. As stated on Events added to the migration process, it should be implemented using events; an example can be found on ...
1
vote
1answer
830 views

Migration not found - D8

Following this I have created a module to migrate d7 users to d8. I have enabled all mandatory modules needed to run migration. But when I do drush migrate-import {mymigrationid} ; it says : Migration ...
0
votes
0answers
132 views

How do I migrate a block?

I'm looking for a way to migrate blocks from D7 to D8. I use migrate-plus with yml-Files and a manifest.yml. Custom blocks are migrated into the Custom-Block-Library but the assignment to regions ...
2
votes
2answers
2k views

Combine multiple sources into a field

I have multiple sources which roughly looks like: Wines - Contents: "1,2,3,4" Sodas - Contents: "1,2,3,4,5" I'd like to combine those into one taxonomy vocabulary, get them to be auto-created and ...
0
votes
1answer
43 views

Migrate a CSV into two entities with reference

I have a CSV as below: chapter, headings, sentences 1, heading one, "1,2,3,4,5,6,7" 2, heading two, "1,2,3,4,5" 2, heading three, "6,7,8" I want to migrate it to Drupal. The heading columns have to ...
0
votes
1answer
445 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
1answer
131 views

Migrate user passwords from drupal 6 to already existing drupal 8 site

I have a drupal 6 site and a drupal 8 site. The drupal 8 site already exists and I do not want to do this on an empty drupal 8 install. Also I only want to migrate passwords. The users with their ...
0
votes
2answers
739 views

Migrate source id's and map them to already existing Drupal entity id's

I've tried a bunch of different setups, but I can't get it to work. Here are the two setups I was the most confident in that it would work. I simply want to map existing id's in the source to new id's ...
0
votes
1answer
53 views

Migrate Quiz Results Data

I need to "migrate" all quiz results from one website to a new one. The quiz ID is different between sites, and therefore, copying over the table from mysql won't work. However, I've made sure that ...
0
votes
1answer
91 views

Using Migrate API to select items from within an Events JSON array

I am using the migration import to pull in events from a calendar service json api. I can capture and map almost all the event details except the start date which is contained within an array. I tried ...
1
vote
1answer
205 views

Product migration with group and execute-dependencies options

I'm migrating from an SQL source in a D8 commerce site. Presently, I'm working on product and inventory data. I have one migration for product variations, one for products, and then 6 additional ...
0
votes
1answer
42 views

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 ...
0
votes
1answer
382 views

Adding custom field while migrating to drupal 8

I am trying to merging content types while migrating to drupal 8 from drupal 7 and at the same time differentiating them with the taxonomy terms in D8. E.g. The content types from D7 i.e. Article, ...
0
votes
1answer
480 views

How to convert date/time from timezone to another timezone in migration process

I'm using format_date process plugin to import data from external API to drupal 8 node. The date/time in API is "Asia/Jerusalem" time - 2017-06-24 20:52:55 The date/time from the API is saved in ...
0
votes
2answers
806 views

Fatal error: Cannot declare class error for custom migrate process

Not sure whats happening here, but I'm defining a custom migrate process plugin and I'm getting the error Fatal error: Cannot declare class StrReplace, because the name is already in use, even though ...
0
votes
1answer
13 views

Migrate rows of files for nodes

I've got a CSV where every row contains details about a node and then a URL to a file. Each of the nodes rows has an id number associated representing each specific node. So eg: id, node name, file ...
2
votes
2answers
645 views

Migrate: Duplicate entries in url_alias after update migrations

I have term and node migrations from wprdpress to drupal 8 (with pathauto module enabled). I set the url alias in the migration templates like: process: path/alias: source_path path/pathauto: ...
0
votes
1answer
146 views

How to import an external database to D8 and create a search form?

I have a MySQL database with 2000 doctors, which are accessed classicaly through a HTML form and PHP. With the form you can search with criterias like ZIP, town, target group, treatment, languages, ...
1
vote
1answer
1k views

Migrate process plugin to skip values

I'm working with Migrate. On my json source file I've the alias of the node to import. There are nodes that does not have an alias, so in the json I've things like "/node/1234". So I want to skip this ...
1
vote
1answer
257 views

Delete or unpublish content from old migration, if source rows no longer exist

I am using Migrate API to import products from a CSV file that is updated every week or so. Every time the CSV file is updated, new products may be introduced existing products may be modified old ...
0
votes
2answers
992 views

Using drush migrate-import --update

I created a migrate script to import hundreds of records into a specific content type. A year after, I need to add another field to the content type and import values specific to each record. Because ...
0
votes
2answers
18 views

locally host a working website

I'm trying to locally host an already working/hosted website using wampp to try and edit it without messing up the site. But every time I try to open the site using localhost/example, it automatically ...
1
vote
1answer
209 views

Migrate only taxonomy terms from a specific vocabulary

When doing a D7->8 migration, my taxonomy term migration template imports all the taxonomy terms found in the source D7 site. How to filter only the terms that belong to a specific vocabulary? For a ...
0
votes
1answer
53 views

Importing 'alt' and 'title' fields does not work for custom image migration

I'm doing a D7->8 custom migration. While images (even multiple) get imported fine via a separate file migration based on d7_file, 'alt' and 'title' tags are not migrated at all. The images are ...
0
votes
1answer
239 views

Importing 'body' into 'paragraphs'

I need to migrate an ordinary D7 multi-value long text field 'body' into D8 paragraphs . As paragraphs seem to be a reference, the migration will probably be more complex than just direct field ...
0
votes
2answers
117 views

Importing uid of the author into article nodes fails

My custom Drupal 7 to Drupal 8 migration correctly follows dependencies and first migrates users, then articles. The problem is that it fails to import user IDs into the 'uid' field and leaves it at '...
0
votes
1answer
25 views

How do I discover property names?

When doing a custom D7 to D8 migration, i sometimes need to migrate a specific value such as 'fid' (for example file ID of an images) into the 'field_image/target_id' property. How do I find out ...
0
votes
2answers
555 views

Migrating dependent entities

I'm trying to custom-migrate D7 to D8 articles with references to file(images), taxonomy terms, and users(uid). Do i have to migrate the whole group all these entities belong to with drush ...
2
votes
0answers
150 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, ...
0
votes
2answers
143 views

Custom (cck) fields are being ignored during the migration using migration-tools 4.x. Only title and body is imported. How do I fix this?

I'm running a migration from Drupal 6 to Drupal 8, following roughly the advices in the http://pnijjar.freeshell.org/2017/drupal8-migrate/ guide. At the moment, only title and body for each node is ...
0
votes
1answer
278 views

How to migrate a value into a field attached to a taxonomy_term (from CSV using YML)

I'm trying to migrate a CSV file of taxonomies (cities) into Drupal 8. The CSV has a code and the city name, for example: City_Code,"Name" 1234,"CITY A" 5678,"CITY B" I have the following as my ...
0
votes
1answer
75 views

Moving site from one environment to another

I have a Drupal 8 site installed on a staging server. When moving on the production server, I do a git pull, import the database and the site is there and working. I do the same after some ...
0
votes
2answers
390 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,...