Questions tagged [migration]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
20 views

Media migration results in numerous unexpected file usage records (CSV source): How to do this correctly?

I'm migrating lots of records from a non-Drupal site into Drupal 9. The records have file 'attachments,' and I want these to be media in the Drupal site. I have all the files already on the server ...
0
votes
0answers
17 views

I'm writing a node migration (D7 to D9) module but only the title gets migrated

How can I get the body migrated as well? When I compared this with other working migrations, there didn't seem to be any differences in the code/anything wrong with mine. I also looked for alternative ...
1
vote
1answer
34 views

How to migrate files from outside Drupal, with files already where they need to be, creating file entities

I'm doing a migration from a non-Drupal site--so far, for test purposes. I have all the data in CSV files. Since I'm brand new to migrating into Drupal 9 from outside Drupal, I'm learning this in ...
1
vote
2answers
25 views

How migrate rich text fields from outside Drupal without converting html tags to entities

I'm working on a migration from a non-Drupal site into Drupal 9. So far, I'm using migrate_plus, migrate_tools, and migrate_source_csv modules. The data I'm importing has <br> and other tags in ...
1
vote
0answers
66 views

Referencing disabled users during migration

I have migration that creates files. For file owners I'm trying to find existing user by email and if don't find I create one on fly. Problem is that those users I'm creating must be disabled (I don't ...
0
votes
0answers
9 views

Use Node title as default value in alt field of field_image migration

I've been working on a D7 to D9 migrate project, and encountered an issue around field_image's alt value. The D7 site does not have all the field_image alt tag setup, so we'd like to use the imported ...
0
votes
0answers
24 views

How to prevent drush migrate:import from updating existing content?

Drush migrate:import (version 10.3.6) seems to be updating existing content regardless if the --update option is used or not. What could be the problem? I've tested it both with and without the --...
1
vote
1answer
35 views

Migrating Wysiwyg/Ckeditor embedded images to embeded images

I am migrating a Drupal 7 site that is using: drupal/wysiwyg:^2.9' (plus the ckeditor library) drupal/media:^2.27' drupal/media_ckeditor:^2.14' In Drupal 7, when you insert an image into the wysiwyg ...
0
votes
0answers
13 views

How can I set the purchased entity for an order item?

We have migrated products and orders from a Drupal 6 site to Drupal 9 site. We had a product type dues for which we already had products in the existing Drupal 9 system. So we skipped the migration of ...
0
votes
1answer
18 views

Use Migrate Tools to import into multiple value link field from JSON array

I am trying to import data into a multi-value link field from a JSON source using Migrate Tools. I think I should be able to do this without writing a custom plugin, but so far nothing is working. My ...
1
vote
1answer
34 views

Programmatically loading and saving nodes is not updating my field but editing and saving manually does. Why the difference?

I have migrated D7 date fields to D9 Smart Date (with recurring). During the migration, I've parsed the legacy repeat rules and populated them into the new D9 Smart Date field. However, the repeating ...
0
votes
1answer
40 views

How to filter idlist in command line when importing data via migration

I know I'm really missing something here. I have a custom migration source plugin that requires a query() to be returned. If I pass an --idlist=123 parameter with the import this query still runs on ...
0
votes
1answer
24 views

Creating file from s3fs (S3 bucket) breaks migration

I have s3fs module installed and configured, so when I upload some file it goes to S3 bucket. Then I'm making processing plugin which should copy file from another S3 bucket to Drupal's bucket and ...
1
vote
1answer
25 views

Is it possible to create new node ID's when migrating content instead of using the existing one?

We're working on migrating a D7 site to D9 and will be creating new nodes (with new node ID's) before the site launches. The next time we sync the content from the D7 site to D9 the migration will ...
0
votes
0answers
25 views

Migrating one field into multiple rows

I am trying to migrate html code into multiple paragraphs that need to be linked together somehow. My idea is to have them linked my ID that comes from the dataset, maybe using that ID as second ...
0
votes
1answer
26 views

Migrating an array of values into multiple entities

I'm using migrate/migrate_plus modules to import CSV files and generate entities. One of the columns in the CSV can contain multiple values like 1|2|3, which I'm converting to an array using: ...
0
votes
0answers
27 views

