# Produkt Import Fehler Log

**URL:** <https://forum.shopware.com/t/produkt-import-fehler-log/94001>\
**Category:** Shopware 6 (German)\
**Created:** [20. April 2022 um 12:05 UTC](https://forum.shopware.com/t/produkt-import-fehler-log/94001 "2022-04-20T12:05:11Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![ProWebs](https://avatars.discourse-cdn.com/v4/letter/p/dec6dc/32.png) [@ProWebs](https://forum.shopware.com/u/ProWebs)\
**Post date:** [20. April 2022 um 12:05 UTC](https://forum.shopware.com/t/produkt-import-fehler-log/94001/1 "2022-04-20T12:05:11Z")

</div>

Ich versuche gerade in Shopware 6.4.9.0 einen Produkt Import. Leider schlägt dieser immer fehl, es gibt aber keine verwertbaren Informationen warum. Die Log im Backend hätte man sich meiner Meinung direkt ganz schenken können. Gibt es wo eine verstecke Log mit dem tatsächlichen Fehlern? In Shopware 5 hatte man wenigstens ein Info, welches Feld nicht passt erhalten.

Hier stochert man im Trüben.

Danke 🙂

---

<div class="post-metadata">

**Author:** ![ProWebs](https://avatars.discourse-cdn.com/v4/letter/p/dec6dc/32.png) [@ProWebs](https://forum.shopware.com/u/ProWebs)\
**Post date:** [20. April 2022 um 12:13 UTC](https://forum.shopware.com/t/produkt-import-fehler-log/94001/2 "2022-04-20T12:13:06Z")

</div>

Ahja und was auch immer unter „Fehlerhafte Einträge Herunterladen“ Steckt, der Button ist ohne Funktion in meiner Shopware Version.

---

<div class="post-metadata">

**Author:** ![Max\_Shop](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Max\_Shop](https://forum.shopware.com/u/Max_Shop)\
**Post date:** [20. April 2022 um 12:25 UTC](https://forum.shopware.com/t/produkt-import-fehler-log/94001/3 "2022-04-20T12:25:14Z")

</div>

> [@ProWebs](#):
>
> Fehlerhafte Einträge Herunterladen“

Genau darunter siehst du die Fehler im Detail.

Wenn du den Shop auf dev-Modus stellst, dann siehst du unter /var/log(s) die Fehler im Detail.

---

<div class="post-metadata">

**Author:** ![ProWebs](https://avatars.discourse-cdn.com/v4/letter/p/dec6dc/32.png) [@ProWebs](https://forum.shopware.com/u/ProWebs)\
**Post date:** [20. April 2022 um 12:29 UTC](https://forum.shopware.com/t/produkt-import-fehler-log/94001/4 "2022-04-20T12:29:41Z")

</div>

Danke für den Hinweis. Aktuell ist es jedoch so, dass er die 3 Test Produkte weiter nicht Importiert sondern dauerhaft auf dem Status „Verarbeiten“ hängt. Somit auch keine Log Ausgabe.

---

<div class="post-metadata">

**Author:** ![Max\_Shop](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Max\_Shop](https://forum.shopware.com/u/Max_Shop)\
**Post date:** [20. April 2022 um 12:38 UTC](https://forum.shopware.com/t/produkt-import-fehler-log/94001/5 "2022-04-20T12:38:10Z")

</div>

Vermutlich wird dann im Backend ein 500er-Fehler geworfen, so dass es zu keine Ausgabe im Frontend kommt. Solch einen Fehler siehst du dann nur in den Logs im Dev-Modus.

---

<div class="post-metadata">

**Author:** ![ProWebs](https://avatars.discourse-cdn.com/v4/letter/p/dec6dc/32.png) [@ProWebs](https://forum.shopware.com/u/ProWebs)\
**Post date:** [20. April 2022 um 12:46 UTC](https://forum.shopware.com/t/produkt-import-fehler-log/94001/6 "2022-04-20T12:46:11Z")

</div>

Im Logs wurde nichts geschrieben. Es lag aber am Feld „delivery\_time“.

Seit dem funktioniert auch der Fehler Button und man kommt zur Meldung:

\_error  
An exception occurred while executing ‚REPLACE INTO `product_category` (`product_id`, `product_version_id`, `category_id`, `category_version_id`) VALUES (‚L???‘?JY?|??oGɿ‘,‚???jK¾K??u,4%‘,’??3???h’5sVaG$l’,‚???jK¾K??u,4%‘);’: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`gs_audi_shopware`.`product_category`, CONSTRAINT `fk.product_category.category_id` FOREIGN KEY (`category_id`, `category_version_id`) REFERENCES `category` (`id`, `version_id`) ON DELETE CASC)  
An exception occurred while executing ‚REPLACE INTO `product_category` (`product_id`, `product_version_id`, `category_id`, `category_version_id`) VALUES (‘?@iP?M?\0mQNҟ’,‚???jK¾K??u,4%‘,’??3???h’5sVaG$l’,‚???jK¾K??u,4%‘);’: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`gs_audi_shopware`.`product_category`, CONSTRAINT `fk.product_category.category_id` FOREIGN KEY (`category_id`, `category_version_id`) REFERENCES `category` (`id`, `version_id`) ON DELETE CASC)  
An exception occurred while executing ‚REPLACE INTO `product_category` (`product_id`, `product_version_id`, `category_id`, `category_version_id`) VALUES (‚1o?@}NǂU?h?\n‘,‚???jK¾K??u,4%‘,‘??3???h’5sVaG$l’,‚???jK¾K??u,4%‘);’: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`gs_audi_shopware`.`product_category`, CONSTRAINT `fk.product_category.category_id` FOREIGN KEY (`category_id`, `category_version_id`) REFERENCES `category` (`id`, `version_id`) ON DELETE CASC)

---

<div class="post-metadata">

**Author:** ![ProWebs](https://avatars.discourse-cdn.com/v4/letter/p/dec6dc/32.png) [@ProWebs](https://forum.shopware.com/u/ProWebs)\
**Post date:** [20. April 2022 um 12:51 UTC](https://forum.shopware.com/t/produkt-import-fehler-log/94001/7 "2022-04-20T12:51:53Z")

</div>

OKay. Hier musste bei der Kategorie ID das 0x raus.

---

<div class="post-metadata">

**Author:** ![ProWebs](https://avatars.discourse-cdn.com/v4/letter/p/dec6dc/32.png) [@ProWebs](https://forum.shopware.com/u/ProWebs)\
**Post date:** [20. April 2022 um 12:54 UTC](https://forum.shopware.com/t/produkt-import-fehler-log/94001/8 "2022-04-20T12:54:30Z")

</div>

\_error  
A file with the name „904\_IPZL\_4M0019907\_ENG\_001.jpg“ already exists.

Gibt es eine Option, dass die Dateien einfach überschrieben oder umbennant Importiert werden?
