magento / data-migration-tool

Magento Data Migration Tool
https://devdocs.magento.com/guides/v2.3/migration/bk-migration-guide.html
Open Software License 3.0
336 stars 200 forks source link

The website with id 1 that was requested wasn't found. Verify the website and try again #849

Open Aquive opened 3 years ago

Aquive commented 3 years ago

Preconditions

  1. Magento 1.9.3.7 and Magento 2.3.4
  2. Data Migration tool 2.3.4

Steps to reproduce

  1. Install and configure data migration tool
  2. Run bin/magento migrate:settings vendor/magento/data-migration-tool/etc/opensource-to-opensource/1.9.3.7/config.xml and wait to finish
  3. Run bin/magento migrate:data vendor/magento/data-migration-tool/etc/opensource-to-opensource/1.9.3.7/config.xml

Expected result

  1. Expecting the actual data to migrate after settings and stores are migrated.

Actual result

  1. Error after running migrate:data.

In WebsiteRepository.php line 110:

The website with id 1 that was requested wasn't found. Verify the website and try again.

Additional notes

I tried manually fixing it but I don't know where it is going wrong. The settings and stores get transferred in the migrate:settings step. I can see the data in de M2 database. But I cannot see any website or store with id 1. So I don't know why Magento is trying to load it anyway.

m2-assistant[bot] commented 3 years ago

Hi @Aquive. Thank you for your report. To help us process this issue please make sure that you provided sufficient information.

Please, add a comment to assign the issue: @magento I am working on this


panusit commented 3 years ago

Try this one

DELETE FROM core_config_data WHERE scope_id = 1 AND scope = 'websites';

tarikbelattar commented 3 years ago

Thank you @panusit it works for me on Magento 2.3.5-p2 you saved my day 👍

ashvinimarwal commented 3 years ago

This worked for me also. thank you