I migrate my content from an old D7 site to D8 site. All went well, except the addresses from field address where not migrated to the new address field.
Then I use feeds, feeds_migrate, content-import... Nothing work for this.
Then finaly start learning how to do this in a custom module. I used the plugin from the module addres, I wrote my own plugin. No migration seems to work.
I have a CSV file with the addresses. There is also a NID row that is unique, I also try with the title field who also is unique. I try to import this csv file into my content type business. The nodes are existing with the NID numbers. Just try to fill the address in each content. All addresses are in Belgium.
Below my YML file in a custom module.
id: migzaal label: Adres veld migratie source: plugin: csv path: modules/custom/adresmigratie/assets/adresinvoer.csv header_row_count: 1 ids: - Nid process: nid: Nid field_adres: plugin: addressfield destination: plugin: 'entity:node' default_bundle: business overwrite_properties: - 'field_adres/address_line1' - 'field_adres/locality' - 'field_adres/postal_code' - 'field_adres/country'
Can someone guide me in the right direction. Thanks.