# Fehler Update 5.6.2 -\> 5.6.6 Duplicate entry 's\_core\_paymentmeans\_attributes-connect

**URL:** https://forum.shopware.com/t/fehler-update-5-6-2-5-6-6-duplicate-entry-s-core-paymentmeans-attributes-connect/65603
**Category:** Allgemein
**Created:** [19. März 2020 um 12:07 UTC](https://forum.shopware.com/t/fehler-update-5-6-2-5-6-6-duplicate-entry-s-core-paymentmeans-attributes-connect/65603 "2020-03-19T12:07:15Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![livaro2014](https://avatars.discourse-cdn.com/v4/letter/l/439d5e/32.png) [@livaro2014](https://forum.shopware.com/u/livaro2014)
#### Post date: [19. März 2020 um 12:07 UTC](https://forum.shopware.com/t/fehler-update-5-6-2-5-6-6-duplicate-entry-s-core-paymentmeans-attributes-connect/65603/1 "2020-03-19T12:07:15Z")

</div>

Bei der Datenbankmigration bekomme ich diesen Fehler:

```
 {"valid":false,"errorMsg":"Could not apply migration (Migrations\_Migration1652). Error: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 's\_core\_paymentmeans\_attributes-connect\_is\_allowed' for key 'table\_column\_unique' "}

```

Wie kann ich den beheben?

Vielen Dank

---

<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: [19. März 2020 um 12:08 UTC](https://forum.shopware.com/t/fehler-update-5-6-2-5-6-6-duplicate-entry-s-core-paymentmeans-attributes-connect/65603/2 "2020-03-19T12:08:56Z")

</div>

Scheint im Prinzip das selbe zu sein wie hier:

> **[Update Probleme (Datenbank Migration) von 5.6.4 auf 5.6.5](https://forum.shopware.com/discussion/66573/update-probleme-datenbank-migration-von-5-6-4-auf-5-6-5)**
>
> Bin gerade dabei das Update von 5.6.4 auf 5.6.5 durchzuführen, aber beim Punkt Datenbank Migration bekomme ich folgende Fehlermeldung: Error Received the following error message: Could not apply migration (Migrations\_Migration1652). Error:...

&nbsp;

---

<div class="post-metadata">

### Author: ![livaro2014](https://avatars.discourse-cdn.com/v4/letter/l/439d5e/32.png) [@livaro2014](https://forum.shopware.com/u/livaro2014)
#### Post date: [19. März 2020 um 12:15 UTC](https://forum.shopware.com/t/fehler-update-5-6-2-5-6-6-duplicate-entry-s-core-paymentmeans-attributes-connect/65603/3 "2020-03-19T12:15:34Z")

</div>

Nur das es die payment Tabelle ist und nicht die s\_articles

&nbsp;

---

<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: [19. März 2020 um 12:18 UTC](https://forum.shopware.com/t/fehler-update-5-6-2-5-6-6-duplicate-entry-s-core-paymentmeans-attributes-connect/65603/4 "2020-03-19T12:18:17Z")

</div>

> Duplicate entry

Das ist egal, scheint aber der gleiche Effekt zu sein, zu Deutsch der Eintrag existiert schon.&nbsp;

---

<div class="post-metadata">

### Author: ![livaro2014](https://avatars.discourse-cdn.com/v4/letter/l/439d5e/32.png) [@livaro2014](https://forum.shopware.com/u/livaro2014)
#### Post date: [19. März 2020 um 12:21 UTC](https://forum.shopware.com/t/fehler-update-5-6-2-5-6-6-duplicate-entry-s-core-paymentmeans-attributes-connect/65603/5 "2020-03-19T12:21:50Z")

</div>

schau mal das ist die s\_core\_paymenteans…

 ![](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/2X/c/cc53768e5fec1666c83b4084a4fc6830fc4ce6e9.png)

---

<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: [19. März 2020 um 13:31 UTC](https://forum.shopware.com/t/fehler-update-5-6-2-5-6-6-duplicate-entry-s-core-paymentmeans-attributes-connect/65603/6 "2020-03-19T13:31:02Z")

</div>

Ne, in der Migration 1652 geht es um die Tabelle s\_attribute\_configuration, schau mal bitte ob dort „connect\_is\_allowed“ doppelt vorkommt.

Also der Eintrag „s\_core\_paymentmeans\_attributes“ in Verbindung mit „connect\_is\_allowed“ darf nur einmal in dieser Tabelle vorkommen. Siehe mein Link oben.

---

<div class="post-metadata">

### Author: ![livaro2014](https://avatars.discourse-cdn.com/v4/letter/l/439d5e/32.png) [@livaro2014](https://forum.shopware.com/u/livaro2014)
#### Post date: [19. März 2020 um 13:37 UTC](https://forum.shopware.com/t/fehler-update-5-6-2-5-6-6-duplicate-entry-s-core-paymentmeans-attributes-connect/65603/7 "2020-03-19T13:37:16Z")

</div>

jo stimmt der kommt 2x vor mit ID 33 und 34.

Welchen davon kann ich denn rauswerfen oder egal?

---

<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: [19. März 2020 um 13:50 UTC](https://forum.shopware.com/t/fehler-update-5-6-2-5-6-6-duplicate-entry-s-core-paymentmeans-attributes-connect/65603/8 "2020-03-19T13:50:53Z")

</div>

Mach vorher ein Backup von der Datenbank und lösche danach die kleiner ID, also die 33. Dann das Update neu versuchen.

---

<div class="post-metadata">

### Author: ![livaro2014](https://avatars.discourse-cdn.com/v4/letter/l/439d5e/32.png) [@livaro2014](https://forum.shopware.com/u/livaro2014)
#### Post date: [19. März 2020 um 14:10 UTC](https://forum.shopware.com/t/fehler-update-5-6-2-5-6-6-duplicate-entry-s-core-paymentmeans-attributes-connect/65603/9 "2020-03-19T14:10:31Z")

</div>

ok bin schon mal weiter, nur jetzt kommt beim aufräumen ein 503

&nbsp;

---

<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: [19. März 2020 um 14:13 UTC](https://forum.shopware.com/t/fehler-update-5-6-2-5-6-6-duplicate-entry-s-core-paymentmeans-attributes-connect/65603/10 "2020-03-19T14:13:04Z")

</div>

Dann mal schauen was in den Logs dazu steht:

- Fehlermeldungen in Shopware debuggen und untersuchen  
[Shopware 5 - Tutorials & FAQs - Fehlermeldungen in Shopware debuggen](https://docs.shopware.com/de/shopware-5-de/tutorials-und-faq/fehlermeldungen-in-shopware-debuggen)

- Fehlermeldungen in error\_log auf Server untersuchen (mögliche PHP-Fehler)  
Bitte nicht mit Shopware Log verwechseln. Liegt meist außerhalb vom httpdocs-Order der Domain - ggf. beim Hoster anfragen.

&nbsp;

---

<div class="post-metadata">

### Author: ![livaro2014](https://avatars.discourse-cdn.com/v4/letter/l/439d5e/32.png) [@livaro2014](https://forum.shopware.com/u/livaro2014)
#### Post date: [19. März 2020 um 18:17 UTC](https://forum.shopware.com/t/fehler-update-5-6-2-5-6-6-duplicate-entry-s-core-paymentmeans-attributes-connect/65603/11 "2020-03-19T18:17:28Z")

</div>

ok habe den Fehler gefunden 🙂

Allowed memory exhausted…

Habe den PHP Speicher auf 512 gesetzt, jetzt ging es.

Vielen Dank
