magento2-connector-community icon indicating copy to clipboard operation
magento2-connector-community copied to clipboard

setCategory step failed due to no imported categories

Open Melleschepers opened this issue 1 year ago • 2 comments

Environment and configuration

  1. Akeneo connector v103.5.0 Issue is introduced in https://github.com/akeneo/magento2-connector-community/commit/8b9ffb2c1724e9e05de4d8f82140a9f217042334

Steps to reproduce

  1. Have a setup where you don't import any categories from Akeneo image of settings
  2. Do a product import

Expected result

  1. A completed import where all the products are imported in Magento and not assigned to a category.

Actual result

  1. 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.

Melleschepers avatar Jul 18 '23 13:07 Melleschepers

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.

pimruiter avatar Aug 11 '23 09:08 pimruiter

Same issue, any fixes ??

stevelou2 avatar Aug 22 '23 18:08 stevelou2