magento2: Unable to import Catalog Categories in v2.3.2
Preconditions (*)
- for v2.3.2
Steps to reproduce (*)
- using /V1/categories to get catalogCategoryManagementV1
- facing an issue during the category import for the instance 2.3.2
Expected result (*)
- for the previous versions, the export data is like this using /V1/categories:
{ "id": 5, "parent_id": 1, "name": "seconday category", "is_active": true, "position": 2, "level": 1, "product_count": 0, "children_data": [] } - Because of the ‘name’ in the export data, the categories are getting imported correctly (for the previous versions)
Actual result (*)
- for the version 2.3.2, the export data is like this using /V1/categories:
{ "id": 5, "parent_id": 1, "name": null, "is_active": null, "position": 4, "level": 1, "product_count": null, "children_data": [] } - Because of the ‘name’ in the export data is null, the categories at root level are not getting imported
Please check and let us know if we are missing anything.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 1
- Comments: 17 (5 by maintainers)
@milindsingh why is this issue suddenly closed? The issue is still appearing in 2.3.3. Please reopen this issue.
I had the same problem. It looks like the problem is caused in \Magento\Catalog\Model\Category\Tree getNode Replacing $categoryTree = $this->treeResourceFactory->create(); $node = $categoryTree->loadNode($nodeId); by $node = $this->categoryTree->loadNode($nodeId); seems to resolve the issue, however, i did not fully test this.