-
Notifications
You must be signed in to change notification settings - Fork 197
Undefined offset: 11 in vendor/magento/data-migration-tool/src/Migration/Step/Eav/Data.php on line 651 #824
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
Comments
Hi @kisfelix. Thank you for your report. Please, add a comment to assign the issue:
|
Hi @kisfelix! 👋 |
Thanks @victor-v-rad, I have applied the branch and tried again. Still no luck though. $ php bin/magento migrate:data -a [ABS PATH]/app/code/Vendor/Migration/etc/opensource-to-opensource/1.9.3.8/config.xml [2020-06-12 21:09:34][INFO][mode: data][stage: integrity check][step: Data Integrity Step]: started Notice: Undefined offset: 11 in [ABS PATH]/vendor/magento/data-migration-tool/src/Migration/Step/Eav/Data.php on line 652 migrate:data [-r|--reset] [-a|--auto] [--] Is there any other details you will need from me? |
I would suggest you restart migration for Follow those steps to ensure you have correctly restarted, I do not think --reset works correctly at eav step! |
@ChameleonDevil thanks for the suggestion, however, I already followed your original guide right from the first time I ran into the error. I can certainly get the migration done by ignoring the EAV step completely, but no one wants that. |
I have the same issue and I was unfortunately also unable to fix it by switching to the 2.3-develop branch. Looking at my eav_entity_type table it seems that there are 30 entity types, but the IDs are not incremental, number 19 and 22 are missing for me. The migration tool seems to have an issue with that. |
@victor-v-rad Using the 2.3-develop branch (as of today) resolved the issue for me. |
Still having this issue on 2.4, was not able to solve it by using the Develop branch, but I figured out a manual solution for me. The issue was that some DB entries were referencing an entity type ID that no longer existed. To fix this, I used the following queries:
|
Preconditions
Steps to reproduce
Actual result
$ php bin/magento migrate:data -a [ABS PATH]/app/code/Vendor/Migration/etc/opensource-to-opensource/1.9.3.8/config.xml
[2020-06-12 04:56:31][INFO][mode: data][stage: integrity check][step: Data Integrity Step]: started
[2020-06-12 04:56:31][INFO][mode: data][stage: integrity check][step: EAV Step]: started
100% [============================] Remaining Time: < 1 sec
[2020-06-12 04:56:31][INFO][mode: data][stage: integrity check][step: Customer Attributes Step]: started
100% [============================] Remaining Time: < 1 sec
[2020-06-12 04:56:31][WARNING]: Source fields are not mapped. Document: customer_entity. Fields: mp_cc_is_approved
[2020-06-12 04:56:31][INFO][mode: data][stage: integrity check][step: Map Step]: started
100% [============================] Remaining Time: < 1 sec
[2020-06-12 04:56:34][WARNING]: Source documents are not mapped: ajaxzoom360,ajaxzoom360set,ajaxzoomproducts,amasty_ampreorder_order_item_preorder,amasty_ampreorder_order_preorder,amasty_orderstatus_status,amasty_orderstatus_status_template,amasty_stockstatus_history,amasty_stockstatus_quantityranges,sashas_callforprice_product,tm_core_module
[2020-06-12 04:56:34][WARNING]: Source fields are not mapped. Document: sales_flat_order_item. Fields: backorder_estimate
[2020-06-12 04:56:34][INFO][mode: data][stage: integrity check][step: ConfigurablePrices step]: started
[2020-06-12 04:56:34][INFO][mode: data][stage: integrity check][step: Url Rewrite Step]: started
[2020-06-12 04:56:34][INFO][mode: data][stage: integrity check][step: Log Step]: started
[2020-06-12 04:56:34][INFO][mode: data][stage: integrity check][step: Ratings Step]: started
[2020-06-12 04:56:34][INFO][mode: data][stage: integrity check][step: OrderGrids Step]: started
[2020-06-12 04:56:34][INFO][mode: data][stage: integrity check][step: Tier Price Step]: started
[2020-06-12 04:56:34][INFO][mode: data][stage: integrity check][step: SalesIncrement Step]: started
[2020-06-12 04:56:34][INFO][mode: data][stage: integrity check][step: Inventory Step]: started
[2020-06-12 04:56:34][INFO][mode: data][stage: setup triggers][step: Stage]: started
[2020-06-12 04:56:34][INFO][mode: data][stage: data migration][step: EAV Step]: started
100% [============================] Remaining Time: < 1 sec
In ErrorHandler.php line 61:
Notice: Undefined offset: 11 in [ABS PATH]/vendor/magento/data-migration-tool/src/Migration/Step/Eav/Data.php on line 651
migrate:data [-r|--reset] [-a|--auto] [--]
*** If the EAV step is skipped, the migration actually worked sans all the attribute data.
The text was updated successfully, but these errors were encountered: