Stack Exchange Network

Stack Exchange network consists of 175 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
18 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 ...
0
votes
1answer
400 views

Migration Source YML File import date string into date and time field of content type

I have a json file full of data exported from a wordpress site, one field being a string representing a date and time: "03/15/2012 14:46:19". I would like to import that string into a date and time ...
0
votes
1answer
388 views

How to identify item_selector for Migrate API JSON imports

Trying to import articles from an external JSON feed of "members" with a structure like this: { "status":"OK", "results":[ { "num_results": 10, "offset": 0, "...
0
votes
1answer
471 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 ...
1
vote
1answer
382 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 ...
2
votes
1answer
412 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
22 views

Import image with migrate tools changing its name

I’m trying to migrate some data from a remote rest/api (json) using the plugin source url. My problem is in the json i consume the image name field comes with an incorrect value. In imageName comes '...
6
votes
6answers
3k views

How to import taxonomy with hierarchy?

We're upgrading our site from D7 to D8, which has vocabulary containing multi-level parent-child hierarchy. The list is too long (around 5K-10K terms) to import manually. We've tried using migrate in ...
0
votes
1answer
12 views

Migrate: Create term(s) if they do not yet exist

Question similar to this question here, but this time, I am not doing a separate migration later. I want to create taxonomy terms if they do not exist while processing a record. Does entity_lookup do ...
0
votes
0answers
15 views

How to upgrade a site that uses node_gallery for galleries and images?

I have a Drupal 7 site that uses node_gallery to publish several image galleries. This has been working well for several years. I'm looking at upgrading that site to run on Drupal 8 instead. ...
0
votes
1answer
348 views

Migrate multiselect taxonomy values from node with csv

I want to import companies with csv into Drupal 8 with migrate_source_csv module. CSV: company_name,company_categories,company_size "Dummy Name","Category 1";"Category 2","2 people" How to ...
1
vote
3answers
441 views

How to migrate content using a web service with multiple calls?

I need to migrate content from a web service to which I have to call several URLs. A call to receive a list of nodes and then a call for each node to receive information from the fields. Something ...
0
votes
1answer
31 views

Create migration stubs of entities for a multiple value reference field?

I need to import a set of authors as part of a content entity. It is an array in a JSON object of id/name. I have a field in Drupal on the content type to be a user reference that accepts unlimited ...
1
vote
1answer
33 views

Migrate files into dynamic paths

I have a constant defined in my migration definition like so: constants: destination: "private://working_papers/" There are 30,000 files that will come in as part of the migration. I would ...
0
votes
0answers
24 views

How to map parent menu setting in node migration?

I tried using 'menu_link' but which is not working id: panel_node label: Pane node migration_group: devel source: constants: slash: '/' plugin: csv path: 'modules/custom/my_module/data/...
0
votes
1answer
405 views

Adding custom field while migrating

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
36 views

Delete files on rollback in Migrate?

I have a migration that pulls in a PDF with it and populates a content type. When I rollback the migration, it does not delete the PDFs with it. How can I tell a migration on rollback to clean up ...
1
vote
1answer
31 views

json migration to nodes

I have a json file with 572 items. I have created the migration script and it runs ok, except that the end results says processed 572 items (1 created, 571 updated) It looks like instead of ...
0
votes
0answers
17 views

Migrating a file url to media entity attached to a content type

I am migrating content from a JSON API. One of the attribute fields includes a PDF file URL. How can I add this to the Migration definition YAML to take this url, save the file, generate a media ...
0
votes
1answer
421 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 ...
2
votes
0answers
56 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. ...
0
votes
2answers
454 views

Migrating fails without any error

I'm trying to run a migration D7 to D8 which I've coded. This is the command: drush migrate-manifest manifest.yml --legacy-db-url=mysql://User:PASSW@localhost/drupal7ddbb --verbose but basically no ...
0
votes
2answers
443 views

Error migrating from localhost to server: PHP Unsupported operand types

I'm migrating a Drupal 8 project I developed locally up to the server as a subdirectory in my hosting service that my site domain points to. I've cleared the caches (with drush cr and truncating the ...
9
votes
1answer
476 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,...
0
votes
2answers
453 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,...
3
votes
1answer
39 views

Proper way to define a Migration yaml?

I am trying to do a POC using Migrate, Migrate Plus, and Migrate Tools to define migrations and having trouble getting my migration to register and appear in the list of migrations for the migration ...
0
votes
0answers
18 views

Sub theme css not loading

I took over a Drupal 7 site and was setting up a local environment in MAMP on windows. At first I got a white screen. I went to updates.php and ran a couple updates and could then get into the site. ...
0
votes
0answers
18 views

Strange Migration Errors

Really bizarre Drupal problem making me unable to use Drush to check migrations. With Migrate Tools enabled I get the following error: PHP Fatal error: Trait 'Drupal\content_translation\Plugin\...
0
votes
0answers
20 views

Migrating multi-lingual wordpress site

I need to migrate my multi-lingual wordpress site to Drupal 8. I have posts and pages translated in other languages and every post/ page have different post id. How can I migrate these translated ...
0
votes
1answer
25 views

Any callback method for migration

I have written a migration script that is working but After migrate data I need a method/way to store recent inserted id with some other relevant data in another custom database table. Can I do with ...
0
votes
1answer
28 views

Migrating files from local source are not found

I am migrating from Drupal 7 to Drupal 8 (8.6.9). Both the Drupal 7 and the Drupal 8 site currently run on my local machine. The migration of the public files goes well using: source: plugin: ...
0
votes
1answer
69 views

migration process plugin not registering

My plugin aims to strip out html tags from titles being imported from xml Here is the error I'm receiving: FVFXF0ETHV2F:process$ drush mim complinet_xml_to_node Drupal\Component\Plugin\Exception\...
1
vote
0answers
24 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 ...
0
votes
1answer
101 views

Migrating input formats causes errors

I am trying to write custom migrations to migrate my Drupal 7 website to Drupal 8. I am currently using Drupal 8.6.7 and Drupal 7.61 for a copy of the production website. So far I have set up the D8 ...
0
votes
0answers
20 views

migrate file path when migrating file/image fields

When I do the initial file migration from my old Drupal 7 site, my source file paths are respected and maintained when copied to my new fresh Drupal 8 site. In other words, inside the 'sites/default/...
0
votes
1answer
629 views

Methods to Migrate Webform Data / Results

I was wondering if anyone else has done this. I've got Webfrom Results that I want to take from one Drupal 7 website to another. Having looked at the Migrate module & migrate extras theres a ...
1
vote
2answers
51 views

Migration with ID already exists [closed]

My migration is not showing up in drush migrate-status. When I try to reimport them with drush config-import --partial --source="modules/custom/complinetmigration/config/install" I get the following ...
0
votes
0answers
17 views

How do I migrate a referenced entity to a different entity with just a yaml file?

I have a Drupal 7 node bundle with an entity reference field (d7_ref) referencing a d7_entity bundle. The entity has two fields, a and b. I have a Drupal 8 node bundle with an entity reference field ...
1
vote
1answer
69 views

Image styles not generated during config import

Situation: Drupal 8.6.9 running DrupalVM with Ubuntu 16.04, Apache 2.4.18, Php 7.1.26 with default settings except for the location of the drupal site. I am trying to do a migration of a Drupal 7 ...
-2
votes
1answer
461 views

How to use Drush or Migrate module to create/edit/delete nodes hourly

I need to Create new nodes (W/12 fields) hourly from a new table/fields in the Drupal DB (x_table). Update currently created nodes via current x_table rows. Delete nodes once the row has been ...
0
votes
1answer
539 views

Update existing node (not created by Migrate) via Migrate 8.5.x

I have got existing Drpal 8.5 site with hundreds of nodes. With migrate, if i try to upgrade, new nodes are rather created. Node have a field which is being used as key however that seem to be not ...
0
votes
1answer
503 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?
3
votes
0answers
54 views

How to programmatically build Drupal in a Continuous Integration workflow [closed]

My team is relatively new to Drupal. One thing we have struggled to understand is how to work with it from a DevOps point of view. I realize this is too large a subject for one question so I have a ...
1
vote
1answer
498 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
1answer
24 views

Rename a taxonomy vocabulary during migration

I'm working on a custom migration for taxonomy vocabulary and I was wondering if there is a way to rename a vocabulary during migration? my d7 vocabulary name is staff and I wanted to be migrated to ...
0
votes
0answers
44 views

Long running Migration tasks?

I have a use case where we need to seed Drupal content with content from another database. The only access to this database I have is via a Rest API. The official Drupal.org docs have a link to this ...
1
vote
1answer
484 views

Run imports using UI on Drupal 8 (Migrate + Wordpress Migrate modules)

I want to use module WordPress Migrate (https://www.drupal.org/project/wordpress_migrate) to import content from WordPress into my new Drupal 8 website. I can use the module's button "+Add import from ...
0
votes
0answers
19 views

Empty Body & Image fields after migration to D8

I was trying to migrate my websites from Drupal 7 to Drupal 8.... through the migration modules provided & web interface... It returned all Body & Image fields empty... It also gave many ...
0
votes
1answer
497 views

How to merge tables and files from development to production

I am new to Drupal, but have learned a lot over the last two or three months. I am still fuzzy and perplexed about how to migrate new functionality and/or content from development to production. I ...
1
vote
0answers
19 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 ...