magento2-connector-community
magento2-connector-community copied to clipboard
setCategory step failed due to no imported categories
Environment and configuration
- Akeneo connector v103.5.0 Issue is introduced in https://github.com/akeneo/magento2-connector-community/commit/8b9ffb2c1724e9e05de4d8f82140a9f217042334
Steps to reproduce
- Have a setup where you don't import any categories from Akeneo image of settings
- Do a product import
Expected result
- A completed import where all the products are imported in Magento and not assigned to a category.
Actual result
- A failed import: [Warning: Undefined array key "NAMEOFCATEGORY" in /vendor/akeneo/module-magento2-connector-community/Job/Product.php on line 2972
Because of
https://github.com/akeneo/magento2-connector-community/blob/d6c0cbf0d309cbcf9ce25b407e8fadd41cd5751a/Job/Product.php#L2957-L2963
used in
https://github.com/akeneo/magento2-connector-community/blob/d6c0cbf0d309cbcf9ce25b407e8fadd41cd5751a/Job/Product.php#L2972
is empty since we don't import any categories from Akeneo.
I have the same issue on the same version. Instead of empty categories, I have an excluded Category tree in the Magento configuration.
In the code you supplied, the Akeneo connector is looking for excluded category codes.
Same issue, any fixes ??