AnswerBun.com

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:

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

Answered by baikho on December 3, 2020

Add your own answers!

Related Questions

Render fields url in tpl.php

2  Asked on October 26, 2021 by yoric

   

How to use Views Page + Attachment to show parent and children nodes?

1  Asked on October 26, 2021 by brian-huether

 

Hide new topic link based on the forum topics

1  Asked on October 26, 2021 by dominick

 

set min – max values drupal date_popup timepicker

2  Asked on October 26, 2021 by lorenzo-de-bie

   

Action links available options / caching

1  Asked on October 26, 2021 by marius-ilie

 

How to sort the query results?

1  Asked on October 26, 2021 by badm

   

Alter a path alias depending on a node property

1  Asked on October 26, 2021 by fizzz69

 

Webform variants as blocks

2  Asked on October 26, 2021 by lordaro

   

How do I redirect a domain but keep the URL structure?

1  Asked on October 26, 2021 by georgina-smith

     

How do I translate the weekday in a date?

1  Asked on October 26, 2021 by david-brugmans

     

Ask a Question

Get help from others!

© 2022 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP, SolveDir