data-migration-tool icon indicating copy to clipboard operation
data-migration-tool copied to clipboard

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

Open Aquive opened this issue 4 years ago • 4 comments

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.

Aquive avatar Oct 02 '20 18:10 Aquive

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


m2-assistant[bot] avatar Oct 02 '20 18:10 m2-assistant[bot]

Try this one

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

panusit avatar Dec 15 '20 07:12 panusit

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

tarikbelattar avatar Jan 15 '21 15:01 tarikbelattar

This worked for me also. thank you

ashvinimarwal avatar Apr 06 '21 16:04 ashvinimarwal