Can't add products to some categories

Hi! I believe you still have all my access information from previous questions that you helped with. I have found another issue. When I try to add products to a new category or save changes to some (not all) existing categories, I get this error: 
The value specified in the URL Key field would generate a URL that already exists.
To resolve this conflict, you can either change the value of the URL Key field (located in the Search Engine Optimization section) to a unique value, or change the Request Path fields in all locations listed below:
Then it lists a bunch of product URLs. You can reproduce this issue by logging into our backend and going to categories. Under the curated shops section, there is a category called seasonal selections. I tried adding some products to that category and it gave me the error. I tried going to the product pages and adding the category from there and also got the error. I believe there is a category rewrite issue. I tried doing some research, but I have not been able to solve this. Can you please assist me? Thank you!

7 answers

Profile photo of Mall Staff 184060.00 $tone May 4, 2018
Public

Hi there,

The value specified in the URL Key field would generate a URL that already exists.
To resolve this conflict, you can either change the value of the URL Key field (located in the Search Engine Optimization section) to a unique value, or change the Request Path fields in all locations listed below:
Then it lists a bunch of product URLs.

That issue was because your M1’s database has some products which have duplicated value of the URL Keys. And this was not valid in accordance with the new working rules of Magento 2.

To solve that, you must edit the URL Key of products relating to the URLs list which Magento 2 suggests when you save your category at your end.

Regards,
Mall.

#1
Profile photo of kerstinflorian 160.00 $tone May 4, 2018
Public

THank you for the reply! I just tried to edit the URL key of sku 11027, one of the products that I was getting the error for when adding to the category. After I changed the url key and tried to save the product, I got:
The value specified in the URL Key field would generate a URL that already exists.
To resolve this conflict, you can either change the value of the URL Key field (located in the Search Engine Optimization section) to a unique value, or change the Request Path fields in all locations listed below:

#2
Profile photo of ubdev Staff 98150.00 $tone May 4, 2018
Public

Hi there,

The value specified in the URL Key field would generate a URL that already exists.
To resolve this conflict, you can either change the value of the URL Key field (located in the Search Engine Optimization section) to a unique value, or change the Request Path fields in all locations listed below:

The notice you mentioned indicates that the new value you input already existed. Please edit again with an unique value.
Regards,
Ubertheme team

#3
Profile photo of Mall Staff 184060.00 $tone May 4, 2018
Public

Hi there,

I have tried 4 or 5 different ones now… some that are just random characters, and it is still giving the same message.

You still couldn’t change the value of URL Key attribute in product edit page? Please provide me information about your instance in this post. And provide me the product’s SKU which has the issue you mentioned. 
I will help to check further and get back to you then.
Regards,
Mall.

#5
Profile photo of Mall Staff 184060.00 $tone May 6, 2018
Public

Hi there,
I have only created more a root category named ‘Test’: http://i.prntscr.com/o0fqwrMaRu_IQWCct3Lt4w.png
And I have changed root category of current default store to ‘Test’ and then, I have re-update this to original root category named ‘Default Category Migrated’: http://i.prntscr.com/09Oh8G4rTQ6o3S8KszGIhw.png
And then, Magento2 was re-generates all URL rewrites of your categories and products.
And I could edited the URL Keys of the product you mentioned: http://i.prntscr.com/y24A79W6RACrRDft60XJ6Q.png
You could re-update that product to remove the suffix ‘-test’ from your end.
Kindly re-check and contact me if you need further assistance.
Regards,
Mall.

#7

Please login or Register to Submit Answer

Written By

Comments