magento / data-migration-tool

Magento Data Migration Tool
https://devdocs.magento.com/guides/v2.3/migration/bk-migration-guide.html
Open Software License 3.0
338 stars 199 forks source link

Clean database with 1.9.1 #12

Closed seabird closed 8 years ago

seabird commented 8 years ago

Hi everyone,

created a clean install via composer and never even logged in. I dumped the database and am trying to get my data-migration tool to sync my settings and information.

unfortunatly I get this error: [PDOException]

SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'association-2' for key 'SEARCH_QUERY_QUERY_TEXT_STORE_ID'

Any clues how to solve this?

chrissm79 commented 8 years ago

I had to search and remove duplicates in my catalogsearch_query table (Magento 1.x). I found them by running the following:

SELECT query_text, COUNT(*) c FROM catalogsearch_query GROUP BY query_text HAVING c > 1;
ilol commented 8 years ago

Thanks @chrissm79 @seabird would you close the ticket?

victor-v-rad commented 8 years ago

The Migration Tool should not transfer these duplicates. According internal issue (MAGETWO-47876) was created to solve it

dwdonline commented 8 years ago

Same issue migrating 1.9.11 > 2.0.0.

Thanks @chrissm79 - that did it for me.

seabird commented 8 years ago

On the double ones, what is the impact of which one you delete? Is it possible to do this automated? "DELETE FROM catalogsearch_query WHERE c > 1"?

ilol commented 8 years ago

@seabird can close?

seabird commented 8 years ago

Sorry, due to other problemo did not have time to look into this further. Sure thing, close it.