TermNode does not account for source TID

Created on 12 October 2017, over 7 years ago
Updated 23 May 2025, about 1 month ago

Problem/Motivation

When migrating from d6 -> d8 and you have removed the tid from the migration config of the taxonomy_term (to allow auto-incrementing per comment), Term Node pulls the tid straight from source and does not map to the new tid, this not only doesn't map the relationship, but actually creates broken Nodes

d6_taxonomy_term.yml

# If you are using this file to build a custom migration consider removing
# the tid field to allow incremental migrations.
tid: tid

Working:

  • Migrate Vocab/terms/node/term_node without removing tid from taxonomy_term config
  • Expected relationships show up on Node:

Reproduced Issue:

  • Remove tid from taxonomy_term config
  • Migrate vocab/terms/node/term_node
  • Creates broken nodes for terms and no relationships on nodes are set to old tid:

Proposed resolution

Map to the source migration tid

🐛 Bug report
Status

Postponed

Version

11.0 🔥

Component

migration system

Created by

🇨🇦Canada b_sharpe

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024