Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Commit b1eae3a

Browse files
authored
DOCS-3023: Corrected info in PR 3023 (#3231)
* DOCS-3023: Corrected info in PR 3023 Fixed migration troubleshooting section and removed existing troulbeshoot info from delta migration topic. * Update migration-troubleshooting.md @victor-v-rad, fixed for clarity, but am not sure I understand the second paragraph of the Explanation. Please clarify. thanks * DOCS-3023: Corrected info in PR 3023 Improving description of how the delta mode works for migration * DOCS-3023: Corrected info in PR 3023 Rewrote explanation for clarity. * DOCS-3023: Corrected info in PR 3023 Fixed some GSP issues. * DOCS-3023: Corrected info in PR 3023 Fixed some GSP issues * DOCS-3023: Corrected info in PR 3023 Fixed links and code blocks
1 parent f7f041b commit b1eae3a

File tree

4 files changed

+23
-35
lines changed

4 files changed

+23
-35
lines changed

guides/v2.1/migration/migration-migrate-delta.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ functional_areas:
1111

1212
## Overview
1313

14-
The incremental migration tool installs deltalog tables (with prefix m2_cl_*) and triggers to Magento 1 database during the [migration of data]({{ page.baseurl }}/migration/migration-migrate-data.html). It enables you to migrate only the changes made in Magento 1 since the last time you migrated data. These changes are:
14+
The incremental migration tool installs deltalog tables (with prefix `m2_cl_*`) and triggers (for tracking changes) in the Magento 1 database during the [migration of data]({{ page.baseurl }}/migration/migration-migrate-data.html). These deltalog tables and triggers are essential to ensuring that you migrate only the changes made in Magento 1 since the last time you migrated data. These changes are:
1515

1616
* data that customers added via {% glossarytooltip 1a70d3ac-6bd9-475a-8937-5f80ca785c14 %}storefront{% endglossarytooltip %} (created orders, reviews, changes in customer profiles, etc.)
1717

@@ -37,12 +37,6 @@ where
3737

3838
* `{<path to config.xml>}` is the absolute file system path to `config.xml`; this argument is required.
3939

40-
You must have the tables the migration initially created in the Magento 1 database in order to perform and retain the delta migration. If you wipe the Magento 1 database and try to do the delta, it will fail with the following error:
41-
42-
Deltalog for customer_entity is not installed
43-
44-
As an example, if you have Magento 1 on one server and Magento 2 on another that can't access the live Magento 1 database, you may need to copy the Magento 1 database over. In this case if you drop and overwrite the database, you will lose those special tables.
45-
4640
{: .bs-callout .bs-callout-info }
4741
Incremental migration runs continuously until you stop it by pressing CTRL+C.
4842

guides/v2.1/migration/migration-tool-internal-spec.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ Under node <code>&lt;value&gt;</code> there are rules that work with 'value' col
284284

285285
### Data migration mode
286286

287-
In this mode most of the data will be migrated. Before data migration the integrity check stages run for each step. If integrity check passed the Data Migration Tool installs deltalog tables (with prefix m2_cl_*) and corresponding triggers to Magento 1 database. And runs data migration stage of steps. When migration is completed without errors the volume check checks data consistency. It can show a warning message if you migrate live store. Do not worry, delta migration will take care of this incremental data. Next the most valuable migration steps are described. It is Map Step, URL Rewrite Step, EAV Step.
287+
In this mode most of the data will be migrated. Before data migration the integrity check stages run for each step. If the integrity check passes, the Data Migration Tool installs deltalog tables (with prefix `m2_cl_*`) and corresponding triggers to the Magento 1 database and runs data migration stage of steps. When migration is completed without errors, the volume check checks data consistency. It can show a warning message if you migrate the live store. Do not worry, delta migration will take care of this incremental data. The most valuable migration steps are Map, URL Rewrite, and EAV.
288288

289289
#### Map Step
290290

guides/v2.2/migration/migration-tool-internal-spec.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ Under node <code>&lt;value&gt;</code> there are rules that work with 'value' col
301301

302302
### Data migration mode
303303

304-
In this mode most of the data will be migrated. Before data migration the integrity check stages run for each step. If integrity check passed the Data Migration Tool installs deltalog tables (with prefix m2_cl_*) and corresponding triggers to Magento 1 database. And runs data migration stage of steps. When migration is completed without errors the volume check checks data consistency. It can show a warning message if you migrate live store. Do not worry, delta migration will take care of this incremental data. Next the most valuable migration steps are described. It is Map Step, URL Rewrite Step, EAV Step.
304+
In this mode most of the data will be migrated. Before data migration the integrity check stages run for each step. If the integrity check passes, the Data Migration Tool installs deltalog tables (with prefix `m2_cl_*`) and corresponding triggers to the Magento 1 database and runs data migration stage of steps. When migration is completed without errors, the volume check checks data consistency. It can show a warning message if you migrate the live store. Do not worry, delta migration will take care of this incremental data. The most valuable migration steps are Map, URL Rewrite, and EAV.
305305

306306
#### Map Step
307307

guides/v2.2/migration/migration-troubleshooting.md

Lines changed: 20 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
---
22
group: migration-guide
3-
subgroup: F_troubleshooting
43
title: Troubleshooting
5-
menu_title: Troubleshooting
6-
menu_node: parent
7-
menu_order: 6
84
---
95

106
## Common error messages
@@ -13,13 +9,13 @@ This section is about the errors that might occur when you run the Data Migratio
139

1410
### Source documents/fields not mapped
1511

16-
{% highlight xml %}
12+
```xml
1713
Source documents are not mapped: <EXTENSION_TABLE>
18-
{% endhighlight %}
14+
```
1915

20-
{% highlight xml %}
16+
```xml
2117
Source fields are not mapped. Document: <EXTENSION_TABLE>. Fields: <EXTENSION_FIELD>
22-
{% endhighlight %}
18+
```
2319

2420
In rare cases, the message might mention `Destination documents` or `Destination fields` instead of source ones.
2521

@@ -41,21 +37,21 @@ This message appears because the Data Migration Tool runs internal tests to veri
4137

4238
To ignore database entities, add the `<ignore>` tag to an entity in the `map.xml` file, like this:
4339

44-
{% highlight xml %}
40+
```xml
4541
<ignore>
4642
<field>sales_order_address_id</field>
4743
</ignore>
48-
{% endhighlight %}
44+
```
4945

5046
{: .bs-callout .bs-callout-warning }
5147
Before ignoring entities by map file or using the `-a` option, make sure you do not need the affected data in your Magento 2 store.
5248

5349
### Class does not exist but mentioned
5450

55-
{% highlight xml %}
51+
```xml
5652
Class <extension/class_name> does not exist but mentioned in:
5753
<eav_attribute.frontend_model> for <attribute_id=196>
58-
{% endhighlight %}
54+
```
5955

6056
#### Explanation
6157

@@ -75,11 +71,11 @@ A class from Magento 1 codebase could not be found in Magento 2 codebase during
7571

7672
#### Error message text
7773

78-
{% highlight xml %}
74+
```xml
7975
Foreign key <KEY_NAME> constraint fails.
8076
Orphan records id: <id_1>, <id_2> from <child_table>.
8177
<field_id> has no referenced records in <parent_table>
82-
{% endhighlight %}
78+
```
8379

8480
#### Explanation
8581

@@ -93,11 +89,11 @@ To keep the records, disable the `Data Integrity Step` by modifying the Data Mig
9389

9490
### Duplicates in URL rewrites
9591

96-
{% highlight xml %}
92+
```xml
9793
There are duplicates in URL rewrites:
9894
Request path: towel.html Store ID: 2 Target path: catalog/product/view/id/10
9995
Request path: towel.html Store ID: 2 Target path: catalog/product/view/id/12
100-
{% endhighlight %}
96+
```
10197

10298
#### Explanation
10399

@@ -111,9 +107,9 @@ This configuration adds a hash-string to the conflicting records of {% glossaryt
111107

112108
### Mismatch of entities
113109

114-
{%highlight xml%}
110+
```xml
115111
Mismatch of entities in the document: <DOCUMENT>
116-
{%endhighlight%}
112+
```
117113

118114
#### Explanation
119115

@@ -127,18 +123,16 @@ Run the Data Migration Tool in `Delta` mode to transfer incremental changes.
127123

128124
### Deltalog is not installed
129125

130-
{%highlight xml%}
131-
Deltalog for <DATABASE> is not installed
132-
{%endhighlight%}
126+
```xml
127+
Deltalog for <TABLE_NAME> is not installed
128+
```
133129

134130
#### Explanation
135131

136-
This error occurs during the process of incremental migration of changes to data. It means the delta migration of changes made in Magento 1 since the last time you migrated data was not performed properly and retained.
132+
This error occurs during [incremental migration]({{ page.baseurl }}/migration/migration-migrate-delta.html) of changes to data. It means deltalog tables (with prefix `m2_cl_*`) were not found in Magento 1 database. The tool installs these tables during [data migration]({{ page.baseurl }}/migration/migration-migrate-data.html) as well as database triggers which track changes and fill deltalog tables.
137133

138-
Delta migrations can fail when you wipe the Magento 1 database before doing the delta, since this action erases the tables created during the initial migration of data into the Magento 1 database. These tables are needed to perform the delta migration properly.
134+
One reason for the error could be that you are trying to migrate from a *copy* of your live Magento 1 store, not from the live store itself. When you make a copy from a live Magento 1 store that has never been migrated, the copy does not contain the triggers and additional deltalog tables needed to complete a delta migration, so the migration fails. The Data Migration Tool does NOT make comparisons between the DB of M1 and M2 to migrate the differences. Instead, the tool uses the triggers and deltalog tables installed during the first migration in order to perform subsequent delta migrations. In such a case, your copy of the live Magento 1 DB will not contain the triggers and deltalog tables that the Data Migration Tool uses to perform a migration.
139135

140136
#### Possible solution
141137

142-
Do not wipe the Magento 1 database before the delta migration process is complete in order to keep your initial migration tables.
143-
144-
If you have Magento 1 on one server and Magento 2 on another that can't access the live Magento 1 database, you may need to copy the Magento 1 database over first. Otherwise if you drop and overwrite the database, you will lose those special tables.
138+
We recommended testing the migration process from a copy of your Magento 1 database to fix your migration issues. After fixing the issues on the copy, start the migration process over again from your live Magento 1 database. This will help ensure a smooth migration process.

0 commit comments

Comments
 (0)