Skip to content

Mismatch of entities in the document: inventory_source_item #628

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
csdougliss opened this issue Dec 10, 2018 · 3 comments
Closed

Mismatch of entities in the document: inventory_source_item #628

csdougliss opened this issue Dec 10, 2018 · 3 comments

Comments

@csdougliss
Copy link

Preconditions

  1. Magento 1.14.4.0
  2. Magento 2.3.0
  3. PHP 7.2.13
  4. MySQL 5.7.24

Steps to reproduce

  1. Convert DB from M1 to M2

Expected result

  1. No errors

Actual result

[2018-12-10 15:34:17][WARNING]: Mismatch of entities in the document: inventory_source_item Source: 6126 Destination: 6119
[2018-12-10 15:34:17][WARNING]: Volume Check failed

Additional notes

@victor-v-rad
Copy link
Collaborator

victor-v-rad commented Dec 13, 2018

Thank you @craigcarnell for reporting the issue

Some records from M1 > cataloginventory_stock_item table were not transferred to M2 > inventory_source_item. To find them you can look at the method \Migration\Step\Inventory\Model\SourceItem::prepareSelect() . So either there are some records in cataloginventory_stock_item with website_id != 0 or records catalog_product_entity.entity_id =! cataloginventory_stock_item.product_id

@victor-v-rad
Copy link
Collaborator

@craigcarnell was it a bug of the tool?

@csdougliss
Copy link
Author

@victor-v-rad There was a few entries in M1 catalog_product_entity which had no sku which was the cause.

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

2 participants