Skip to content

Delta migration does not work #228

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
PascalBrouwers opened this issue Jan 27, 2017 · 11 comments
Closed

Delta migration does not work #228

PascalBrouwers opened this issue Jan 27, 2017 · 11 comments
Labels

Comments

@PascalBrouwers
Copy link
Contributor

Hi @victor-v-rad,

We migrated successfully from 1.9.0.1 to 2.1.2

After a while we wanted to have the new orders, customers etc into the Magento 2 but after running migrate:delta no new data was found. We did get some warnings:
image 2017-01-27 at 2 24 26 pm

In the old database mage_m2 tables are there. Any idea why it is not working?

@victor-v-rad
Copy link
Collaborator

Hi @PascalBrouwers

It could be in case you created (for testing purposes) new entities (orders/customers ... ) in Magento 2 after "data migration" but before "delta migration".

@PascalBrouwers
Copy link
Contributor Author

Create no new customers after data migration. Though we did create 1 new product and a few new orders. Do I need to delete those?
If you want I can send the db's and the configuration.

@victor-v-rad
Copy link
Collaborator

It is better to make a fresh start by restoring your Magento 2 DB to its initial state

@PascalBrouwers
Copy link
Contributor Author

I removed the extra products and orders that where added an ran the delta migration again, but got the same result. How does the delta migration work? Isn't there always a mismatch in entities because the M1 database has more entities?

@PascalBrouwers
Copy link
Contributor Author

I ended up with doing a fresh install of Magento 2 and tried to retain the data that was made by using data upgrade scripts.

@victor-v-rad
Copy link
Collaborator

So have this worked out? The issue can be closed?

@PascalBrouwers
Copy link
Contributor Author

Well, my question remains unanswered. Can you use the tool, make changes in data on M2 and then do a delta migration?

@victor-v-rad
Copy link
Collaborator

victor-v-rad commented Feb 10, 2017

The tool was made for migraion to fresh installed Magento 2 otherwise issues can occur

@PascalBrouwers
Copy link
Contributor Author

ah ok

@dfelton
Copy link
Contributor

dfelton commented Feb 10, 2017

@PascalBrouwers To your question: "Well, my question remains unanswered. Can you use the tool, make changes in data on M2 and then do a delta migration?"

In my experience this depends on the nature of the changes on M2 database which you wish to perform prior to the delta migrations.

The deltas, do not track every change on the M1 database. For example you can go ahead and make all the changes you like to store configuration, as there is no Deltas for that.

The deltas are intended for (going from memory here) changes mostly regarding the following:

  • Customer accounts
  • Sales Information
  • Catalog Inventory Stock changes.

This means you can make most the changes you want to other areas of the M2 database post initial migration without causing issues in your Deltas. Changes may include revisions to your Product Categories, Products themselves --again, the Deltas do track changes in inventory, so excluding that. I also do not recommend deleting products that were migrated, as the delta may blow up when attempting to update the inventory for deleted product(s) -- CMS Pages, Static Blocks.

Based off default configuration, I do not recommend doing any of the following on your M2 database after your initial migration if you plan to run Deltas with it's default configuration:

  • Add/Remove products (on either DB. If you do add the product to both databases at the same time in the same order so that their entity_id on both databases match, this is only for inventory reasons, not attribute information reasons)
  • Add/Remove customers
  • Create any new orders
  • Attempt to manage product inventory

@jeffb1a5
Copy link

checkout the last few comments on this thread:
#316

a magerun command to retro-actively populate the m2_cl tables in the M1 installation;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants