1

When I'm trying import eg 2 products:

enter image description here

I have no error with Check Data but on import:

  1. Category "MAN/zakiet/zakiet" has not been created. URL key for specified store already exists. in row(s): 2

and category looks like :

example

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 :

  1. Default Category/WOMEN/zakiet/zakiet
  2. Default Category/MAN/zakiet/zakiet

in csv as categories.

Result:

  1. Category "Default Category/WOMEN/zakiet/zakiet" has not been created. URL key for specified store already exists. in row(s): 1, 2

Categories:

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.

3 Answers 3

2

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?

1
  • Yea I noticed that problem is with creating rewrites for category paths. Root category is not included, but I forgot to update post ;) Thanks anyway! Commented Feb 1, 2017 at 7:29
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.

3
  • Hi, beginner here, had the same problem. What do you mean by "set different url category", is that something you can do in the CSV to import products?
    – Pedru
    Commented Jul 31, 2017 at 9:22
  • You are not able by default to create categories in product import (so you cant do this in import categories). Are you using some extension or default magento2 import? Commented Jul 31, 2017 at 10:41
  • By "set different category url" I mean use different 'URL Key' in 'Search Engine Optimization' section in category view. But I think better solution is to use one root category :) Commented Jul 31, 2017 at 10:48
0

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 Rearranging your category.

I hope this helps you too

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.