Skip to content

Magento2 URL key for specified store already exists. #9313

@rajanzestard

Description

@rajanzestard

Preconditions

  1. Magento ver. 2.1.3

Steps to reproduce

Expected result

  1. I have multiple store view I generate the product URL keys, on default store view all product URL will be generated but my other store views like the UK, GB there show me the error like URL key for specified store already exists.
  2. I check in my url_rewrite table with that particular URL key but I found there is a no matching or similar URL like this.
  3. I debug and track that file (DbStorage.php) I also get the data in data variable, in the data variable I get all the array of categories which have that product id, in that array that shows me the URL keys which will be generate and I take one by one URL key from request path key and check it in url_rewrite table I found there is no key like that but still it show me the error like URL key for specified store already exists.

Actual result

  1. If URL key does not exist in the url_rewrite table it should be inserted in the table.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions