# SW Update Fehler

**URL:** https://forum.shopware.com/t/sw-update-fehler/71702
**Category:** Allgemein
**Created:** [21. Dezember 2020 um 18:12 UTC](https://forum.shopware.com/t/sw-update-fehler/71702 "2020-12-21T18:12:20Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Kerstin83](https://avatars.discourse-cdn.com/v4/letter/k/49beb7/32.png) [@Kerstin83](https://forum.shopware.com/u/Kerstin83)
#### Post date: [21. Dezember 2020 um 18:12 UTC](https://forum.shopware.com/t/sw-update-fehler/71702/1 "2020-12-21T18:12:20Z")

</div>

Liebes Forum 🙂 🙂

ich versuche von SW5.4.6 auf SW5.6.9 upzudaten. Es kommt der folgende Fehler:

> Error
> 
> Received the following error message:  
> Could not apply migration (Migrations\_Migration1627). Error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`db_meinshop1`.`#sql-9cf_3544b94`, CONSTRAINT `#sql-9cf_3544b94_ibfk_1` FOREIGN KEY (`orderID`) REFERENCES `s_order` (`id`) ON DELETE CASCADE)
> 
> Please try to fix this error and restart the update.
> 
> Response
> 
> {„valid“:false,„errorMsg“:"Could not apply migration (Migrations\_Migration1627). Error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`db_meinshop1`.`#sql-9cf_3544b94`, CONSTRAINT `#sql-9cf_3544b94_ibfk_1` FOREIGN KEY (`orderID`) REFERENCES `s_order` (`id`) ON DELETE CASCADE) "}

Was könnte das sein ?

Liebe Grüße

Kerstin 🙂

---

<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: [21. Dezember 2020 um 18:53 UTC](https://forum.shopware.com/t/sw-update-fehler/71702/2 "2020-12-21T18:53:57Z")

</div>

Hallo,

siehe Upgrade Hinweise (verwaiste Einträge in der Datenbank):

> **[Shopware 5 - Update Guides - Update Guide Shopware 5.6](https://docs.shopware.com/de/shopware-5-de/update-guides/update-guide-shopware-56)**

Viele Grüße

---

<div class="post-metadata">

### Author: ![Kerstin83](https://avatars.discourse-cdn.com/v4/letter/k/49beb7/32.png) [@Kerstin83](https://forum.shopware.com/u/Kerstin83)
#### Post date: [22. Dezember 2020 um 10:01 UTC](https://forum.shopware.com/t/sw-update-fehler/71702/3 "2020-12-22T10:01:34Z")

</div>

Vielen Dank. Das hat wirklich geklappt. Ich denke, das hätte SW aber eigentlich auch beim Upgrade abfangen können.

Wie kömmt es denn zu solchen verwaisten Einträgen. Ich habe niemls nie einen Eintrag in s\_order gelöscht.

Liebe Grüße

Kerstin 🙂
