Skip to content

Cannot create product "URL key for specified store already exists." - pure magento, no migration, no scripts, no categories #32832

Closed
@chelevich

Description

@chelevich

Preconditions (*)

  1. Magento 2.4.0 (Enterprise Edition)
  2. PHP 7.4

Steps to reproduce (*)

  1. Create two websites with a store for each website (website IDs: 1 and 2, store IDs: 1 and 2)
  2. Create a product with URL Key "test" (product ID: 1)
  3. Assign it to both websites
  4. Observe two URL Rewrites created for both stores
  • store 1, "test -> catalog/product/view/id/1",
  • store 2, "test -> catalog/product/view/id/1"
  1. Un-assign the product from website 1, change URL Key to "test2" with "Create redirect" checked, hit Save
  2. Observe three URL Rewrites:
  • store 1, "test -> catalog/product/view/id/1",
  • store 2, "test -> test2",
  • store 2, "test2 -> catalog/product/view/id/1"
  1. Attempt to create new product assigned to website 1 with URL Key "test"

Expected result (*)

  1. In step 6 there should only two URL Rewrites remain for store 2 as the product is unassigned from website 1
  2. Should allow to save new product in step 7 with the initial URL Key "test" (new product ID: 2)
  3. Three URL Rewrites should exist after save:
  • store 1, "test -> catalog/product/view/id/2",
  • store 2, "test -> test2",
  • store 2, "test2 -> catalog/product/view/id/1"

Actual result (*)

  1. Error is thrown in step 7 "URL key for specified store already exists."
  2. The error message points to the conflicting URL Rewrite with store 2 although the product is assigned only to website 1

Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.

  • Severity: S0 - Affects critical data or functionality and leaves users without workaround.
  • Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.

Metadata

Metadata

Assignees

Labels

Issue: needs updateAdditional information is require, waiting for response

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions