# Kategorietyp ändern fehler

**URL:** <https://forum.shopware.com/t/kategorietyp-aendern-fehler/106251>\
**Category:** Shopware 6 (German)\
**Created:** [11. Januar 2025 um 10:29 UTC](https://forum.shopware.com/t/kategorietyp-aendern-fehler/106251 "2025-01-11T10:29:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![brettvormkopp](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/brettvormkopp/32/7788_2.png) [@brettvormkopp](https://forum.shopware.com/u/brettvormkopp)\
**Post date:** [11. Januar 2025 um 10:29 UTC](https://forum.shopware.com/t/kategorietyp-aendern-fehler/106251/1 "2025-01-11T10:29:15Z")

</div>

Beim wechsel des Kategorietyp „Seite / Liste“ auf „Link“ gibt es weiterhin Probleme (ich glaub ich habe das mal vor einem halben Jahr erwähnt)

**Kategorietyp „Seite / Liste“ auf „Link“**

- category.product\_stream\_id wird nicht ge- **NULL** -t

- category.product\_assignment\_type wechselt nicht von „ **product\_stream** “ auf „ **product** “

- Resultat: Dynamsische Produktgruppen welche dieser Kategorie irgendwann einmal zugeordnet waren lassen sich nicht löschen. (Foreign key)

- Resultat: Produkte haben dann solange „Datenleichen“ in product.stream\_ids

Danke und Gruss

---

<div class="post-metadata">

**Author:** ![brettvormkopp](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/brettvormkopp/32/7788_2.png) [@brettvormkopp](https://forum.shopware.com/u/brettvormkopp)\
**Post date:** [11. Januar 2025 um 10:39 UTC](https://forum.shopware.com/t/kategorietyp-aendern-fehler/106251/2 "2025-01-11T10:39:30Z")

</div>

Meine vorläufige Lösung ist dieses SQL Query.

```auto
UPDATE category SET product_stream_id = NULL, product_assignment_type = 'product' WHERE type = 'link'

```

Anschliessend cache löschen und indizes neu erstellen
