You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Magento 1.x store has had it's original installation frontend website with a code of base either renamed or removed (core_website.code table column).
I suspect version of 1.x and 2.x platform is irrelevant, that this issue may apply to all versions. However I can confirm that this issue is reproduce-able on a stock code base of Magento EE 1.14.4.2 and Magento Commerce 2.3.2.
Steps to reproduce
Install Magento 1.x.
Post Installation, log into the admin, navigate "System -> Manage Stores".
Click the "Main Website" to open it for editing.
Change the code from base to foobar.
Install Magento 2.x.
Install the data-migration-tool of the corresponding version for the 2.x platform.
Configure the necessary config.xml.dist, only modifying the database settings in order to perform migration.
Migrate settings.
Migrate data.
Expected result
Post migration, the inventory_stock_sales_channel should only contain one record as there is only one frontend website present in the 2.x platform.
Users should be able to log into the admin and navigate to "Stores -> Inventory Manage Stocks" and view page without error.
Actual result
inventory_stock_sales_channel has two records, the original record from installation, and the record added from the Inventory Step of the migration tool.
Navigating the admin to the "Stores -> Inventory Manage Stocks" page yields the following error:
The website with code base that was requested wasn't found. Verify the website and try again.
Additional notes
Solution: The Migration\Step\Inventory\Model\StockSalesChannel model should empty the table prior to performing the INSERT FROM SELECT, in order to remove the record added during installation. If the 1.x platform still has a website with a code of base, it will be re-inserted from the INSERT FROM SELECT, if it has been renamed or removed prior to migration, this erroneous record will not be present post-migration.
The text was updated successfully, but these errors were encountered:
Preconditions
base
either renamed or removed (core_website.code
table column).I suspect version of 1.x and 2.x platform is irrelevant, that this issue may apply to all versions. However I can confirm that this issue is reproduce-able on a stock code base of Magento EE 1.14.4.2 and Magento Commerce 2.3.2.
Steps to reproduce
base
tofoobar
.config.xml.dist
, only modifying the database settings in order to perform migration.Expected result
inventory_stock_sales_channel
should only contain one record as there is only one frontend website present in the 2.x platform.Actual result
inventory_stock_sales_channel
has two records, the original record from installation, and the record added from the Inventory Step of the migration tool.Additional notes
Solution: The
Migration\Step\Inventory\Model\StockSalesChannel
model should empty the table prior to performing theINSERT FROM SELECT
, in order to remove the record added during installation. If the 1.x platform still has a website with a code ofbase
, it will be re-inserted from theINSERT FROM SELECT
, if it has been renamed or removed prior to migration, this erroneous record will not be present post-migration.The text was updated successfully, but these errors were encountered: