MSI Import does not update quantities in stock
Describe the bug I am having a strange issue with the standalone msi-import. The import itself is working but the quantity in the "stock view" of magento is not updating.
To Reproduce Steps to reproduce the behavior:
- Execute the command import:products:inventory:msi
- Open your database tool and open table "inventory_source_item" and check a imported entity
- The imported values in the table are correct
- Open your database tool and open generated view for stock (in my case "inventory_stock_1") and search for the sku of the importet product -> see the value is not updated.
Sidenote The strangest thing is, if the csv file (from pacemaker generated) is imported directly with the magento import in the backend, everything works as expected! And another Problem which is maybe related, if only products are imported the saleable quantity is also 0 for all imported products. Even if no stock is imported.
Expected behavior The stock view should also update.
Screenshots
Additional context Add any other context about the problem here.
Tech specs
- magento 2.4.5-p1
- php 8.1
- mariadb 10.4
- pacemaker community version
- version of module techdivision/import is 17.3.8 , version of techdivision/import-cli-simple is 12.1.1 version of module techdivision/import-cli-simple is 4.2.3
- indexer is on asynchron
Hi @roman204 for the issue and the infos. Is the db-difference still there after an index run? I'm confused for the version of import-cli-simple (duplicate)? Please look at https://github.com/techdivision/import-product/blob/master/CHANGELOG.md and update all importer modules. If the problem still exists after the update, then we will check this more closely.
Hi @Bullitt300 , thanks for your attention. Yes the db-difference is also there after an index run. Sorry about the version mismatch, i am using import-cli-simple in version 4.2.3. Ok i will do the update and write back.
@Bullitt300 seems to have that error.. Don't reset Inventory Stock quantity and status if csv column are empty
@Bullitt300 testet if after update techdivision/import-product to version 25.1.7 and now it works as it should, thanks
after a second investigation i have to say that sadly this dont work.