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

entity_hierarchy.nested set storage factory has non existent service

I am trying to start a previously migrated site and I get this error. Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: The service "entity_hierarchy....
0
votes
0answers
11 views

Migrate into Multi-value Checkbox from CSV

I'm running into a bit of an issue using Migrate API. I thought I had a fairly simple use-case, but am unable to actually find an example for this particular instance. I have a CSV I'm importing, ...
3
votes
1answer
20 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: ...
0
votes
1answer
45 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
1answer
412 views

Adding custom field while migrating

I am trying to merging content types while migrating to drupal 8 from drupal 7 and at the same time differentiating them with the taxonomy terms in D8. E.g. The content types from D7 i.e. Article, ...
0
votes
1answer
29 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: ...
0
votes
1answer
1k views

Import nodes with images

Im trying to create nodes from CSV also with image in one image field. I'm using Migrate modul in Drupal 8 and Migrate from CSV. Data to node works fine, image download and copy works fine but in node ...
0
votes
1answer
1k views

In search result page, pagination is not showing up

I have migrated a site from Drupal 6 to Drupal 7. Search form I have rendered in page.tpl.php like this <?php $block = module_invoke('search','block_view','form'); print render(...
3
votes
3answers
2k views

How to migrate to translatable fields

I am using the latest Entity Translation module in order to provide a couple of translatable fields for some of my content types. I have a content type which has a translatable field which is called "...
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
360 views

How to conditionally update and import nodes using Migrate?

I need to migrate new nodes and update others in the same time. 2 installations of the same project are out of sync, which means, that the same nid may not indicate the same node on both sides. But I'...
0
votes
1answer
399 views

Migrate multiselect taxonomy values from node with csv

I want to import companies with csv into Drupal 8 with migrate_source_csv module. CSV: company_name,company_categories,company_size "Dummy Name","Category 1";"Category 2","2 people" How to ...
0
votes
1answer
20 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
2answers
1k views

Images are not migrated and the body field is empty

I tried to migrate a site from Drupal 7 to Drupal 8.1 using drush (migrate-import --all) and the following modules: Migrate Plus Migrate Tools and the D8 core migrate modules. It doesn't migrate ...
1
vote
1answer
357 views

redirect index.php?var1=aaa&var2=bbb

I just moved a website to drupal 7 and I have problems with the redirects. The old website had all urls like this: www.example.com/index.php?var1=aaa&var2=bbb (where aaa and bbb changed for the ...
0
votes
2answers
356 views

Features to import content types

Features seem to be the right way to import custom centent type in a fresh D7 install from a D6. But when I create my feature on the D6 one, it added dependencies like modules,and once I import the ...
6
votes
2answers
2k views

Reasons for subsequent Broken/missing handler in Views?

In the process of upgrading Drupal 6.x to 7.x I'm facing a problem that makes all my views show nothing relevant. (I believe the problem is here but I'm not sure, I don't know. That's why I'm asking): ...
0
votes
0answers
41 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 ...
0
votes
4answers
440 views

Overriding migration source URL with hook_migration_plugins_alter

In D8, using Migrate Plus (8.x-4.0-beta3), i am pulling in xml records from an external, non-Drupal API. I have an unwieldy source URL that needs to be passed dynamically to the migrate_plus migration ...
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
2answers
464 views

Migrating fails without any error

I'm trying to run a migration D7 to D8 which I've coded. This is the command: drush migrate-manifest manifest.yml --legacy-db-url=mysql://User:PASSW@localhost/drupal7ddbb --verbose but basically no ...
0
votes
1answer
435 views

migrate import image (image_import plugin doesn't existe)

I'm trying to import content from a csv source file, the csv file contains a field of image URL, and I'm trying to import that image using contrib modules migrate_plus, migrate_source_csv, ...
6
votes
2answers
7k views

How do I move a site from a server to another one?

I am trying to move a Drupal 8 site, but I get the following error: The website encountered an unexpected error. Please try again later. InvalidArgumentException: Class "\Drupal\system\...
0
votes
0answers
35 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" } ], ...
1
vote
1answer
29 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 ...
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
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 ...
0
votes
1answer
413 views

Migration of CSV into paragraphs fails with unexpected error

I try to import CSV files into a Drupal 8 installation but I can't manage to make the relationship to paragraphs appear. I followed the steps of this tutorial but can't figure out how to make it work. ...
0
votes
1answer
367 views

Specify which Migrate entries need to be updated using prepareRow

I have made a Migration that i run with Cron. My highwater field is the date changed, which is present in the XML (source) document. Then I do this in my cron function: $result = $migration->...
1
vote
0answers
37 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
485 views

Migration Source YML File import date string into date and time field of content type

I have a json file full of data exported from a wordpress site, one field being a string representing a date and time: "03/15/2012 14:46:19". I would like to import that string into a date and time ...
0
votes
1answer
443 views

How to identify item_selector for Migrate API JSON imports

Trying to import articles from an external JSON feed of "members" with a structure like this: { "status":"OK", "results":[ { "num_results": 10, "offset": 0, "...
0
votes
1answer
477 views

How to get the drush command defined in migrate tools to work?

I have a D8 site since some months. Today I realised that I needed drush in order to migrate some contents (using the migrate tools module). Composer was not installed, so I installed it. Then I ...
1
vote
1answer
443 views

Migrate media with alternative text

I'm trying to import image with new media module on core 8.5. I've a json source and on my .yml I've: field_media_image: target_id: plugin: migration migration: immagini ...
2
votes
1answer
412 views

Migrate : Update not working

Im using the migrate module to import data from a json feed. Mostly work fine however, i require that each time the feed is imported , updated records in the source are updated in the destination if ...
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 '...
6
votes
6answers
3k views

How to import taxonomy with hierarchy?

We're upgrading our site from D7 to D8, which has vocabulary containing multi-level parent-child hierarchy. The list is too long (around 5K-10K terms) to import manually. We've tried using migrate in ...
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. ...
1
vote
3answers
462 views

How to migrate content using a web service with multiple calls?

I need to migrate content from a web service to which I have to call several URLs. A call to receive a list of nodes and then a call for each node to receive information from the fields. Something ...
0
votes
1answer
45 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
39 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
44 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
32 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 ...
0
votes
1answer
421 views

selecting hierarchical select values during migration

I want to select the values of a taxonomy which is being shown by heirachical select. These values are to be selected while importing the data through csv by using migration module. right now i am ...
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. ...
0
votes
2answers
465 views

Error migrating from localhost to server: PHP Unsupported operand types

I'm migrating a Drupal 8 project I developed locally up to the server as a subdirectory in my hosting service that my site domain points to. I've cleared the caches (with drush cr and truncating the ...