# Fehler bei Migration von Shopware 5 auf 6

**URL:** <https://forum.shopware.com/t/fehler-bei-migration-von-shopware-5-auf-6/95044>\
**Category:** Installation / Einstieg\
**Created:** [30. Juni 2022 um 10:21 UTC](https://forum.shopware.com/t/fehler-bei-migration-von-shopware-5-auf-6/95044 "2022-06-30T10:21:25Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![eburya](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/eburya/32/17500_2.png) [@eburya](https://forum.shopware.com/u/eburya)\
**Post date:** [30. Juni 2022 um 10:21 UTC](https://forum.shopware.com/t/fehler-bei-migration-von-shopware-5-auf-6/95044/1 "2022-06-30T10:21:25Z")

</div>

Hallo in die Runde,  
wir wollen unseren Shop von 5 auf 6 migrieren.  
Den leeren Shopware 6 Shop haben wir auf einer Subdomain installiert und die Shops per API verbunden. Wenn wir nun die Migration starten, läuft die auch an und wird als erfolgreich angezeigt, übertragen wird aber nichts, bis auf die Artikeleigenschaften.  
Bei den Migrationsdetails werden 25 Systemfehler und 1 Schreibfehler angezeigt  
Ich füge mal den Anfang und den Schluss vom Fehlerlog ein, vielleicht kann jemand erkennen, wo das Problem liegen könnte.

Profile: shopware57  
Gateway: api

Selected data:

- basicSettings (total: 0)
  - language (total: 0)
  - category\_custom\_field (total: 0)
  - category (total: 0)
  - customer\_group\_custom\_field (total: 0)
  - customer\_group (total: 0)
  - currency (total: 0)
  - sales\_channel (total: 0)
  - number\_range (total: 0)

- products (total: 1)
  - media\_folder (total: 0)
  - product\_custom\_field (total: 0)
  - product\_price\_custom\_field (total: 0)
  - product\_manufacturer\_custom\_field (total: 0)
  - product (total: 0)
  - property\_group\_option (total: 1)
  - product\_option\_relation (total: 0)
  - product\_property\_relation (total: 0)
  - translation (total: 0)
  - product\_cross\_selling (total: 0)
  - main\_variant\_relation (total: 0)

- processMediaFiles (total: 0)
  - media (total: 0)

--------------------Log-entries---------------------

[error] SWAG\_MIGRATION\_RUN\_EXCEPTION  
An exception occurred  
Entity: language, sourceId: -  
SwagMigrationAssistant\Migration\Logging\Log\ExceptionRunLog::\_\_construct(): Argument #4 ($sourceId) must be of type ?string, int given, called in /www/htdocs/…/sw6.shop.de/custom/plugins/SwagMigrationAssistant/Migration/Service/MigrationDataConverter.php on line 144

[error] SWAG\_MIGRATION\_RUN\_EXCEPTION  
An exception occurred  
Entity: category, sourceId: -  
SwagMigrationAssistant\Profile\Shopware\Converter\ShopwareConverter::getSourceIdentifier(): Return value must be of type string, int returned

[error] SWAG\_MIGRATION\_RUN\_EXCEPTION  
An exception occurred  
Entity: category, sourceId: -  
SwagMigrationAssistant\Profile\Shopware\Converter\ShopwareConverter::getSourceIdentifier(): Return value must be of type string, int returned

[error] SWAG\_MIGRATION\_RUN\_EXCEPTION  
An exception occurred  
Entity: customer\_group, sourceId: -  
SwagMigrationAssistant\Profile\Shopware\Converter\ShopwareConverter::getSourceIdentifier(): Return value must be of type string, int returned

[error] SWAG\_MIGRATION\_RUN\_EXCEPTION  
An exception occurred  
Entity: sales\_channel, sourceId: -  
SwagMigrationAssistant\Profile\Shopware\Converter\ShopwareConverter::getSourceIdentifier(): Return value must be of type string, int returned

usw…

{  
„entity“: „property\_group\_option“,  
„dataId“: „a5508e79b6ad48a7b4f50c8a2f964775“,  
„error“: {  
„code“: „c1051bb4-d103-4f74-8988-acbcafc7fdc3“,  
„status“: „400“,  
„detail“: „Dieser Wert sollte nicht leer sein.“,  
„template“: „This value should not be blank.“,  
„meta“: {  
„parameters“: {  
„{{ value }}“: „null“  
}  
},  
„source“: {  
„pointer“: „/0/translations/2fbb5fe2e29a4d70aa5854ce7ce3e20b/name“  
}  
}  
}

---

<div class="post-metadata">

**Author:** ![AB14](https://avatars.discourse-cdn.com/v4/letter/a/7feea3/32.png) [@AB14](https://forum.shopware.com/u/AB14)\
**Post date:** [28. Juli 2022 um 15:21 UTC](https://forum.shopware.com/t/fehler-bei-migration-von-shopware-5-auf-6/95044/2 "2022-07-28T15:21:52Z")

</div>

ich habe den gleichen Fehler, habt ihr es lösen können?

---

<div class="post-metadata">

**Author:** ![eburya](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/eburya/32/17500_2.png) [@eburya](https://forum.shopware.com/u/eburya)\
**Post date:** [28. Juli 2022 um 15:51 UTC](https://forum.shopware.com/t/fehler-bei-migration-von-shopware-5-auf-6/95044/3 "2022-07-28T15:51:42Z")

</div>

Bisher leider noch nicht.

---

<div class="post-metadata">

**Author:** ![bessermitbutter](https://avatars.discourse-cdn.com/v4/letter/b/a3d4f5/32.png) [@bessermitbutter](https://forum.shopware.com/u/bessermitbutter)\
**Post date:** [5. Oktober 2022 um 10:09 UTC](https://forum.shopware.com/t/fehler-bei-migration-von-shopware-5-auf-6/95044/4 "2022-10-05T10:09:42Z")

</div>

ich sehe diese Fehler ebenfalls bei einer Migration von 5.7.15 auf 6.

Gibt es einen Ansatz zur Analyse oder Behebung?

---

<div class="post-metadata">

**Author:** ![superoelk](https://avatars.discourse-cdn.com/v4/letter/s/6a8cbe/32.png) [@superoelk](https://forum.shopware.com/u/superoelk)\
**Post date:** [11. April 2023 um 14:32 UTC](https://forum.shopware.com/t/fehler-bei-migration-von-shopware-5-auf-6/95044/5 "2023-04-11T14:32:31Z")

</div>

_push_  
Ebenso hier der Fehler…

---

<div class="post-metadata">

**Author:** ![ag\_WebLabels](https://avatars.discourse-cdn.com/v4/letter/a/71c47a/32.png) [@ag\_WebLabels](https://forum.shopware.com/u/ag_WebLabels)\
**Post date:** [14. April 2023 um 13:38 UTC](https://forum.shopware.com/t/fehler-bei-migration-von-shopware-5-auf-6/95044/6 "2023-04-14T13:38:23Z")

</div>

Moin, habe den selben Fehler. Konnte es gelöst werden?

---

<div class="post-metadata">

**Author:** ![lauramarie-style](https://avatars.discourse-cdn.com/v4/letter/l/258eb7/32.png) [@lauramarie-style](https://forum.shopware.com/u/lauramarie-style)\
**Post date:** [15. April 2023 um 07:41 UTC](https://forum.shopware.com/t/fehler-bei-migration-von-shopware-5-auf-6/95044/7 "2023-04-15T07:41:29Z")

</div>

Hallo zusammen.

Habe auf einer englischen Seite was gefunden. Es liegt wohl an der PHP Version. Habe ein downgrade auf 8.0 gemacht und zack alle Daten migriert.

Viele Grüße

---

<div class="post-metadata">

**Author:** ![eburya](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/eburya/32/17500_2.png) [@eburya](https://forum.shopware.com/u/eburya)\
**Post date:** [15. April 2023 um 10:45 UTC](https://forum.shopware.com/t/fehler-bei-migration-von-shopware-5-auf-6/95044/8 "2023-04-15T10:45:06Z")

</div>

Hi, auf welcher Seite denn? Wäre interssant mal nachzulesen.

---

<div class="post-metadata">

**Author:** ![eburya](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/eburya/32/17500_2.png) [@eburya](https://forum.shopware.com/u/eburya)\
**Post date:** [15. April 2023 um 10:50 UTC](https://forum.shopware.com/t/fehler-bei-migration-von-shopware-5-auf-6/95044/9 "2023-04-15T10:50:03Z")

</div>

Schön, dass das hier ein wenig belebter wird.  
Wir haben die Migration auch neu gestartet und diesmal scheint sie durchzulaufen.  
Einzige Unterschiede zu letztem Jahr sind die PHP Version (8.1 anstatt 7.4) und die aktuelleren Shopware Versionen (SW 5.7.17 und 6.4.20.0)

---

<div class="post-metadata">

**Author:** ![lauramarie-style](https://avatars.discourse-cdn.com/v4/letter/l/258eb7/32.png) [@lauramarie-style](https://forum.shopware.com/u/lauramarie-style)\
**Post date:** [15. April 2023 um 11:01 UTC](https://forum.shopware.com/t/fehler-bei-migration-von-shopware-5-auf-6/95044/10 "2023-04-15T11:01:53Z")

</div>

Hi.

Hier war es: [migration - SWAG\_MIGRATION\_RUN\_EXCEPTION in logs while migrating from shopware5 to shopware6 - Stack Overflow](https://stackoverflow.com/questions/73169064/swag-migration-run-exception-in-logs-while-migrating-from-shopware5-to-shopware6)

VG

Marcel

---

<div class="post-metadata">

**Author:** ![revexibox](https://avatars.discourse-cdn.com/v4/letter/r/7bcc69/32.png) [@revexibox](https://forum.shopware.com/u/revexibox)\
**Post date:** [17. April 2023 um 08:52 UTC](https://forum.shopware.com/t/fehler-bei-migration-von-shopware-5-auf-6/95044/11 "2023-04-17T08:52:55Z")

</div>

Guten Morgen,

habe es nun mit der Methode von @lauramarie-style versucht. Auch das php-Update von @eburya habe ich versucht.  
Leider ohne brauchbaren Erfolg.  
Der komplette Shop außer Bilder werden migriert. Gibt es hier noch eine andere Lösung?

---

<div class="post-metadata">

**Author:** ![m\_arcus\_m](https://avatars.discourse-cdn.com/v4/letter/m/848f3c/32.png) [@m\_arcus\_m](https://forum.shopware.com/u/m_arcus_m)\
**Post date:** [17. Juli 2023 um 11:47 UTC](https://forum.shopware.com/t/fehler-bei-migration-von-shopware-5-auf-6/95044/12 "2023-07-17T11:47:23Z")

</div>

Mit PHP 8.0 klappt es: [Shopware Issuetracker](https://issues.shopware.com/issues/MIG-817)

---

<div class="post-metadata">

**Author:** ![alex.d](https://avatars.discourse-cdn.com/v4/letter/a/94ad74/32.png) [@alex.d](https://forum.shopware.com/u/alex.d)\
**Post date:** [28. August 2023 um 13:13 UTC](https://forum.shopware.com/t/fehler-bei-migration-von-shopware-5-auf-6/95044/13 "2023-08-28T13:13:24Z")

</div>

Ich hatte dasselbe Problem: Laut Migrations-Log wurde zwar alle Medien übertragen aber im Backend (Medienverwaltung) werden die Dateien nicht korrekt dargestellt - als wären sie nur „halb geschrieben“.

[error] SWAG\_MIGRATION\_RUN\_EXCEPTION  
An exception occurred  
Entity: media, sourceId: -  
No file system permissions to create or write to files or directories.

Nach Rücksprache mit dem Hoster ware alle Einstellungen hinsichtlich Rechten / Verzeichnissen serverseitig korrekt.

Ich hatte die Migration bereits mehrfach wiederholt und hierbei PHP Versionen (8.0, 8.1, 8.2 und 7.4) probiert - alles leider erfolglos.

Ich haben nun die Migration erneut unter Shopware 6.5.4.1 und PHP 8.1 wiederholt und siehe da, es funktioniert: Die Produkt-Bilder werden endlich korrekt in der Verwaltung angezeigt.
