-
Notifications
You must be signed in to change notification settings - Fork 197
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
url_rewrite duplicates #81
Comments
Thank you, @redboxmarcins, will discuss this with development team @yaronish @victor-v-rad |
Yes, but request_path + store_id must be unique in Magento 2.
I have not encountered such issue after migration so far. But I will investigate this case more thoroughly. |
@victor-v-rad did you try to migrate data where url keys are not unique - f.e. from version before 1.8.x ? |
MAGETWO-52505 |
@ilol Any updates on this issue? This is the last issue preventing me from handing over a decent M1 database -> M2 |
Even with running: https://gist.github.com/Vinai/5451584 I still get: [PDOException] |
@redboxmarcins |
I am closing the issue. Feel free to reopen if it is still actual |
@victor-v-rad I just tested this with 2.1.1 and I still get it
|
The easiest way might be to send us the DB dump (cleaned from passwords). Here https://github.com/victor-v-rad you can find my email. |
internal ticket MAGETWO-59233 to fix the issue |
I'm having similar issues, i'll send you a private email. |
@craigcarnell @alessandrozucca |
I've found a workaround for this. I'm removing the index Then, you need to check the duplicates, I've run a query grouping by request_path and store_id where the count(*) was > 1. In my case I've found around 56 duplicates. In my situation I could just remove all duplicates as all this redirect_url entries were belonging to store that the customer doesn't need, then I have re-added the |
@victor-v-rad I tried out your changes and got much, much further but it stopped here:
|
@victor-v-rad any update on this? |
I have migrated magento_prod_2016-12-02.sql you send me and not found such error "Integrity constraint violation". With auto_resolve_urlrewrite_duplicates=1 migration completed without errors |
While migrating from CE 1.7.0.2 to EE 2.0.4 url rewrites are migrated from core_url_rewrite to url_rewrite table, but EE 2.0.4 require (same as 1.13EE and 1.8CE) that url keys must be unique
so saving category or product is not possible after migration
So far using https://gist.github.com/Vinai/5451584 to clear data before doing migration, but I believe that should be handled by migration tool
The text was updated successfully, but these errors were encountered: