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

“public” not supported or disabled in libcurl error

I'm learning how to create a custom JSON migration and referring to the migrate_json_example module, I see the following code in migrate_plus.migration.product.yml. urls: - 'public://...
0
votes
0answers
13 views

Migrate date field from csv to Drupal 8 using format_date

have been trying to import the date fields from a CSV file to Drupal 8 using format_date function. followed these two answers Import a date from CSV to Date field How to convert year to date with ...
0
votes
0answers
16 views

How to skip migrating certain entities in Drupal 8 Migration?

How do I skip migration for some entities? To simplify, let's say I have a node type Cow with a field called field_moo. If field_moo is empty, I don't want to migrate that nodes to the target. What ...
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: ...
0
votes
0answers
23 views

Database error in migrating from JSON

I had a migration that was working a few months ago on an 8.6 site before the JSON API module was part of core. Nothing has changed on the site I'm migrating to or from, but I'm now getting the ...
-2
votes
0answers
89 views

How can I migrate an Addressfield field to an Address field? [closed]

This is my custom migrate file from adddress module: address\config\install\migrate_plus.migration.d7_field_airport_address.yml. id: d7_field_airport_address label: 'Custom migrate field airport ...
0
votes
0answers
19 views

Migration with SOAP basic auth

I try to create a migration from a webservice but i can't set the authentication... In my YAML, i have this : source: plugin: url data_fetcher_plugin: http data_parser_plugin: soap ...
0
votes
2answers
34 views

Variable default_bundle in migration? Field collection to varying paragraph types

I'm trying to migrate a D7 field collection to D8 paragraphs, but to a different paragraph bundle type depending on the value in one of the field collection's fields. The logic is as follows: If the ...
0
votes
0answers
18 views

Migrate child/parent taxonomy term from csv

In Drupal 8 How to import parent/child taxonomy term from csv file with migrate. This is my csv file: id,title,body,country,province 1,first,some body,Italy,Rome 2,second,some body,Germany,Berlin I ...
0
votes
2answers
26 views

How to attach media item created during migration to media field in node

I am migrating content from Drupal 7 to Drupal 8. There is an audio field that I am currently moving to media via a custom process during migration. When I get the id of the new media created I can't ...
0
votes
1answer
33 views

Site migrated to the new server with PHP 7.2 and I can't log in

We're preparing to get our Drupal infrastructure moved from PHP 5.6 to PHP 7.2. In order to start testing, I migrated a Drupal 7.67 multi-site from our current production server to a test server ...
0
votes
1answer
38 views

Migration via phpmyadmin

We are moving to a Drupal distribution. From all the research we have done, there is no easy path to do Drupal 8 to Drupal 8 migration. We are looking to copy some content via phpmyadmin. Data we ...
0
votes
0answers
23 views

file_exists with 'replace' or 'use existing' not working when a variable is passed

Can somebody point out the fault in this snippet for downloading a file entity. I am trying to replace or use existing file dynamically using migrate_plus. When I give a variable it doesn't seems to ...
0
votes
0answers
12 views

Ubercart 7x Migration to Commerce 8.x with Drush?

I've been experimenting with upgrading an Ubercart 7.x site to Commerce 8.x and I haven't had much luck so far. The migration process times out when using the migrate UI, so I've tried re-running the ...
0
votes
0answers
26 views

How can I be notified when a migration fails?

I execute migrations everyday with drush in a bash script but sometimes one migration or more fails. Other times the migration ends with 0 created, 0 updated, 0 failed and 0 ignored. I would also like ...
-2
votes
0answers
14 views

Drupal 7 to Drupal 8 Article content migration - Images not getting attached to nodes or content

I am trying to Migrate Article content Drupal 7 to Drupal 8 but though the content is getting migrated it is not attaching the images to the nodes or article content.
0
votes
1answer
38 views

Migrate node with paragraph

I'm trying to figure out how migrating content from a Drupal 7 site to a Drupal 8 site works. I managed to understand how to create a custom module to migrate nodes with regular fields to my new D8 ...
1
vote
2answers
33 views

How to migrate text format

I'm figuring out how migrating works. When trying to migrate one of my nodes from a Drupal 7 site to Drupal 8 site I can't figure out how to set the Text Format of a field. I found this solution below,...
0
votes
0answers
33 views

Update only existing fields when source has content

