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.

0
votes
1answer
33 views

Can I safely delete the migrate tables after migration?

I passed a site from d7 to d8 I wanted to know if I can delete tables db migrate map d7 and migrate messages d7 they are more than a hundred I can delete db tables migrate map d7 and migrate d7 ...
1
vote
0answers
25 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
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 '...
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
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
25 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
37 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 ...
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. ...
3
votes
1answer
40 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

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: ...
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
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 ...
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 ...
0
votes
0answers
20 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
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/...
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 ...
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 ...
1
vote
0answers
38 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, ...
0
votes
1answer
23 views

How to link migrated image file to the user profile picture field?

I used the following migration file to migrate user pictures from a Drupal 7 site installation to Drupal 8: migrate_plus.migration.drupal7_image.yml id: drupal7_image label: Images migration_group:...
0
votes
0answers
47 views

Get paragraph bundle (paragraphs_item) value for migration

I am migrating node from D7 to D8 but I need to get the paragraph body value and concatenate it with the value of the body. Here is a dump of the node: object(Drupal\migrate\Row)#1848 (8) { ["...
0
votes
0answers
10 views

Re-use static mappings in multiple migrations?

I was wondering if anyone knew if there was a way to re-use Drupal 8 static mapping process plugins across multiple migrations? Sort of like as functions/macros. A simple example is I have a static ...
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
1answer
47 views

Multiple source IDs error

I'm getting error Drupal\Core\Database\DatabaseExceptionWrapper</em>: SQLSTATE[42S22]: Column not found: 1054 Unknown column &#039;map.sourceid2&#039; in &#039;field list&#039;:...
0
votes
1answer
108 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
45 views

Ability to migrate or import/export paragraph bundle from one site to another

I have several custom paragraph bundles containing a large amount of customization. I do not want to re-create them. Is there a module that allows me to export a paragraph bundle and then upload it to ...
0
votes
1answer
28 views

Migrate content from drupal8 to drupal8 programmatically with Node::load and Node::create

Basicly I want to migrate content from one drupal8 instance to another. they are mostly identical with some small changes. first step is to migrate the content type via drush gen module module and ...
0
votes
0answers
58 views

migrating json data into entity node and entity reference revisions (paragraphs) using core and contributed migration module

I'm having issues now trying to migrate a local based json file. The goal is to create a node based on the data comming from the json file. For that I allready created a content type 'Produkt' with ...
1
vote
0answers
32 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 ...
0
votes
1answer
63 views

Copy installed modules and configuration to new installation

I have a Drupal 8 application with mysql as database. I installed bunch of third part modules such as domain, search_api, pdf etc... Most I installed using composer and a very few using "Install ...
0
votes
1answer
25 views

How to migrate one type of contents to other type having same fields? [closed]

I have 2 content types having same fields and I have many contents added by cleint in both the types,now I want to change some of the node's type A other type.. How can i achieve this?
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\...
0
votes
2answers
41 views

Is it possible to have 2 sources for migration?

I have a tid (taxonomy ID) and a csv file (which is a list of terms to remove during migration with columns : tid, name, delete ). The tid and CSV file are my sources for the migration. How can I ...
0
votes
1answer
70 views

Local json migration: how to set the value of the urls variable?

I'm currently really busy to get the migration work on my desk. I want to import (migrate) a local json file into drupal8 using Migrate_Plus, Migrate tools. For that I have the following migration ...
0
votes
2answers
51 views

Specify ids for a migration yml file from nested json array

Given following jsons file { "data": { "uuid": { "value": "ed64784-cjjhd6", "patient": false }, "name": { "value": "Name", "patient": false }, how to ...
0
votes
0answers
117 views

Migrating (import) rest/api (json) data into node using migrate_plus and migrate_tools modules

I’m trying to migrate some data from a remote rest/api (json) using the plugin source url. Here is my current migration iml file. I created a content type 'produkt' to match the fields from the remote ...
1
vote
0answers
98 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 ...
0
votes
0answers
15 views

Is it possible to delete or disable a set of entities via Migration plugin

Currently I have migrated a few taxonomy vocabulary entities whose source type is URL. These are migrated based on a flag. The flag value can change from time to time. The possible values are new/add/...
0
votes
0answers
40 views

Can a taxonomy vocabulary entity be disabled or unpublished?

Vocabularies are config entities. I can see the delete link in the UI. In the example vocabulary config yml - taxonomy.vocabulary.blah.yml - uuid: 16ebbc47-16ac-461c-0000-00000000 langcode: en ...
1
vote
1answer
37 views

Live content migration to a separate server for important content

My clients are now spending a lot of money daily on creating content on my system. A few hours lost could be quite bad for them, and in turn, for me. Most of the site is fine on daily backups, but ...
3
votes
0answers
81 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: +------------+--------------------------------------...
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
32 views

Upgrade modules

I am going from Drupal 7.6 to 8.6 using the migration UI (https://www.drupal.org/docs/8/upgrade/upgrade-using-drush). When I get to /upgrade/review it lists out the modules that need upgrading. The ...