Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generated Url key already exists #49

Closed
duckchip opened this issue Oct 6, 2021 · 1 comment
Closed

Generated Url key already exists #49

duckchip opened this issue Oct 6, 2021 · 1 comment

Comments

@duckchip
Copy link

duckchip commented Oct 6, 2021

Hi guys,

Prerequisites

module version: 1.7.4
magento version: 2.4.2-p2

Description

Sometimes we get these errors when using the import module:

[2021-10-06 12:26:21] main.CRITICAL: : failed! error = generated url key already exists: pharmalens-monthly-6-50-3; generated url key already exists: pharmalens-monthly-6-50-3; generated url key already exists: pharmalens-monthly-6-50-3

We always use the following logic to add a url key to the product

$global->generateUrlKey(); for global level
$productStoreView->generateUrlKey(); for every storeview.

Do you might have an idea what's going wrong here?

Thx in advance!

@duckchip
Copy link
Author

duckchip commented Oct 6, 2021

closing this ticket, I noticed that the default behaviour is DUPLICATE_KEY_STRATEGY_ERROR instead of DUPLICATE_KEY_STRATEGY_ADD_SERIAL

Thx anyway :))

@duckchip duckchip closed this as completed Oct 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant