cancel
Showing results for 
Search instead for 
Did you mean: 

When creating categories "URL key for specified store already exists."

When creating categories "URL key for specified store already exists."

Hi, I just created my categories programmatically, but then deleted them all from admin panel to try again. But this time, it says "URL key for specified store already exists." How to fix this?

2 REPLIES 2

Re: When creating categories "URL key for specified store already exists."

Hi @mage_ento1

 

To resolved this error - i would suggest you to do reindexing command.

 

run this command - php bin/magento indexer:reindex

 

After deleting all the categories - run above command and then try to create the category again - it will resolved the error.

 

Hope it helps !

if issue solved,Click Kudos & Accept as Solution

Re: When creating categories "URL key for specified store already exists."

@mage_ento1

 

You can find same issue and solution for this in the given link:

 

https://github.com/magento/magento2/issues/7298

 

Apart from that, you can check that specific entry in admin > url rewrites and if that exists then delete that manually.

 

Then run 

php bin/magento indexer:reindex
Manish Mittal
https://www.manishmittal.com/