# Fehler bei der Migration in Shopware 6: "400 Bad Request" für Feld "mainVariantId"

**URL:** https://forum.shopware.com/t/fehler-bei-der-migration-in-shopware-6-400-bad-request-fuer-feld-mainvariantid/100568
**Category:** Shopware 6 (German)
**Tags:** general, installation--gettin, administration, programming, other
**Created:** [19. Juli 2023 um 11:20 UTC](https://forum.shopware.com/t/fehler-bei-der-migration-in-shopware-6-400-bad-request-fuer-feld-mainvariantid/100568 "2023-07-19T11:20:26Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![danialomer000](https://avatars.discourse-cdn.com/v4/letter/d/9fc348/32.png) [@danialomer000](https://forum.shopware.com/u/danialomer000)
#### Post date: [19. Juli 2023 um 11:20 UTC](https://forum.shopware.com/t/fehler-bei-der-migration-in-shopware-6-400-bad-request-fuer-feld-mainvariantid/100568/1 "2023-07-19T11:20:27Z")

</div>

Hallo Shopware-Community,

Ich stehe derzeit vor einem Problem während des Migrationsprozesses in Shopware 6. Beim Versuch, von einer Quell-Shopware-Installation zu einer Ziel-Shopware-Installation zu migrieren, erhalte ich den Fehler „400 Bad Request“ im Zusammenhang mit dem Feld „mainVariantId“. Ich habe überprüft, dass die Datenbankstruktur und die Felder in beiden Installationen gleich sind.

Die Fehlermeldung, die ich erhalte, ist:  
„Client-Fehler: GET [https://digiturkalmanya.com/public/api/\_action/data-provider/get-total](https://digiturkalmanya.com/public/api/_action/data-provider/get-total) führte zu einer 400 Bad Request-Antwort: {“errors“:[{“status“:“400“, code: „FRAMEWORK\_\_UNMAPPED\_FIELD“, „title“: „Bad Request“, „detail“: „Feld „mainVariantId“ (abgeschnitten…)“

Ich habe die Migrationskonfiguration überprüft und sichergestellt, dass das Feld „mainVariantId“ korrekt zugeordnet ist. Das Feld „variant\_listing\_product“ ist in beiden Installationen vorhanden. Ich verwende das aktuellste kompatible Migrationstool für Shopware 6.

Könnten Sie mir bitte Hinweise zur Lösung dieses Problems geben? Für alle Erkenntnisse, Empfehlungen oder bekannten Lösungen wären wir sehr dankbar.

Vielen Dank im Voraus für Ihre Hilfe!

Mit freundlichen Grüßen,

Daniel.

---

<div class="post-metadata">

### Author: ![orange9](https://avatars.discourse-cdn.com/v4/letter/o/46a35a/32.png) [@orange9](https://forum.shopware.com/u/orange9)
#### Post date: [31. August 2023 um 15:20 UTC](https://forum.shopware.com/t/fehler-bei-der-migration-in-shopware-6-400-bad-request-fuer-feld-mainvariantid/100568/2 "2023-08-31T15:20:39Z")

</div>

der fehler tritt bei mir auf, wenn ich von einem 6.5 versuche mit dem migrationsplugin daten zu ziehen. von dem gleichen system vor dem update auf 6.4 läuft es noch.

in 6.5 wurde das Feld main\_variant\_id gelöscht bzw. in das feld variant\_listing\_config (generated json) geschoben. das migrationsplugin kommt damit jedoch nicht zurecht

---

<div class="post-metadata">

### Author: ![purpix](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/purpix/32/14639_2.png) [@purpix](https://forum.shopware.com/u/purpix)
#### Post date: [6. Oktober 2023 um 12:07 UTC](https://forum.shopware.com/t/fehler-bei-der-migration-in-shopware-6-400-bad-request-fuer-feld-mainvariantid/100568/3 "2023-10-06T12:07:41Z")

</div>

Bitte voten: [Shopware Issuetracker](https://issues.shopware.com/issues/MIG-880)

---

<div class="post-metadata">

### Author: ![Quadrato](https://avatars.discourse-cdn.com/v4/letter/q/b4bc9f/32.png) [@Quadrato](https://forum.shopware.com/u/Quadrato)
#### Post date: [4. November 2023 um 19:19 UTC](https://forum.shopware.com/t/fehler-bei-der-migration-in-shopware-6-400-bad-request-fuer-feld-mainvariantid/100568/4 "2023-11-04T19:19:40Z")

</div>

Gleiches Problem hier. Hat jemand einen work-around dafür?
