Why is the tool deleting database records?

I want to keep my store-view in my developer environment but if i import a store group the tool deletes the database tables from The store table and the store_group table.
This results in the error that the store is not be found in front-end and back end. So admin panel is not working any more. And the website gives error store not found.
Even console commands gives error store not found which is a logical outcome.
Is there a workaround for keeping the store groups in dev environment and add the store-groups i want to keep from  the old environment?
Best regards Bram

UB Data Migration Lite -- 1.0.6

Old environment details:
Apache Version
PHP Version
MySQL Version
Magento version
New environment details:
Apache Version
PHP Version
MySQL Version
Magento version 2.1.7

  1. Profile photo of Bram SlagboomBram Slagboom -30.00 $tone July 6, 2017

    Go to your_magento_folder/pub/ub-tool/protected/controllers/

    make a copy of the file for backup and Edit MigrateController.php

    And commend out the following lines.

    //delete default websites, stores, store views

    //Mage2Store::model()->deleteAll("code = 'default' AND website_id = 1");

    //Mage2StoreGroup::model()->deleteAll("website_id = 1");

    //Mage2Website::model()->deleteAll("code = 'base'");

    Best regards Bram

1 answer

Profile photo of ubdev Staff 38020.00 $tone July 6, 2017

Hi Bram,
Thanks for spending time working around with our Lite version. 
It’s pity that the Lite version codebase is outdated and available for Magento 2.0.7 only. Thus it’s mainly for testing purpose. 
We highly recommend you move forward with our Pro version. It allows you to migrate M1 to a Magento 2 with existing data (The Lite version requires your Magento 2.0.7 must be a fresh installation, and it’s not ready with NGINX web server as well).
You can learn more about UB Data Migration Pro version 3 via this tutorial video: https://youtu.be/R4UBLe2kf-I and recent data migration case studies: 
-- We did use the Pro version ourself to help Winetasting.com – Migrate 382,047 customer entities to Magento 2
-- And this case study as well -- Freelaunch.nl used UB Data Migration Pro to migrate 230,000 products to Magento 2
Ubertheme team


Please login or Register to Submit Answer

Written By