When migrating into a pre-existing node, I know that I can specify which fields to update using the overwrite_properties. It looks like if the destination field is included in overwrite_properties and ...
0
votes
0answers
22 views

Is Drupal 8 Upgrade/Migrate not possible over 2 different domains?

I have tried to upgrade a drupal 7 site drupal 8 in both a local dev environment and a live production environment but cannot get the UI to connect from the drupal 8 site to the drupal 7 database. I ...
0
votes
0answers
12 views

Drush migration argument for xml source

I asked this question a while back and it was answered correctly and helpfully. However, I'm currently looking for a different solution. I need a way to create a custom argument which I can use to ...
0
votes
1answer
24 views

Migration of field_collection with migration_d2d

In D7 to D7 migrations, when it comes to field_collections I know “ Your field collection migration should be run after the host entity migration. ”. I have done my host entity migration via the ...
2
votes
2answers
42 views

How to migrate file uploads from Drupal 6 to 8?

I'm working on a custom migration from Drupal 6 to Drupal 8. Some of the content types have a field used for file attachments. In Drupal 8 this field has the internal name field_attachments. When I ...
0
votes
0answers
22 views

entity_lookup for user entity type

I'm trying to link a field in my spreadsheet file to a user that is previously created with a migration from the same spreadsheet. The Backup column consists of multiple names divided by the backward ...
0
votes
0answers
27 views

Migrating media images from directory in custom module

I'm on drupal 8.7.1. Using following modules: Migrate Migrate Plus Migrate Tools Migrate Spreadsheet Media & Media Library I'm trying to import a bunch of profile images (as media images), ...
0
votes
1answer
32 views

Migration Plus entity_lookup fails

Drupal version: 8.7.1. Used modules: Migrate Migrate Plus Migrate Tools Migrate Spreadsheet I'm trying to generate a taxonomy term if this does not already exist. the migration file: ... source: ...
0
votes
0answers
24 views

Migrate scheduled content

I am in the midst of migrating a Drupal 7 site to Drupal 8 (8.7.1.). I have some content types that use Scheduler to publish/unpublish content. How can I migrate the publish/unpublish dates? I have ...
0
votes
1answer
41 views

JSON:API to Migrating Taxonomy References isn't mapping

OK, for a number of reasons I'm doing a Drupal 8 - Drupal 8 migration using the JSON:API module on the source site. I've run into an issue attaching taxonomy terms to nodes. Here's as far as I've ...
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/...
0
votes
0answers
30 views

Exporting content translation to similar server

I have 2 instances of the same site built using Drupal. Both need to be translated, and most of the work of the translation has been done on site A and we need to take the translations from site A to ...
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 (...
0
votes
1answer
36 views

The specified database connection is not defined: legacy

I used Drush command to migrate drush migrate-upgrade --legacy-db-url=mysql://root:@127.0.0.1/tsa_v8 --legacy-root=http://127.0.0.1/new_projects/tsa --configure-only But it return error: The ...
0
votes
0answers
12 views

Migrate content to distribution

I have a D8 site that am looking to migrate to Open Social distribution. What method would you recommend to migrate the content? Tried the Migrate module but that seems to only be for D6 and 7 to ...
-1
votes
1answer
79 views

Error opening socket ssl://api.nodesquirrel.com:443

I am using Backup and Migrate on D7. I am unable to backup to NodeSquirrel due to the following error: TYPE backup_migrate The NodeSquirrel server returned the following error: Error opening ...
0
votes
0answers
8 views

Migration from XML by using data_parser_plugin: xml, can't get the row

I am trying to run a migration assuming from https://makedrupaleasy.com/sitemap.xml with the structure like <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:image="http://www....
0
votes
0answers
20 views

Site migration fails with database error

Trying to migrate a simple site using Aegir. Source site is Drupal 7.66 and the destination is Drupal 8.6. The environment has an Aegir server with a remote web server (running both drupal versions) ...
0
votes
1answer
31 views

Migrate into Multi-value Checkbox from CSV

Update: Turns out typos suck. But added an answer to this as well, in case anyone ever stumbles upon this... I'm running into a bit of an issue using Migrate API. I thought I had a fairly simple use-...
0
votes
1answer
36 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: ...
3
votes
1answer
26 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
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: - ...
0
votes
1answer
59 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
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: - ...
0
votes
0answers
44 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
83 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
133 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
56 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
58 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
51 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
56 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
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 ...