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

Convert address to multi value during migration

I have a migration that imports data into my address field and it works perfect. field_address/locality: - plugin: get source: city field_address/postal_code: - plugin: ...
1
vote
0answers
14 views

Migrating body text from 7 to 8, markup displays until edited and saved

I'm migrating nodes and have run into a problem with the text formats when mapping our old site's input formats to the new site's input formats. (We're simplifying!) Relevant yaml: body: ...
1
vote
0answers
12 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: - ...
0
votes
1answer
17 views

Menu migration update error

I migrate the menu by this drush command: drush migrate-import --update page_menu and .yml config: id: page_menu label: 'Page menu migration.' migration_group: pages source: plugin: csv path: ...
1
vote
0answers
7 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: - ...
0
votes
0answers
40 views

Drupal 6 to 8 upgrade modules

I'm upgrading the Drupal 6 project to Drupal 8 using drupal migrate UI module. I've installed the below modules in Drupal 8 for an upgrade from 6 to 8. Nice Menus Views Slideshow But, those are not ...
1
vote
1answer
40 views

Paragraphs from sub_process

I need to migrate a json feed with following example structure; { "data":[ { "id":"11028", "first_name":"Foo", "last_name":"Bar", "functions":{ ...
0
votes
1answer
38 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
34 views

Using Migrate Plus API to select items from a JSON array

Im novice in drupal i'm i need to solve the following error in my migration import. For Example, nid: [ { nid: [ { value: "110538" } ], ...
0
votes
0answers
46 views

Can't update migrated taxonomy terms because of langcode

We have a site that we migrated from Drupal 6 to Drupal 8. If we try to update (Just edit and save) one of the terms that were migrated over, we get an error "The value you selected is not a valid ...
1
vote
1answer
26 views

File to media migration: use node title for media title

I have my files migrated from D7 to D8 (using d7_file source plugin to an entity:file destination). I then migrated those files to media (using file_entity source plugin to an entity:media ...
1
vote
1answer
40 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
35 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
23 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
20 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
16 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
44 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
37 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
34 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
42 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
29 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
62 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. ...
4
votes
1answer
54 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
22 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
29 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
32 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
34 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
19 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
84 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
45 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
37 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
25 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
30 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
26 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
41 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
29 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
61 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
11 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
70 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
57 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
159 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
74 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
35 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
65 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
43 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
91 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
26 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
79 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\...