I'm trying import taxonomy terms from a json file which I can't change, into a drupal site taxonomy called skills_identified via a yaml file
id: sf_taxonomy_terms
label: 'Taxonomy Terms Migration'
migration_group: sf_taxonomy_terms
source:
plugin: url
data_fetcher_plugin: file
data_parser_plugin: json
urls: 'modules/custom/migration_sf/files/sf_taxonomy_terms.json'
item_selector: skills_identified
fields:
- name: tid
label: 'Term ID'
selector: Id
- name: name
label: 'Name'
selector: Value
ids:
tid:
type: integer
process:
vid:
plugin: default_value
default_value: skills_identified
name: name
parent:
plugin: migration_lookup
migration: sf_taxonomy_terms
source: parent
destination:
plugin: 'entity:taxonomy_term'
default_bundle: skills_identified
This is my json file
[
{
"title": "Test title",
"year_of_entry": "2024/25",
"programme_code": 9135,
"skills_identified": [
{
"Id": 0,
"Value": "Research"
},
{
"Id": 2,
"Value": "Critical thinking"
}
],
"careers_direct": [],
"careers_broad": [],
"careers_gos": []
},
{
"title": "A title for my content",
"year_of_entry": "2024/25",
"programme_code": 9146,
"skills_identified": [
{
"Id": 3,
"Value": "Leadership"
},
{
"Id": 4,
"Value": "Creative thinking"
}
],
"careers_direct": [],
"careers_broad": [],
"careers_gos": []
}
]
I have imported "title","year_of_entry" and "programme_code" fields successfully into my content type but I'm having difficulty with taxonomy terms.