Update existing node (not created by Migrate) via Migrate 8.5.x

Drupal Answers Asked by Vaibhav Rana on December 3, 2020

I have got existing Drpal 8.5 site with hundreds of nodes. With migrate, if i try to upgrade, new nodes are rather created. Node have a field which is being used as key however that seem to be not working. It seems that node are only updated if their record present in migrate_map_xyz. Any suggestions?

One Answer

Updating existing content was possible by changing the default behaviour of a migration with the system of record concept in Drupal 7.

In Drupal 8 this concept has been revised & is available with the overwrite_properties option in the destination of the migration YAML:

  plugin: 'entity:node'
  # define the entity properties that are to be updated.
    - title
    - field_foo
    - field_bar

Answered by baikho on December 3, 2020

Add your own answers!

Related Questions

Solr index fields not showing a field

1  Asked on January 12, 2021 by heather


Programmatically get product name by using order variable

2  Asked on January 7, 2021 by selva


Applying patch on core module failing

0  Asked on January 6, 2021 by nabil


Custom module is not working

1  Asked on December 30, 2020 by ts-guhan


Unlimited field collection pagination in node edit page

1  Asked on December 30, 2020 by dmk-i-t


Error: Private files directory not fully protected

2  Asked on December 28, 2020 by glenviewjeff


How to add Autocomplete to a Views Custom Textfield Filter

1  Asked on December 27, 2020 by laceysanderson


Cannot disable or replace logo

1  Asked on December 25, 2020 by digital-fire


Webform onchange added with hook_form_id_alter

1  Asked on December 25, 2020 by richard-luckhurst


Form API placeholder attribute rendered as “- Select -“

1  Asked on December 24, 2020 by hotwebmatter


Adding a dependencies in theme info file

1  Asked on December 23, 2020 by aryashree-pritikrishna


Javascript in Drupal

1  Asked on December 23, 2020 by zephirus


Titles not showing for tabs pages

2  Asked on December 21, 2020 by andyw


Can’t connect to remote DigitalOcean database

1  Asked on December 18, 2020 by ymdahi


Ask a Question

Get help from others!

© 2023 All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP