Neu Shopware 6 (SaaS) BETA - 2 Fehler im Connector

blablabundblupppp

Aktives Mitglied
31. Oktober 2019
13
3
Hallo Forum,

ich hoffe, dass Ihr mir hier weiterhelfen könnt.
Ich erhalte im Connector immer diese Fehler.


Fehler Nummer 1: (bitte die Zeichen Fehler ignorieren, da diese vom kopieren (Windows - MAC) kommen, im orginal Log sehe ich diese Fehler nicht.)

Code:
Exception: Controller = Image | Action = push | JTL-Wawi PK = 159297 | Image name: 32sk1076 | Related type Product (JTL-Wawi PK = 12968) | [cbb683f2-0a54-4923-85d1-edd5de8d0e00] The Shopware 6 Admin API responded with an error:
Code = 0 | Status = 500 | Detail = An exception occurred while executing 'INSERT INTO `product_media` (`id`, `version_id`, `product_id`, `product_version_id`, `media_id`, `position`, `custom_fields`, `created_at`) VALUES ('z\rNI�LϬ�R�P��k','���jK¾K��u,4%','7����M��\'*��K','���jK¾K��u,4%','���N5�N�o�(�]c','0',NULL,'2023-03-22 11:18:48.443');':

SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`c1w2db1`.`product_media`, CONSTRAINT `fk.product_media.product_id` FOREIGN KEY (`product_id`, `product_version_id`) REFERENCES `product` (`id`, `version_id`) ON DELETE CASCADE ON UPDATE CASCA)
Controller = Image | Action = push | JTL-Wawi PK = 159297 | Image name: 32sk1076 | Related type Product (JTL-Wawi PK = 12968) | [8eeabd79-93ea-4c6e-99c5-b419cb6e6406] The Shopware 6 Admin API responded with an error:
Code = 0 | Status = 500 | Detail = An exception occurred while executing 'INSERT INTO `product_media` (`id`, `version_id`, `product_id`, `product_version_id`, `media_id`, `position`, `custom_fields`, `created_at`) VALUES ('c�(�F����7�}<','���jK¾K��u,4%','7����M��\'*��K','���jK¾K��u,4%','��*�CH��G��\"x','0',NULL,'2023-03-22 11:18:51.035');':


Im Artikel selbst sehe ich nichts merkwürdiges.
Wieso stehen hier JTL-Wawi PK = 159297 und Related type Product JTL-Wawi PK = 12968?
159297 = Hat keinen Artikel in der DB
12968 = hier finden ich einen Artikel aber nichts merkwürdiges dran.

Fehler 2:

Code:
Exception: Controller = Image | Action = push | JTL-Wawi PK = 4015 | SKU = 9999-1 | Related type Product (JTL-Wawi PK = 15359) | [2d27ad98-729e-4b53-8295-4f6c99ff67f4] The Shopware 6 Admin API responded with an error:
Code = FRAMEWORK__RESOURCE_NOT_FOUND | Status = 404 | Detail = The media resource with the following primary key was not found: id(11c6e609361b414f880ba9b9d949cf6f)
Controller = Image | Action = push | JTL-Wawi PK = 4015 | SKU = 9999-1| Related type Product (JTL-Wawi PK = 15359) | [ee019c06-00e1-4dcd-bf75-e5c6844f5b56] The Shopware 6 Admin API responded with an error:
Code = FRAMEWORK__RESOURCE_NOT_FOUND | Status = 404 | Detail = The media resource with the following primary key was not found: id(11c6e609361b414f880ba9b9d949cf6f)
Abschlussinfo-Senden-Fehler: Bitte beachten Sie, dass zur Fehler-Diagnose ebenfalls die Log-Datei des Servers und das Abgleich-Log der JTL-Wawi notwendig sind!
Controller = Image | Action = push | JTL-Wawi PK = 4015 | SKU = 9999-1 | Related type Product (JTL-Wawi PK = 15359) | [2d27ad98-729e-4b53-8295-4f6c99ff67f4] The Shopware 6 Admin API responded with an error:
Code = FRAMEWORK__RESOURCE_NOT_FOUND | Status = 404 | Detail = The media resource with the following primary key was not found: id(11c6e609361b414f880ba9b9d949cf6f)
Controller = Image | Action = push | JTL-Wawi PK = 4015 | SKU = 9999-1| Related type Product (JTL-Wawi PK = 15359) | [ee019c06-00e1-4dcd-bf75-e5c6844f5b56] The Shopware 6 Admin API responded with an error:
Code = FRAMEWORK__RESOURCE_NOT_FOUND | Status = 404 | Detail = The media resource with the following primary key was not found: id(11c6e609361b414f880ba9b9d949cf6f)
   bei jtlCore.ControllerClasses.Connector.Abgleich.Connector.pnd5rtblfTh(String  , Object  , Boolean  , NetworkCredential  )
   bei jtlCore.ControllerClasses.Connector.Abgleich.Connector.FinishCall()
   bei jtlCore.ControllerClasses.Connector.Abgleich.EntityAbgleicher.ConnectorFinishCallTask.Run()
   bei JTL.Connector.Business.SyncRunner.Run()


Hier sind auch 2 Pk's JTL-Wawi PK = 4015 JTL-Wawi PK = 15359
Fehler 404, wieso? Ich pushe ein Bild, was vorhanden ist.

Lese ich hier etwas falsch?

Hat jemand eine Idee und kann mir einen Tipp geben, wonach ich suchen soll?


Vielen Dank
 

Belushi

Aktives Mitglied
5. September 2019
74
5
Berlin
Hallo 'blablabundblupppp',

die Fehlermeldung ist zwar nicht die exakt selbe (vor allem 'Fehler 2'), aber 'Integrity constraint violation' beim 'insert_into' könnte vielleicht eine ähnliche Ursache haben wie bei uns:
Wir haben seit einiger Zeit ein Problem mit einem Produkt-Attribut. Der Connector versucht ein 'insert into' in der Datenbank, obwohl eigentlich ein 'update' gemacht werden müsste, da der Eintrag schon existiert und nicht neu angelegt werden darf - genau das verursacht den 'integrity constrain violation' Fehler.
Dass der fragliche Wert (Attribut-Name) schon existiert haben wir auch erst nach einem Blick in die Shop-Datenbank herausgefunden; der Connector müsste eigentlich den Attribut-Wert aktualisieren.

Wie gesagt, ist nicht exakt das selbe Problem, aber die Ähnlichkeit beim constrain violation Fehler ist schon auffällig.
Das Ticket dazu:
https://issues.jtl-software.de/issues?project=co
CO-2314 vom 17.3.
 

Ähnliche Themen