Product CSV Import - Error when update a product
Forum rules
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Product CSV Import - Error when update a product
When I want to update an existing product via the CSV import I get the following error.
Ubuntu 22.04.01
PHP 7.4.30
Typo3 v11.5.21 LTS
Aimeos web shop 22.10.4-pre3
PHP 7.4.30
Typo3 v11.5.21 LTS
Aimeos web shop 22.10.4-pre3
Re: Product CSV Import - Error when update a product
Seems like you've added a category twice to a product
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
Re: Product CSV Import - Error when update a product
The product in my screenshot with code "MC_8_038876" already exists.
Is it then correct that the category is inserted again in mshop_product_list via INSERT?
Is it then correct that the category is inserted again in mshop_product_list via INSERT?
Ubuntu 22.04.01
PHP 7.4.30
Typo3 v11.5.21 LTS
Aimeos web shop 22.10.4-pre3
PHP 7.4.30
Typo3 v11.5.21 LTS
Aimeos web shop 22.10.4-pre3
Re: Product CSV Import - Error when update a product
If the product is already in the database, it should be updated only including adding/replacing catalog relations. The "catalog" domain is fetched by the product importer:
https://github.com/aimeos/ai-controller ... er.php#L10
https://github.com/aimeos/ai-controller ... er.php#L10
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
Re: Product CSV Import - Error when update a product
I've debugged the import.
Here is the $listItem that throws the exception.
The ID is set to null.
In the next line when you call $listManager->save() the Exception occurs.
Here is the $listItem that throws the exception.
The ID is set to null.
In the next line when you call $listManager->save() the Exception occurs.
- Attachments
-
- copy_created.png (110.88 KiB) Viewed 17864 times
Ubuntu 22.04.01
PHP 7.4.30
Typo3 v11.5.21 LTS
Aimeos web shop 22.10.4-pre3
PHP 7.4.30
Typo3 v11.5.21 LTS
Aimeos web shop 22.10.4-pre3
Re: Product CSV Import - Error when update a product
What is the ID of the product item and the parent ID of the list item in your case?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
Re: Product CSV Import - Error when update a product
Ubuntu 22.04.01
PHP 7.4.30
Typo3 v11.5.21 LTS
Aimeos web shop 22.10.4-pre3
PHP 7.4.30
Typo3 v11.5.21 LTS
Aimeos web shop 22.10.4-pre3
Re: Product CSV Import - Error when update a product
The root cause of the problem is probably in these lines because a new list item seems to be created instead of the existing one reused:
https://github.com/aimeos/ai-controller ... #L136-L137
Please check if the product item fetched from the database contains list items for the catalog relations at all.
https://github.com/aimeos/ai-controller ... #L136-L137
Please check if the product item fetched from the database contains list items for the catalog relations at all.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
Re: Product CSV Import - Error when update a product
Seems to be missing.
Ubuntu 22.04.01
PHP 7.4.30
Typo3 v11.5.21 LTS
Aimeos web shop 22.10.4-pre3
PHP 7.4.30
Typo3 v11.5.21 LTS
Aimeos web shop 22.10.4-pre3
Re: Product CSV Import - Error when update a product
Did you overwrite this setting somewhere?
https://github.com/aimeos/ai-controller ... php#L3-L20
When using TypoScript, overwriting of the keys is enough to overwrite all child settings.
https://github.com/aimeos/ai-controller ... php#L3-L20
When using TypoScript, overwriting of the keys is enough to overwrite all child settings.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star