There are a couple of questions that are closely related to this on this forum that I have reviewed several times. None of them seem to address the issue specifically.
I have a target field (with subfields) that is set to unlimited.
The Source that I'm "migrating" from is JSON. The Target, in this case, is an address field on a node.
To simplify and debug the migration. I created a constant as a source for the values that I want to assign to field_locations/country_code.
The code in the migration configuration YAML is
source:
constants:
title_suffix: ' (Imported from remote file)'
country: 'GB'
countries:
-
country: US
-
country: CA
....
process:
field_locations:
plugin: sub_process
source:
- constants/countries
process:
country_code: country
If I replace the implementation of the sub_process plugin and use get, I update the target field (subfield actually) with:
field_locations/country_code: constants/country
The destination row is updated perfectly - though of course I can only et
For reference: This is what the entity should look like with repeating values set. How do I get that to work with this migration? I'm guessing there is something pretty simple I'm missing