[@Moritz Naczenski](http://forum.shopware.com/profile/14574/Moritz Naczenski „Moritz Naczenski“)
Bekomme folgende Fehlermeldung im var/log (unseren Server, den Gutscheincode usw. hab ich durch xxxx in der Fehlermeldung ersetzt):
„request.CRITICAL: Uncaught PHP Exception Doctrine\DBAL\Exception\ForeignKeyConstraintViolationException: „An exception occurred while executing ‚INSERT INTO hatslogic_abandoned_cart_items
(id
, abandoned_cart_id
, product_id
, product_version_id
, label
, payload
, quantity
, unit_price
, total_price
, price_definition
, price
, created_at
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)‘ with params [“\x82\x4f\x87\x84\x8f\x3b\x48\x03\x80\xeb\x4b\x44\x3f\x5b\x2c\xfd“, „\x43\x25\xea\x63\x14\x66\x44\x2a\xab\x36\xda\x18\x14\x01\xf3\x79“, „\xaa\x8a\xa3\x79\x73\x46\x4f\xbb\xb2\x85\xbf\x8a\x45\x5c\xe5\xf3“, „\x0f\xa9\x1c\xe3\xe9\x6a\x4b\xc2\xbe\x4b\xd9\xce\x75\x2c\x34\x25“, „Gutschein xxxx“, „{„promotionId“:„b37dada6208d4feead541a3185dcc8eb“,„discountId“:„aa8aa37973464fbbb285bf8a455ce5f3“,„discountType“:„percentage“,„code“:„xxxx“,„value“:„14“,„maxValue“:“",„discountScope“:„cart“,„groupId“:"",„setGroups“:,„filter“:{„sorterKey“:null,„applierKey“:null,„usageKey“:null},„composition“:[{„id“:„b1af7e751fe447b883f286ddf791d128“,„quantity“:1,„discount“:13.9860000000000024300561562995426356792449951171875}]}", 1, -13.9900000000000002131628207280300557613372802734375, -13.9900000000000002131628207280300557613372802734375, „{„percentage“:-14.0,„filter“:null,„precision“:2,„type“:„percentage“}“, „{„unitPrice“:-13.9900000000000002131628207280300557613372802734375,„totalPrice“:-13.9900000000000002131628207280300557613372802734375,„quantity“:1,„calculatedTaxes“:[{„tax“:-2.229999999999999982236431605997495353221893310546875,„taxRate“:19.0,„price“:-13.9900000000000002131628207280300557613372802734375,„extensions“:}],„taxRules“:[{„taxRate“:19.0,„percentage“:100.0,„extensions“:}],„referencePrice“:null,„listPrice“:null}“, „2020-02-20 20:08:59.648“]: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (d0300d03
.hatslogic_abandoned_cart_items
, CONSTRAINT fk.hatslogic_abandoned_cart_items.product_id
FOREIGN KEY (product_id
, product_version_id
) REFERENCES product
(id
, version_id
)" at /www/htdocs/xxxx/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php line 49 {„exception“:"[object] (Doctrine\DBAL\Exception\ForeignKeyConstraintViolationException(code: 0): An exception occurred while executing ‚INSERT INTO hatslogic_abandoned_cart_items
(id
, abandoned_cart_id
, product_id
, product_version_id
, label
, payload
, quantity
, unit_price
, total_price
, price_definition
, price
, created_at
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)‘ with params ["\x82\x4f\x87\x84\x8f\x3b\x48\x03\x80\xeb\x4b\x44\x3f\x5b\x2c\xfd", „\x43\x25\xea\x63\x14\x66\x44\x2a\xab\x36\xda\x18\x14\x01\xf3\x79“, „\xaa\x8a\xa3\x79\x73\x46\x4f\xbb\xb2\x85\xbf\x8a\x45\x5c\xe5\xf3“, „\x0f\xa9\x1c\xe3\xe9\x6a\x4b\xc2\xbe\x4b\xd9\xce\x75\x2c\x34\x25“, „Gutschein xxxx“, „{\„promotionId\“:\„b37dada6208d4feead541a3185dcc8eb\“,\„discountId\“:\„aa8aa37973464fbbb285bf8a455ce5f3\“,\„discountType\“:\„percentage\“,\„code\“:\„xxxx\“,\„value\“:\„14\“,\„maxValue\“:\“\",\„discountScope\“:\„cart\“,\„groupId\“:\"\",\„setGroups\“:,\„filter\“:{\„sorterKey\“:null,\„applierKey\“:null,\„usageKey\“:null},\„composition\“:[{\„id\“:\„b1af7e751fe447b883f286ddf791d128\“,\„quantity\“:1,\„discount\“:13.9860000000000024300561562995426356792449951171875}]}", 1, -13.9900000000000002131628207280300557613372802734375, -13.9900000000000002131628207280300557613372802734375, „{\„percentage\“:-14.0,\„filter\“:null,\„precision\“:2,\„type\“:\„percentage\“}“, „{\„unitPrice\“:-13.9900000000000002131628207280300557613372802734375,\„totalPrice\“:-13.9900000000000002131628207280300557613372802734375,\„quantity\“:1,\„calculatedTaxes\“:[{\„tax\“:-2.229999999999999982236431605997495353221893310546875,\„taxRate\“:19.0,\„price\“:-13.9900000000000002131628207280300557613372802734375,\„extensions\“:}],\„taxRules\“:[{\„taxRate\“:19.0,\„percentage\“:100.0,\„extensions\“:}],\„referencePrice\“:null,\„listPrice\“:null}“, „2020-02-20 20:08:59.648“]:\n\nSQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (d0300d03
.hatslogic_abandoned_cart_items
, CONSTRAINT fk.hatslogic_abandoned_cart_items.product_id
FOREIGN KEY (product_id
, product_version_id
) REFERENCES product
(id
, version_id
) at /www/htdocs/xxxx/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php:49, Doctrine\DBAL\Driver\PDOException(code: 23000): SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (d0300d03
.hatslogic_abandoned_cart_items
, CONSTRAINT fk.hatslogic_abandoned_cart_items.product_id
FOREIGN KEY (product_id
, product_version_id
) REFERENCES product
(id
, version_id
) at /www/htdocs/xxxx/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:123, PDOException(code: 23000): SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (d0300d03
.hatslogic_abandoned_cart_items
, CONSTRAINT fk.hatslogic_abandoned_cart_items.product_id
FOREIGN KEY (product_id
, product_version_id
) REFERENCES product
(id
, version_id
) at /www/htdocs/xxxx/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:121)"} "