Issues with beans in the migration (some nodes don't migrate, some migrate old revisions)

I am trying to do a migration from Drupal 7 to Drupal 9. Most seems to migrate okay but I noticed the following problems: I am missing some nodes Some nodes migrated only old revisions of the node (...
-1
votes
1answer
29 views

Migrating date into drupal datetime field

i am having the xml selector <starting_date><![CDATA[ 2017-01-01 22:34:56 +0100 ]]></starting_date> this migration process fails : process: field_job_starting_date: plugin: ...
1
vote
1answer
35 views

Import content in nodes with media:image fields using Migrate from csv source

I try to import content from a .csv file into article nodes of a fresh D9 install using Migrate, Migrate Plus, Migrate Tools, Migrate csv source and Migrate File (extended) My article content type has ...
1
vote
0answers
28 views

Migration away from Open Atrium

We have an intranet site running on Open Atrium (A product which has not been supported or updated in some time) and would like to migrate to a Vanilla Drupal install on either 8 or 9. We do not use ...
0
votes
0answers
21 views

Warning when repeating migrate:import process

I created source and data process plugins for mongo db. And when I run import for the first time it works well. But if I run it again, immediately after that I get warning: [warning] Could not load ...
-2
votes
1answer
24 views

how to import 3 xml selectors in one drupal field using the migrate plus module?

the migrate_plus migration conf i had so far was process: title: title body: job_description field_job_diffusion: offer_type field_job_statut: statut field_job_domaine: domaine ...
0
votes
1answer
22 views

Migrate Json data with non-numeric unique identifier (from facebook...)

I am trying to fetch posts form facebook, using migrate. My question is: in my migration conf.yml how should I set the source:ids key to handle non-numeric IDs, like the ones provided by facebook that ...
0
votes
2answers
28 views

Migrate accessing source fields by name instead of by selector?

I'm working on the MongoDB source plugin and I'm able to do the migration, but I have to make strange compromises. When defining the source fields, I have to set name the same as selector, like this. ...
0
votes
2answers
29 views

Problem updating to Drupal 9 because of unmigrated module (video)

I am trying to migrate a Drupal 8 site to Drupal 9 (a bit late, I know, but just got the green light after asking for many weeks). I haven't done the site myself and though most of my migrations have ...
0
votes
1answer
167 views

How can I debug a Twig error that occurs after migrating from Drupal 8.9 to Drupal 9+

I am trying migrate my Drupal 8.9 site to Drupal 9+ and I am stuck with an error its cause I am not able to hunt down. On almost every page I get the following PHP exception: Twig\Error\RuntimeError: ...
0
votes
0answers
34 views

How can I prevent my migration from overwriting existing nodes instead of using the source's (D7) NID

I have imported my content types from D7 to D9 using /upgrade for the complete migration and the data is all good. I then have a separate migration to import and convert my date fields and this works ...
0
votes
1answer
26 views

Using root source property within migrate sub_process plugin

I'm performing migration from Drupal 9 into another Drupal 9 project. Let's say "content features" migration. In a node migration I'm trying to create stubs for media items. The media source ...
1
vote
1answer
65 views

How to implement TrustedCallbackInterface

I'm maintaining a module that I've had a 3rd party dev build for me. I D9 this issue has appeared when using the module that otherwise works in D8 and should be compatible with 8 & 9. The module ...
1
vote
2answers
88 views

How to use migrate process plugin concat on multiple values?

I am trying to import from a csv that has multiple files in the same column, e.g. title,gallery,tag node1,img1.jpg|img2.jpg|img3.jpg,2 node2,img4.jpg,2 node3,img5.jpg|img6.jpg,3 I need to prepend the ...
0
votes
1answer
54 views

Can't migrate files that contain spaces and underscore

I'm migrating my D7 site to D9 and I'm getting 2K+ fail migrations for my files directory. It's failing because the file names contain Spaces and Underscores. Does anyone know what I need to do to ...
0
votes
1answer
31 views

Import multiple images with sub_process and image_import

I have some nodes with multiple images I want to import. How can I combine sub_process plugin with image_import? "field_image":[ {"src":"https://example.com/image1.png&...
0
votes
0answers
16 views

Migrate commerce_order__order_items from CSV files

I'm writing a custom migration module from a legacy system. I have all of my orders and order items being migrated, but the commerce_order__order_items table is not being populated. My orders ...
0
votes
0answers
39 views

unserialize(): Error at offset 0 of 18 bytes

I am doing a migration from Drupal 7 to Drupal 8. Its using a MYSQL database (Server version: 8.0.26-0ubuntu0.20.04.2 (Ubuntu)). With this one particular node type when I drush cr and then reload ...
0
votes
1answer
71 views

How do I migrate body content with [embed]*[/embed] tags?

Currently I am working on migrating a Drupal 7 site to Drupal 9. The nodes in the site has nodes with content similar to the following one. <h3><strong>WHAT WILL YOUR NEXT MEAL BE?</...
1
vote
0answers
38 views

Files migration from local dev site

I'm migrating from Drupal 7 to Drupal 9 and am having an issue with my source files getting found with the upgrade_d7_file migration. My public files directory for my source site is not 'sites/default/...
2
votes
1answer
31 views

Migrate order billing profile

I'm trying to migrate order data from an existing site using CSV files and I can't get the billing profile to relate. In trying to troubleshoot this, I have it set just to insert a default value of a ...
0
votes
0answers
25 views

Migration lookup and no stubbing

I have a problem with languages and no stubbing regarding migration_lookup plugin in Drupal 8. I have a different json data, each of them is different languages for example json with de: data:{ id: ...
0
votes
2answers
40 views

Best upgrade path?

One of my Drupal sites has been languishing on Drupal 5. It has a lot of content, so I can't just start from scratch. I'm considering to finally upgrade it to Drupal 9. What would be the best and ...
-4
votes
1answer
51 views

The website encountered an unexpected error. Please try again later. as shown in body [closed]

I tried to set up my drupal 8 full project on localhost but after set up when I run project getting error as shown below:- The website encountered an unexpected error. Please try again later. Drupal\...
0
votes
0answers
48 views

How to set the appropriate bundle for a paragraph on migration?

I'm trying to migrate some paragraphs from D7 to D9. The bundle type is always set by the default_bundle setting for the destination migration eg: destination: plugin: 'entity_reference_revisions:...
-1
votes
1answer
43 views

What is Pages (from D7 and D8) replaced with in D9?

I'm working on a D9 project that we just migrated from D7, but there doesn't exist a admin > structure > pages link. What was this replaced with? Same with Panels, I still see Panels as a ...
0
votes
1answer
32 views

Fill multi-value field from comma separated values in a field

I have data in xml which I want to import into drupal. Which works fine. But one field in the xml is filled with a comma separated list of terms. There is a target field in drupal which is a multi-...
0
votes
2answers
75 views

Map profile_id based on previously mapped uid when migrating user profiles from CSV file

I'm trying to migrate users and user profiles to site, where both entities might be already present. In this case I would like to overwrite specified fields and leave others in the original state. I'm ...
0
votes
1answer
83 views

Migration of a custom Rest API using PATCH/POST

I had a custom REST API working with Drupal 8 perfectly. After upgrading to Drupal 9.2.X, the Patch and Post methods of this custom REST API stopped working. Now they throw the following exception. ...
0
votes
1answer
30 views

Custom Migration Plugin MySQL Error

I've run into the following error when running the command drush migrate-import custom_spotlight where custom_spotlight is the name of the plugin. I've been following along with this guide: https://...
0
votes
0answers
30 views

Sql Migrate - working example

Ok I just spend 8 hours with the migration module. I was not able to find just one working example for the migration of sql data. Even Drupal's own documentation has the state "outdated". I ...
1
vote
0answers
36 views

How do I migrate product fields?

I'm migrating Drupal 7 commerce products to Drupal 9 and I'm using: Drush (10.5.0) migrate_plus migrate_tools commerce_migrate_commerce commerce_migrate I have successfully migrated nodes, but I ...
0
votes
0answers
38 views

Using migrate (also) to update nodes that already exists in Drupal

I am in the process of porting a non Drupal database to Drupal 9. The original database contains, among other things, a table of Books (with the usual infos) and and separate table (don't ask me why) ...
0
votes
0answers
51 views

Migrate nodes with Paragraph from json

My goal is to import json file into Drupal 8 using Migrate modules (migrate_plus, migrate_tools). I use Paragraph module with fields like Name (entity reference) and composition (Number-float). And in ...

1
2 3 4 5
27