# Fehler bei Update von 5.6.10 auf 5.7.0 - Duplicate entry '249-1' for key 'element\_id\_shop\_id'

**URL:** <https://forum.shopware.com/t/fehler-bei-update-von-5-6-10-auf-5-7-0-duplicate-entry-249-1-for-key-element-id-shop-id/88330>\
**Category:** Allgemein\
**Created:** [14. Juni 2021 um 09:16 UTC](https://forum.shopware.com/t/fehler-bei-update-von-5-6-10-auf-5-7-0-duplicate-entry-249-1-for-key-element-id-shop-id/88330 "2021-06-14T09:16:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![SCOOPEX](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/scoopex/32/18328_2.png) [@SCOOPEX](https://forum.shopware.com/u/SCOOPEX)\
**Post date:** [14. Juni 2021 um 09:16 UTC](https://forum.shopware.com/t/fehler-bei-update-von-5-6-10-auf-5-7-0-duplicate-entry-249-1-for-key-element-id-shop-id/88330/1 "2021-06-14T09:16:40Z")

</div>

Hallo zusammen,

folgender Fehler ist bei der Aktualisierung mehrerer Shops, die mit und mit von Shopware 4 auf die zuletzt aktuelle 5.6.10 aktualisiert wurden beim Versuch auf 5.7.0 upzugraden, aufgetreten (Plugins waren alle als kompatibel markiert):

Error  
Received the following error message:  
Could not apply migration (Migrations\_Migration1703). Error: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry ‚249-1‘ for key ‚element\_id\_shop\_id‘

Please try to fix this error and restart the update.  
Response  
{„valid“:false,„errorMsg“:"Could not apply migration (Migrations\_Migration1703). Error: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry ‚249-1‘ for key ‚element\_id\_shop\_id‘ "}

Ich spiele dann mal Backups ein.

Viele Grüße

---

<div class="post-metadata">

**Author:** ![shyim](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/shyim/32/7681_2.png) [@shyim](https://forum.shopware.com/u/shyim)\
**Post date:** [14. Juni 2021 um 11:30 UTC](https://forum.shopware.com/t/fehler-bei-update-von-5-6-10-auf-5-7-0-duplicate-entry-249-1-for-key-element-id-shop-id/88330/2 "2021-06-14T11:30:38Z")

</div>

Hey @SCOOPEX ,

Könntest du uns die Tabellen `s_core_config_forms` und `s_core_config_elements` bereitstellen?  
Gern auch via PN

---

<div class="post-metadata">

**Author:** ![SCOOPEX](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/scoopex/32/18328_2.png) [@SCOOPEX](https://forum.shopware.com/u/SCOOPEX)\
**Post date:** [14. Juni 2021 um 11:36 UTC](https://forum.shopware.com/t/fehler-bei-update-von-5-6-10-auf-5-7-0-duplicate-entry-249-1-for-key-element-id-shop-id/88330/3 "2021-06-14T11:36:59Z")

</div>

@shyim - klar kann ich machen - in der Ursprungsversion oder nach dem fehlgeschlagenen Update ?

Viele Grüße

---

<div class="post-metadata">

**Author:** ![shyim](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/shyim/32/7681_2.png) [@shyim](https://forum.shopware.com/u/shyim)\
**Post date:** [14. Juni 2021 um 11:49 UTC](https://forum.shopware.com/t/fehler-bei-update-von-5-6-10-auf-5-7-0-duplicate-entry-249-1-for-key-element-id-shop-id/88330/4 "2021-06-14T11:49:08Z")

</div>

Ursprungsversion am besten
