Skip to content

Notice: Undefined offset: 1 in /var/www/html/magento213/vendor/magento/data-migration-tool/src/Migration/Step/Eav/Data.php on line 266 #209

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

Closed
hardiklinksture opened this issue Dec 27, 2016 · 5 comments

Comments

@hardiklinksture
Copy link

hardiklinksture commented Dec 27, 2016

I got below error.

Notice: Undefined offset: 1 in /var/www/html/magento213/vendor/magento/data-migration-tool/src/Migration/Step/Eav/Data.php on line 266

Magento migration 1.6.1.0 to 2.1.3

@victor-v-rad
Copy link
Collaborator

Hi @hardiklinksture

If you use Data Migration Tool 2.1.3 then you should get an error about "Orphan records" likewise in #208
Is that the line 266 are you talking about?

@hardiklinksture
Copy link
Author

Yes
when i try today again then found new error
Run below command
sudo php bin/magento migrate:data -r --reset /var/www/html/magento213/vendor/magento/data-migration-tool/etc/ce-to-ce/1.6.1.0/config.xml
And throw below error

[PDOException]
SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '1-Migration_Default' for key 'EAV_ATTRIBUTE_SET_ENTITY_TYPE_ID_ATTRIBUTE_SET_NAME'

I migration multi store

@victor-v-rad
Copy link
Collaborator

victor-v-rad commented Dec 28, 2016

It is because you did not clean your DB of Magento 2 before the second attempt of migration.

@hardiklinksture
Copy link
Author

hardiklinksture commented Jan 3, 2017

After migration i showing the products on admin side
But Attribute Set is Migration_Default instead of Default
Also my all attribute sets is changed to Migration_****

Thanks

@dfelton
Copy link
Contributor

dfelton commented Jan 3, 2017

@hardiklinksture The migration tool does not perform a merge of the eav attribute set from the source database to the destination database, but instead performs a copy of the original attribute sets into the destination database.

They get migrated over with "Migration_" prefix, because that is what you have configured in your eav_map_file. ("Migration_" is the default prefix that comes with the tool).

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

3 participants