# Fehler beim CSV Datenimport erschließt sich mir nicht

**URL:** <https://forum.shopware.com/t/fehler-beim-csv-datenimport-erschliesst-sich-mir-nicht/53009>\
**Category:** Allgemein\
**Created:** [19. Mai 2018 um 19:44 UTC](https://forum.shopware.com/t/fehler-beim-csv-datenimport-erschliesst-sich-mir-nicht/53009 "2018-05-19T19:44:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stanley](https://avatars.discourse-cdn.com/v4/letter/s/7ab992/32.png) [@Stanley](https://forum.shopware.com/u/Stanley)\
**Post date:** [19. Mai 2018 um 19:44 UTC](https://forum.shopware.com/t/fehler-beim-csv-datenimport-erschliesst-sich-mir-nicht/53009/1 "2018-05-19T19:44:32Z")

</div>

Hallo Zusammen,

&nbsp;

ich habe in meiner alten CSV nur einige Preise geändert und auf kostenlosen Versand umgestellt und nun kommt der Fehler

&nbsp;

An exception occurred while executing ‚INSERT INTO s\_articles\_attributes (`attr1`, `attr2`, `attr3`, `attr4`, `attr5`, `attr6`, `attr7`, `attr8`, `attr9`, `attr10`, `attr11`, `attr12`, `attr13`, `attr14`, `attr15`, `attr16`, `attr18`, `attr19`, `attr20`, `attr17`, `articleID`, `articledetailsID`) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)‘ with params ["", „“, „“, „“, „“, „“, „“, „“, „“, „“, „“, „“, „“, „“, „“, „“, „“, „“, „“, „“, „227“, „1541“]: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`web53_shopware`.`s_articles_attributes`, CONSTRAINT `s_articles_attributes_ibfk_1` FOREIGN KEY (`articleID`) REFERENCES `s_articles` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION)

&nbsp;

Die CSV stammt von der letzten Einspielung vom Dez. 17, kann es damit zusammenhängen, das ich damals SW 5.3.4 hatte und es nun aktuellere Versionen gibt?

&nbsp;

Habt Ihr einen Lösungsansatz?

&nbsp;

Viele Grüße

Stanley

---

<div class="post-metadata">

**Author:** ![TimmeHosting](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/timmehosting/32/15580_2.png) [@TimmeHosting](https://forum.shopware.com/u/TimmeHosting)\
**Post date:** [20. Mai 2018 um 10:45 UTC](https://forum.shopware.com/t/fehler-beim-csv-datenimport-erschliesst-sich-mir-nicht/53009/2 "2018-05-20T10:45:42Z")

</div>

Versuch’ mal, Deine Foreign Keys zu reparieren: [https://community.shopware.com/Foreign-Keys-reparieren\_detail\_954.html](https://community.shopware.com/Foreign-Keys-reparieren_detail_954.html) (mach’ vorher unbedingt ein Backup Deiner Datenbank für alle Fälle).

![](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/1X/385eaa628505df573ebf33722f780335f53ac1b2.png)

Timme Hosting - schnelles nginx-Hosting

[www.timmehosting.de](https://timmehosting.de/)

---

<div class="post-metadata">

**Author:** ![Stanley](https://avatars.discourse-cdn.com/v4/letter/s/7ab992/32.png) [@Stanley](https://forum.shopware.com/u/Stanley)\
**Post date:** [20. Mai 2018 um 13:13 UTC](https://forum.shopware.com/t/fehler-beim-csv-datenimport-erschliesst-sich-mir-nicht/53009/3 "2018-05-20T13:13:07Z")

</div>

Ich habe es so gelöst, das ich einfach deine aktuelle CSV durch Export erstellt habe, dann habe ich den Inhalt übertragen und dann hat es funktioniert.

Vorher habe ich natürlich ein Back Up erstellt 🙂

&nbsp;

Danke für die Hilfe 🙂

&nbsp;

Topic kann geschlossen werden.

---

<div class="post-metadata">

**Author:** ![demaddin](https://avatars.discourse-cdn.com/v4/letter/d/f05b48/32.png) [@demaddin](https://forum.shopware.com/u/demaddin)\
**Post date:** [1. Juni 2018 um 15:38 UTC](https://forum.shopware.com/t/fehler-beim-csv-datenimport-erschliesst-sich-mir-nicht/53009/4 "2018-06-01T15:38:08Z")

</div>

Hallo,

habe ein ähnliches Problem:

An exception occurred while executing ‘INSERT INTO s\_articles\_attributes (`articleID`, `articledetailsID`) VALUES(?, ?)’ with params [“8467”, “8482”]: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`trowo`.`s_articles_attributes`, CONSTRAINT `s_articles_attributes_ibfk_1` FOREIGN KEY (`articleID`) REFERENCES `s_articles` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION)

Habe versucht entsprechend der Anleitung&nbsp;die Foreign Keys zu reparieren, jedoch leider ohne Erfolg ☹

Habe zusätzlich noch versucht mit den Datenbanktricks aus dem Forum die Varianten aufzuräumen, dies blieb jedoch ebenfalls ohne Erfolg.

Hat noch jemand Tipps oder würde mir bei der Lösung helfen?&nbsp;
