plentymarkets / plentymarkets-shopware-connector

plentymarkets shopware connector plugin
http://www.plentymarkets.eu/shopware/
MIT License
30 stars 51 forks source link

Error when syncing variation with '/' in variation id #219

Closed franzlst closed 7 years ago

franzlst commented 7 years ago
Q A
issue or Enhancement issue
Version 2.2

When syncing articles having a variation with an id that contains a '/' (in our case "20173_Beige/Braun"), an exception is raised:

[2017-08-22 21:02:12] plentyconnector.ERROR: Command failed: HandleProductCommand {"adapterName":"ShopwareAdapter","transferObject":"96f892fd-73f0-4ecc-ad41-80911950fe70","exception":"[object] (PlentyConnector\\Connector\\ValidatorService\\Exception\\InvalidDataException(code: 0): PlentyConnector\\Connector\\TransferObject\\Product\\Product ObjectIdentifier: 96f892fd-73f0-4ecc-ad41-80911950fe70 Value \"20173_Beige/Braun\" does not match expression. Path: product.variation.number at /var/www/web1/htdocs/shopware/custom/plugins/PlentyConnector/Connector/ValidatorService/Exception/InvalidDataException.php:45)"}

Replacing the '/' with an '_', the sync works.

jochenmanz commented 7 years ago

Hallo Franz,

according to Shopware "/" is not a allowed char:

http://community.shopware.com/Artikelnummern-in-Shopware_detail_642.html

Best regards, Jochen