# Shopware Updater - Fehlermeldung beim updaten auf Shopware 5.2.12

**URL:** https://forum.shopware.com/t/shopware-updater-fehlermeldung-beim-updaten-auf-shopware-5-2-12/42308
**Category:** Installation/Einstieg
**Created:** [19. Dezember 2016 um 15:48 UTC](https://forum.shopware.com/t/shopware-updater-fehlermeldung-beim-updaten-auf-shopware-5-2-12/42308 "2016-12-19T15:48:09Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![mediaorange](https://avatars.discourse-cdn.com/v4/letter/m/f4b2a3/32.png) [@mediaorange](https://forum.shopware.com/u/mediaorange)
#### Post date: [19. Dezember 2016 um 15:48 UTC](https://forum.shopware.com/t/shopware-updater-fehlermeldung-beim-updaten-auf-shopware-5-2-12/42308/1 "2016-12-19T15:48:09Z")

</div>

Was kann ich gegen diesen Fehler tun?

 ![](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/1X/44ffe2324caf36b9ad117de8781a5014aa24230f.jpeg)

---

<div class="post-metadata">

### Author: ![Moritz\_Naczenski](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/moritz_naczenski/32/7792_2.png) [@Moritz\_Naczenski](https://forum.shopware.com/u/Moritz_Naczenski)
#### Post date: [19. Dezember 2016 um 17:10 UTC](https://forum.shopware.com/t/shopware-updater-fehlermeldung-beim-updaten-auf-shopware-5-2-12/42308/2 "2016-12-19T17:10:12Z")

</div>

Die Nummer der Migration (bei Response) ist leider abgeschnitten.

Wenn ich raten müsste, würde ich vermuten es gibt bei dir ein Media-Album mit der ID -13, das aber vom Update angelegt wird.

---

<div class="post-metadata">

### Author: ![mediaorange](https://avatars.discourse-cdn.com/v4/letter/m/f4b2a3/32.png) [@mediaorange](https://forum.shopware.com/u/mediaorange)
#### Post date: [23. Dezember 2016 um 13:41 UTC](https://forum.shopware.com/t/shopware-updater-fehlermeldung-beim-updaten-auf-shopware-5-2-12/42308/3 "2016-12-23T13:41:04Z")

</div>

Die Vollständige Fehlermeldung nochmal in Textform:

Error  
Received the following error message:  
Could not apply migration (Migrations\_Migration609). Error: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry ‘-13’ for key ‘PRIMARY’

Please try to fix this error and restart the update.  
Response

{“valid”:false,“errorMsg”:"Could not apply migration (Migrations\_Migration609). Error: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry ‘-13’ for key ‘PRIMARY’ "}

---

<div class="post-metadata">

### Author: ![steinsoftware](https://avatars.discourse-cdn.com/v4/letter/s/b487fb/32.png) [@steinsoftware](https://forum.shopware.com/u/steinsoftware)
#### Post date: [23. Dezember 2016 um 15:19 UTC](https://forum.shopware.com/t/shopware-updater-fehlermeldung-beim-updaten-auf-shopware-5-2-12/42308/4 "2016-12-23T15:19:30Z")

</div>

> [@Moritz Naczenski schrieb:](https://forum.shopware.com/profile/14574/Moritz%20Naczenski "Moritz%20Naczenski")
> 
> Die Nummer der Migration (bei Response) ist leider abgeschnitten.
> 
> Wenn ich raten müsste, würde ich vermuten es gibt bei dir ein Media-Album mit der ID -13, das aber vom Update angelegt wird.

---

<div class="post-metadata">

### Author: ![R4M](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/r4m/32/9983_2.png) [@R4M](https://forum.shopware.com/u/R4M)
#### Post date: [4. Januar 2017 um 12:33 UTC](https://forum.shopware.com/t/shopware-updater-fehlermeldung-beim-updaten-auf-shopware-5-2-12/42308/5 "2017-01-04T12:33:14Z")

</div>

Das ist ja merkwürdig. Vielleicht mal in die Tabelle s\_media\_album schauen welches Album dort die -13 belegt. Beim Update kommt ein Papierkorb als Album hinzu was auch die -13 hat. Wenn dem so ist, dann muss das ursprüngliche Album mit der -13 natürlich gelöscht werden - die Bilder dann vorher verschieben.

Was mich wundert ist, dass so eine Meldung normalerweise in der Grundversion von Shopware nicht passiert. Womöglich ein Fremdplugin im Spiel?

---

<div class="post-metadata">

### Author: ![mediaorange](https://avatars.discourse-cdn.com/v4/letter/m/f4b2a3/32.png) [@mediaorange](https://forum.shopware.com/u/mediaorange)
#### Post date: [17. Januar 2017 um 15:10 UTC](https://forum.shopware.com/t/shopware-updater-fehlermeldung-beim-updaten-auf-shopware-5-2-12/42308/6 "2017-01-17T15:10:07Z")

</div>

Ich habe in der Tabelle s\_media\_album nachgeschaut. Es sieht wie folgt aus…

 ![](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/2X/5/5c07879db24a0c2405bc1c8a88b8f2dc9bed95ed.jpeg)

Wie verschiebe ich nun die Bilder? Und wo sehe ich, um welche Bilder es geht?

Schönen Gruß
