Product update via csv import fails in 2022.04

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
columbo
Advanced
Posts: 125
Joined: 09 Oct 2019, 09:42

Product update via csv import fails in 2022.04

Post by columbo » 16 May 2022, 21:51

Hi,

after upgrading to Aimeos 2022.04 product updates using csv import fails:

Code: Select all

Unable to import product with code "238530": SQLSTATE[23505]: Unique violation: 7 FEHLER: doppelter Schlüsselwert verletzt Unique-Constraint »unq_msproli_pid_sid_dm_ty_rid«
DETAIL: Schlüssel »(parentid, siteid, domain, type, refid)=(37254, 1., catalog, default, 16)« existiert bereits.:
INSERT INTO "mshop_product_list" (
"parentid", "key", "type", "domain", "refid", "start", "end",
"config", "pos", "status", "mtime", "editor", "siteid", "ctime"
) VALUES (
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?
)
["37254","catalog|default|16","default","catalog","16",null,null,"[]",0,1,"2022-05-16 23:30:52","aimeos:jobs","1.","2022-05-16 23:30:52"]
Products are already imported, but I have to update prices, texts etc.
The csv worked for Aimeos 2020, but now the update fails. I could not find any new settings for shop.php or any changes for the csv mapping.

Thanks!

User avatar
aimeos
Administrator
Posts: 7894
Joined: 01 Jan 1970, 00:00

Re: Product update via csv import fails in 2022.04

Post by aimeos » 17 May 2022, 17:17

The problem should be fixed with this patch and it will be part of the next release:
https://github.com/aimeos/ai-controller ... c07ede72ec

In the meantime, you can add a configuration with the new values to your ./config/shop.php
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

columbo
Advanced
Posts: 125
Joined: 09 Oct 2019, 09:42

Re: Product update via csv import fails in 2022.04

Post by columbo » 17 May 2022, 19:28

perfect - its working with the added configuration
Thank you!

Post Reply