Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Questions tagged [migrations]

"Migration" means any migration of data to a Drupal site.

Filter by
Sorted by
Tagged with
1 vote
1 answer
25 views

How can I load a migration in a KernelTest?

I'm trying to test a migration with a KernelTest, but I'm running into an issue when I try to load the migration plugin. My migration is defined in my_module/migrations/my_migration.yml. In my ...
user avatar
  • 6,928
0 votes
1 answer
32 views

Drupal migrate - "--limit" option works only for first run?

I have custom source plugin (imports from MongoDB) and when I run migration for the first time like: drush mim article --limit=10 it works well: 10 articles are being imported and process stops. But ...
user avatar
  • 365
0 votes
1 answer
46 views

How to solve "Mismatched entity and/or field definitions", specifically, "The URL alias field needs to be installed"?

After migrating from 7.89 to 9.3.12 this warning appears: ENTITY/FIELD DEFINITIONS Mismatched entity and/or field definitions The following changes were detected in the entity type and field ...
user avatar
1 vote
1 answer
43 views

Migrate CSV to content type with paragraphs

I'm trying to import a CSV File into Content Types and Paragraphs, using Migrate module (and mainly this tutorial : https://mtech-llc.com/blog/charlotte-leon/migration-csv-data-paragraphs). For this I ...
user avatar
0 votes
1 answer
19 views

Cannot set subscriptions_status on migration from csv

Modules used: Simplenews and Migrate. I have a single newsletter, to which I want to subscribe all users imported from the csv file. This is my csv file content: id,email,date_submitted This is my ...
user avatar
  • 35
-1 votes
1 answer
30 views

Aegir Drupal 7 Website migration

I need desperately help. I clarify that I am not a developer but I have just basic knowledge of Drupal and Aegir. Few years ago a developer guy installed Aegir on VPS (Hostwind) and Drupal. Now ...
user avatar
0 votes
1 answer
25 views

Migration: Core fields - one missing

I'm writing my first D7 to D9 migration by taking the migrate-upgrade configure files and bring them over one-by-one, and tweaking as needed to pull only over a small subset of my data. Things are ...
user avatar
  • 69
0 votes
0 answers
29 views

Migrate paragraph field

I have events on my Drupal 7 websites and after the upgrade, I want to migrate those events to the Drupal 9 website. Event CT has a paragraph reference revision field to the 'event_date' paragraph on ...
user avatar
0 votes
2 answers
134 views

My log is filling up with "Missing filter plugin: filter_null." messages

When I googled for this error, I found numerous hits mentioning the error message appearing during a migration, even stopping it. While I have done a migration from Drupal 7 to 9 that ran smoothly, ...
user avatar
  • 3
0 votes
0 answers
37 views

Migration does not pick up files

Please forgive me for not going the canonical path with either Drush or Composer. I tried, but could not find documentation to get me started. I'm coming from a Debian installation of Drupal 7 that ...
user avatar
  • 3
0 votes
0 answers
52 views

Error: Call to a member function getTranslation() on null

I'm trying to migrate/rebuild my Drupal 7 site in Drupal 9. Started with an empty Drupal 9 site set to minimal rather than standard installation and used Migrate / Migrate Drupal / Migrate Drupal UI ...
user avatar
  • 1
1 vote
1 answer
24 views

entity_generate process plugin issue with node generation

I want to use use entity_generate plugin to create a node for each row of source I'm migrating. I'm getting 'title' source field and want to create a node in some my_content_type, with that title. My ...
user avatar
  • 365
2 votes
0 answers
99 views

"A non-existent config entity name returned by FieldStorageConfigInterface::getBundles()" errors in watchdog

After migrating from 7 to 9, I'm getting a lot of these errors in watchdog, from views. A non-existent config entity name returned by FieldStorageConfigInterface::getBundles(): entity type: paragraph,...
user avatar
  • 3,909
1 vote
0 answers
33 views

Update.php gets "The page isn’t redirecting properly" error page

