# Fehler beim Erstellen von Varianten seit Update auf 4.2.3

**URL:** <https://forum.shopware.com/t/fehler-beim-erstellen-von-varianten-seit-update-auf-4-2-3/20270>\
**Category:** Shopware 3.5\
**Tags:** programming\
**Created:** [14. Mai 2014 um 12:21 UTC](https://forum.shopware.com/t/fehler-beim-erstellen-von-varianten-seit-update-auf-4-2-3/20270 "2014-05-14T12:21:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lotuscrafts](https://avatars.discourse-cdn.com/v4/letter/l/a183cd/32.png) [@lotuscrafts](https://forum.shopware.com/u/lotuscrafts)\
**Post date:** [14. Mai 2014 um 12:21 UTC](https://forum.shopware.com/t/fehler-beim-erstellen-von-varianten-seit-update-auf-4-2-3/20270/1 "2014-05-14T12:21:59Z")

</div>

Seit dem Update auf 4.2.3 können wir keine Varianten Artikel mit neuen Attributen (z.B. Farben) erstellen. Beim generieren der Varianten erscheint der folgender Fehler: [quote]Fehler Beim Generieren der Artikel-Varianten ist ein Fehler aufgetreten: An exception occurred while executing ‘INSERT INTO s\_articles\_attributes (articleID, articledetailsID, attr1, attr2, attr3, attr4, attr5, attr6, attr7, attr8, attr9, attr10, attr11, attr12, attr13, attr14, attr15, attr16, attr17, attr18, attr19, attr20, idw\_meta\_title, idw\_meta\_keywords, idw\_meta\_description) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)’ with params [53, 635, “”, “”, “”, “”, “”, “”, “0”, “0”, “0”, “0”, “0”, “0”, “0”, “0”, “0”, “0”, null, “0”, “0”, “0”, null, null, null]: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`usrdb_lotywost`.`s_articles_attributes`, CONSTRAINT `s_articles_attributes_a85c4_2` FOREIGN KEY (`articledetailsID`) REFERENCES `articles_details` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTI)[/quote] Hat jemand einen Hinweis wo das Problem liegen könnte?

---

<div class="post-metadata">

**Author:** ![SebastianKloepper](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/sebastiankloepper/32/21435_2.png) [@SebastianKloepper](https://forum.shopware.com/u/SebastianKloepper)\
**Post date:** [14. Mai 2014 um 12:43 UTC](https://forum.shopware.com/t/fehler-beim-erstellen-von-varianten-seit-update-auf-4-2-3/20270/2 "2014-05-14T12:43:21Z")

</div>

Hallo, seit dem Update scheint das erst aufzufallen, da dabei der Cache geleert und neu generiert wurde. Das Problem wird höchstwahrscheinlich vorher bereits bestanden haben. Es deutet darauf hin, dass die Datenbank-Beziehungen defekt sind bzw. nicht mehr vorliegen. Daher auch diese Meldung: [quote]Cannot add or update a child row: a foreign key constraint fails (`usrdb_lotywost`.`s_articles_attributes`, CONSTRAINT `s_articles_attributes_a85c4_2` FOREIGN KEY (`articledetailsID`) REFERENCES `articles_details` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTI)[/quote] Am besten die Reperatur einmal durchführen nach der Anleitung [http://wiki.shopware.de/Foreign-Keys-re … l\_954.html](http://wiki.shopware.de/Foreign-Keys-reparieren%5C_detail%5C_954.html) Sebastian
