Questions tagged [migrations]
"Migration" means any migration of data to a Drupal site.
1,394
questions
-1
votes
1
answer
26
views
Migrating 2 fields into a link field
I'm looking to migrate two fields on D7 (one a link field, the other a text field) into a single link field on D10.
The meat of the migration is here:
source:
plugin: d7_paragraphs_item
bundle: ...
0
votes
1
answer
15
views
How can I export all webform structures?
How can I export forms generated from a Drupal 7 site using webform?
The data is meant to be used to recreate a form generator tool by another team (who is not necessarily using Drupal).
0
votes
0
answers
41
views
Migrate file doesn't detect a custom process plugin
I'm working in a migration from a custom CMS to Drupal.
In a first step I have migrate the paragraphs; now, I'm trying to migrate the nodes. All the fields are filled except the paragraph field.
I ...
1
vote
1
answer
36
views
Can we migrate and keep the same user, taxonomy, and node IDs?
When we are migrating a Drupal 7 site to Drupal 10, we have some custom tables which store taxonomy, node, user, and role IDs.
Is their a way to migrate a content type preserving the IDs?
0
votes
0
answers
19
views
Email field is not migrated
I am trying to migrate an email field from Drupal 7 profile2 (don't think that matters) and it becomes blank on the Drupal 9 instance. The remaining fields migrate without any issues.
My process ...
1
vote
0
answers
51
views
upgrade_d7_file_private failed
i am trying to migrate drupal 7 private files to drupal 9
Step 1 :- i have modified below file
/opt/httpd/htdocs/staging/sitename/master/web/core/modules/file/src/Plugin/migrate/source/d7/File.php
...
1
vote
2
answers
112
views
Should I migrate my site from Drupal 7 directly to Drupal 10, or via Drupal 9?
I have been working through some upgrade issues with a site migration from Drupal 7 to Drupal 10.
In my tests I have been running migrations from Drupal 7 to Drupal 9. I wondered if there is any ...
0
votes
1
answer
37
views
How to update migration field mapping using custom module/form?
I was learning about Drupal migration recently and found out that we can use Migrate Plus module to import migrations as configurations. Hence I started wondering if a migration is imported as a ...
0
votes
1
answer
79
views
How do I move taxonomy, content and content types?
I have a Drupal site which is throw away, but I need to move the taxonomies and content to a clean site, which I have decided to use Drupal 10.
I have the Drupal 9 database loaded into the same ...
2
votes
0
answers
18
views
Field formatter migration: How do I setup the related yml files?
I've custom formatters in Drupal 7. In Drupal 9 I've a custom module to provide the same formatters. How do I have to setup the migration yml-File, if the names of the formatters in D7 are the same as ...
0
votes
1
answer
39
views
How to assign a paragraph to a node correctly?
I'm currently facing an issue while trying to link paragraphs to a content type in a newer version of Drupal. I have data from an older Drupal website that I need to migrate to a more updated Drupal ...
0
votes
0
answers
52
views
How can I search for existing nodes with "Text format" = "undefined"?
I've upgraded to Drupal 10 from an earlier release, which used the PHP module (not yet available for Drupal 10). Therefore, I had to uninstall the PHP module before upgrading, leaving the "Text ...
1
vote
0
answers
31
views
Help with migration needed - entity_lookup of multiple taxonomy references
I am trying to fetch nodes with multiple taxonomy references from Drupal 9 instance A to instance B. B already has the vocabulary terms, so i want to use entity_lookup in the process for this field to ...
1
vote
0
answers
53
views
The migration of a list field doesn't work
In Drupal 10 I have a field of type List (text) configured with key|label that I need to populate with a migration.
My yml file seems not to work, in the 'process' block I tried with:
process:
...
0
votes
0
answers
49
views
How can I disable the core migrations?
After I enabled the Drupal Migrate module in Drupal 10, every time I do a drush ms I get a page of errors about Drupal 7 migrations like the following one.
[error] Could not retrieve source count ...
0
votes
0
answers
66
views
Migrating content from production to development
I have a multilingual site built on the Glazed Drupal CMS installation profile (Drupal 8).
It was upgraded to Drupal 9, but the upgrading process lasted around 3 months, and now new content from the ...
1
vote
1
answer
145
views
Migrate user roles with static_map
I am trying to migrate D7 users into D10.
I have enabled the following migrate modules:
migrate
migrate drupal
migrate plus
migrate tools
The migration yml is as follows:
id: create_user_account
...
0
votes
0
answers
20
views
Upgrading book module from v7 to v9 - no rows in book table
I'm upgrading a site from v7 to v9. The entire site is composed of about 10,000 book pages. All the nodes migrate successfully, but the book tree has no contents and the table 'book' has zero rows. It ...
0
votes
0
answers
28
views
Why does Drush:migrate not generate config entities for separate content types?
When using Drupal 9 with modules migrate, migrate_drupal, migrate_upgrade and migrate_plus, and calling drush:migrate --configure-only with a Drupal 7 source database
I see migrations at drush ...
0
votes
0
answers
103
views
Is there a way to "migrate" data after an initial upgrade migration?
I was hired into a role that has a Drupal 7 site that needed to be updated to Drupal 10. The project is an 8 month one.
I've done the initial process of creating a destination site, running /upgrade ...
1
vote
1
answer
64
views
Data is not saved on the entity when the source and destination field names are the same but have different types
I'm migrating from Drupal 7 to Drupal 9.
On the source Drupal 7 user entity there is a Text (list) field with various values. These need to be migrated to a taxonomy_term reference field on the Drupal ...
3
votes
0
answers
40
views
Can I use pseudofields in anything other than source?
If I use pseudofields in the source property for my custom plugin, they are correctly substituted with the computed values. If I use them in another configuration (as per the example), they are ...
3
votes
0
answers
134
views
File can not be copied during migration of media entity
I'm migrating pictures into Drupal (9) media entities (image). System is using AWS S3 for local storage. I have 2 migrations:
First migrates external images into drupal's files. It copies files from ...
1
vote
2
answers
133
views
Migration entity_lookup not picking up repeating taxonomy terms
Background:
I am creating new articles in Drupal 9.5 from a source database using the Migrate API. The articles optionally have references to one or more taxonomy terms. I have already created the ...
1
vote
1
answer
39
views
Migrating URLs without titles into a link field (where the link title is optional) without them becoming NULL
I'm migrating URLs that don't have corresponding titles into a link field, and when I either don't define the title, or use the default_value plugin to set the default value to '', the value actually ...
0
votes
0
answers
54
views
Save multiple taxonomy terms in migration from array of tids
I'm having some issues with storing multiple taxonomy terms in a field as part of a migration.
I've created a custom plugin get_colors that returns an array of existing tids. A custom process plugin ...
1
vote
0
answers
121
views
"migrate:status" freezes on "Try to validate bootstrap phase 0"
Drupal community!
I am working on migrating from D7 to D9. Both are located on separate servers. I configured D7 database as db to migrate in my D9 settings.php, like this:
$databases['migrate']['...
1
vote
0
answers
77
views
How do I migrate 1000+ nodes iteratively with term hierarchy and links in a CSV file? [closed]
I run for almost 15 years now a Drupal website as a hobby. I had lots of help of the great Drupal commmunity with this. And was able to migrate from drupal 5-6-7 with the modules which were add hand. ...
0
votes
1
answer
110
views
How do I migrate Yii2 passwords?
I migrated users from Yii2 to Drupal 9, where there are password hashes like $2y$13$nhBZ37OKp27jJBLgRkFlOuL5ac8Bda5n2XIZTjKON5gKPfIcxh61y genereated by Yii2 with \Yii::$app->security->...
0
votes
1
answer
131
views
I need help migrating a mulit-value link field from string w/ 2 delimiters
I'm trying to migrate a node bundle from one drupal 9 application to another.
My source format is an XML document.
I'm stuck migrating a multi-value link field.
Both the source and destination machine ...
0
votes
0
answers
60
views
Improve performance migration
I have a custom migration like this
<?php
namespace Drupal\my_import\Plugin\migrate\source;
use Drupal\migrate\Plugin\MigrationInterface;
use Drupal\migrate\Row;
use Drupal\migrate_source_csv\...
0
votes
0
answers
51
views
As part of an "update" migration, how do I access an existing entity field in prepareRow()?
I know I can access the existing entity id through $row->getIdMap()['destid1'], then load the entity via entity_type.manager service, and then access the field. But is there a more direct way of ...
1
vote
0
answers
40
views
Migrate Medias update : entity_lookup process error
I'm trying to update Medias already existing in my Drupal using Migrate and the process entity_lookup.
The field field_uuid was designed specifically as a matcher for my .json original datas and the ...
0
votes
1
answer
61
views
Converting Node Type to New ECK Content Type
I have a site with several different Node Types. With some of them having different types within them created with a Text(list) fields.
For Example:
Node Content Type: Chemicals
Label: Chemical ...
0
votes
0
answers
36
views
Commerce migrate and upgrade
I'm going through the process of migrating from commerce 1 -> 2 and everything works from the product / order /payment perspective but I can't figure out how to re-map other content types that ...
1
vote
0
answers
72
views
Migrate + JSON:API node references to entity type references aren't mapping
I have successfully migrated nodes from a D9 source site into a a custom entity type (RedHen CRM contact) on a target D9 site.
Next, i am trying to migrate taxonomy terms with a multiple reference ...
1
vote
1
answer
41
views
Commerce Migrate module not listed in migrations
I installed the Commerce Migrate module, and its submodules, commerce_migrate_commerce and csv_example. When I run drush migrate:status, I see the migrations for the csv_example listed but none of the ...
1
vote
1
answer
164
views
Migrate Module: How skip whole item (not value)
I have a xml file that creates nodes via migrate.
I need to define the following:
Each job has a field "location". I have written a process plugin to process the value
When the returned ...
0
votes
1
answer
100
views
How do I specify ALL source node types in upgrade_d7_node_complete_book migration yaml
Drupal migrate_plus creates a default migration yaml for migrating books: upgrade_d7_node_complete_book.yml
langcode: en
status: true
dependencies: { }
id: upgrade_d7_node_complete_book
class: Drupal\...
0
votes
1
answer
55
views
How do I insert migrated file info into a file field?
Successfully migrated public and private files to D9 system using core d7_file and d7_file_private migrations.
Now trying to migrate the file info into file fields (entity_reference_revisions:...
1
vote
1
answer
183
views
Migrating from D7 / MySQL 5.6 to D9 / MySQL 8
I've read the documentation of upgrading (migrating) from D7 to D9, but didn't see anything about how to handle
changing MySQL versions in the process.
My D7 instance is on MySQL 5.6, which is ...
1
vote
0
answers
1k
views
Argument 2 passed to Symfony\Component\Routing\RouteCollection::add() must be an instance of Symfony\Component\Routing\Route, boolean given
Ubuntu 18.04.6
Apache2, Postgresql 10, Drupal 8.9.6, PHP 7.2.34 (most of the modules require these versions)
I've tried trouble shooting this problem for multiple weeks. I'm attempting to migrate a ...
0
votes
1
answer
118
views
Migrate a two-textfield field
I'm looking to migrate a text field from Drupal 6 to Drupal 9. The field has two text fields.
The table description returned by describe content_field_telfono ; is the following.
Field
Type
Null
...
-1
votes
1
answer
164
views
Why is node save extremely slow with two or more tags after migrating tags and restoring from backup?
The problem
Saving a node with one tag saves normally. With two or more, the save takes upwards of 40 seconds.
The problem only occurs after migrating in a set of tags from csv, then creating a ...
1
vote
0
answers
552
views
Correct way to migrate multiple paragraphs from custom source
Drupal 9.4.5. Looking to migrate Drupal 7 books into Drupal 9 paragraphs. Will need to migrate multiple paragraphs into D9 multi paragraph reference fields. Below is outline of desired paragraph ...
0
votes
1
answer
297
views
Is it possible to Migrate data directly into the paragraph entity?
Posted this in Drupal Paragraphs issue queue, but no response. Trying here.
Drupal core 9.4.5. Paragraphs 8.x-1.2
Every tutorial on Drupal 8/9 paragraphs migration uses the destination plugin: ...
0
votes
1
answer
66
views
Extracting content from a broken site database
I am working on a broken Drupal site which doesn't load.
Is it possible to extract the node data from the database and import them into a fresh Drupal installation?
2
votes
0
answers
120
views
When using only drush for a migration - how is 'source files' / legacy-root defined?
I am using Drush 10.4 with the migrate and the migrate drupal modules to do an upgrade from Drupal 7 to 9.
But how do I define the source files?
With the migrate upgrade module this can be defined ...
0
votes
1
answer
98
views
Migrate filter_format with embedded_data plugin
I'm trying to migrate filter_format from d6 to d9, I'm using embedded_data 'cause migrate_drupal doesn't work with D6; so I'm trying to do it in another way.
This is my yml file.
id: ...
0
votes
1
answer
189
views
Error migrating files from CSV
I'm trying to migrate a csv file that I build from a drupal 6 site.
I have create a view to export those fields:
"fid","filemime","filename","image_path","...