I recently moved our site to a new hosting company. After uploading all the files and importing the database I get this notice when I try to Run Updates and/or accessing the update.php page. The ...
user avatar
0 votes
0 answers
84 views

Migration fails with "missing migrations" errors

I am trying to migrate a Drupal 7 site to Drupal 9 using the Migrate module user interface. I have read through and followed the corresponding tutorials on drupal.org, but the migration still fails. ...
user avatar
  • 1
0 votes
0 answers
34 views

DrupalKernel' not found after server migration

i am try to migrate a drupal site to a new server (from cPanel to Plesk). I copyied the files from old server and pasted on new server Export database via phpmyadmin and import on new database on new ...
user avatar
0 votes
0 answers
41 views

How to execute migration in queue through cron run?

I am migrating some nodes from an API. The API only accepts 60 requests per minute. So it means if 60 items are imported in a minute, all other items will not be imported because the API will return ...
user avatar
  • 2,697
1 vote
1 answer
17 views

How can I migrate the values from a multi-value D7 taxonomy term reference field into a D9 field?

I have a node migration using the d7_node source plugin. I'm trying to migrate the values of a multi-value taxonomy term reference field into a multi-value taxonomy reference field in D9. There is a ...
user avatar
  • 6,928
1 vote
1 answer
40 views

Use deriver in Drupal Migration yml

I am trying to use the deriver key in a migration yml to have dynamically build migrations for each bundle of an Entity Type (Drupal 9). I read this and I am trying to use the deriver key to point to ...
user avatar
  • 1,203
0 votes
0 answers
20 views

How do I update existing paragraphs?

I'm writing migrations to import source data as paragraphs. This is the main migration (which is working). id: resource_chapter_section_text label: Import content from the resource.body column in the ...
user avatar
0 votes
1 answer
31 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 ...
user avatar
  • 117
0 votes
0 answers
51 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 ...
user avatar
1 vote
1 answer
41 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 ...
user avatar
  • 117
1 vote
2 answers
48 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 ...
user avatar
  • 117
1 vote
0 answers
67 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 ...
user avatar
  • 365
1 vote
0 answers
27 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 ...
user avatar
0 votes
0 answers
30 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 --...
user avatar
1 vote
1 answer
150 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 ...
user avatar
0 votes
0 answers
37 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 ...
user avatar
0 votes
1 answer
31 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 ...
user avatar
  • 403
1 vote
1 answer
47 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 ...
user avatar
0 votes
1 answer
56 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 ...
user avatar
0 votes
1 answer
49 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 ...
user avatar
  • 365
1 vote
1 answer
51 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 ...
user avatar
0 votes
0 answers
41 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 ...
user avatar
0 votes
1 answer
74 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: ...
user avatar
  • 610
1 vote
1 answer
53 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 (...
user avatar
-1 votes
1 answer
40 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: ...
user avatar
  • 2,765
1 vote
1 answer
68 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 ...
user avatar
  • 113
1 vote
0 answers
41 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 ...
user avatar
  • 11
0 votes
0 answers
27 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 ...
user avatar
  • 365
-2 votes
1 answer
38 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 ...
user avatar
  • 2,765
0 votes
1 answer
27 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 ...
user avatar
  • 325
0 votes
2 answers
43 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. ...
user avatar
  • 365
0 votes
2 answers
37 views

Problem with upgrading because an unmigrated module

I am trying to migrate a Drupal 8 site to Drupal 9. Though most of the migrations have gone easily, this site breaks because it uses the Video module, which hasn't been updated for Drupal 9. ...
user avatar
  • 27
0 votes
1 answer
323 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: ...
user avatar
  • 1,998
0 votes
0 answers
52 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 ...
user avatar
0 votes
1 answer
63 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 ...
user avatar
1 vote
1 answer
74 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 ...
user avatar
1 vote
2 answers
313 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 ...
user avatar
  • 13

1
2 3 4 5
28