QuestionsURL key for specified store already exists in Magento 2.1.1
mmWebetutorial Staff asked 3 months ago

I have been trying to save a category but get the message “URL key for specified store already exists.” every time.

I am getting same issue with code level when i try to save multiple categories and have parent as well as it’s child category.
Recreate

  1. go to Products > Categories
  2. Select the Category
  3. Click Save

Message: URL key for specified store already exists. comes up and nothing is saved

1 Answers
Best Answer
mmclara clara answered 2 months ago

I found solution:-

some people says this is magento 2 bug but there is some new features of magento 2 for security regions. According to this if product does not contain blank name or same name then it create url with any string and again that will happen it shows “URL key for specified store already exists“.

This issue will occurred with multi store so you can solve by below steps:

  1. if you are getting error in import products then you need to export csv and check if same URL exists (if same product have then add -1, -2 so… on) ad some more string to differentiate url.
  2. Now again upload csv again now error gone and all products imported successfully. Same thing need to do in programmatically.
mmvikram kumar replied 2 months ago

Thank you! this works for me.

Your Answer
Login
Enter email and password to comment or answer
Not the answer you are looking for? Browse other questions tagged or ask your own question.