Magento 2.1.3 - Import products. Issue with categories
-
14-04-2021 - |
Domanda
When I'm trying import eg 2 products:
I have no error with Check Data but on import:
- Category "MAN/zakiet/zakiet" has not been created. URL key for specified store already exists. in row(s): 2
and category looks like :
There is no problem for create those categories manually, but:
- It is Magento issue, right?
- Is it possible to fix it quickly?
EDIT:
I also tried use :
- Default Category/WOMEN/zakiet/zakiet
- Default Category/MAN/zakiet/zakiet
in csv as categories.
Result:
- Category "Default Category/WOMEN/zakiet/zakiet" has not been created. URL key for specified store already exists. in row(s): 1, 2
Categories:
EDIT:
It happens when You try create similar categories in other root category. It happens because firs category won't be include in url rewrites. Eg:
First Default Category -> Test1 -> Test2
create paths:
/test1.html
and /test1/test2.html
When You try to create :
Second Default Category -> Test1 -> Test2
Magento will create rewrite with paths:
/test1.html
and /test1/test2.html
also.
SOLVE:
Try to set different url category or use one root category.
Soluzione 2
SOLUTION:
It happens when You try create similar categories in other root category. It happens because firs category won't be include in url rewrites. Eg:
First Default Category -> Test1 -> Test2 create paths: /test1.html and /test1/test2.html
When You try to create :
Second Default Category -> Test1 -> Test2 Magento will create rewrite with paths: /test1.html and /test1/test2.html also.
Solve: Try to set different url category or use one root category.
Altri suggerimenti
You should always include the root category
Default Category/WOMEN/zakiet/zakiet
So above should be right but on the category image you are showing only
Default Category/WOMEN/zakiet
That might be the rror?
I had the same exact issue but I did the following for it to stop showing error 404 on the category page.
- I enabled Single Store Mode for my Magento 2 website, you can get help on how to do that here Magento Docs
- My Category was standalone before so I moved it to be a sub of the default .
I hope this helps you too