Error: importing taxonomy terms

Created on 24 July 2025, 12 days ago

Problem/Motivation

Hi, everyone!

When I try to import a `taxonomy_term` with Single Content Sync, it throws this error:

Warning: Undefined array key "entity_type"
The "" entity type doesn’t exist.

It’s weird because the main `taxonomy_term` has `entity_type` set correctly, but the import messes up when dealing with nested stuff like parent terms or referenced fields, which use `type` instead of `entity_type`.

Im using Drupal 10.4.6 & PHP 8.3.21.

---

Steps to reproduce

1. Export a `taxonomy_term` that’s got parent terms or references to things like paragraphs or media.
2. Try importing that on another environment with Single Content Sync.
3. Error.

---

Proposed resolution

N/A

---

Remaining tasks

- Tweak the error handling when importing.
- Maybe add some validation beforehand to catch missing `entity_type`.

---

User interface changes

N/A

---

API changes

N/A

---

Data model changes

N/A

πŸ› Bug report
Status

Active

Version

1.4

Component

Code

Created by

πŸ‡ͺπŸ‡ΈSpain pau.sanz

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024