DataMigrate Pro·Mapping
Value Mapping Classification and Prefilling
Value mapping classification in the DataMigrate Pro Mapping Editor finds rows that need value translation and suggests a classification.
This guide describes the new workflow in the Mapping Editor: DMP finds mapping rows that need to be able to translate values, suggests a classification, and, after you apply it, can add to the value lists from the source master data.
What is translated?
A Value Mapping is a dictionary of source values and destination values. The Value Mapping Code links a row in BC Migration Mapping to this dictionary.
Example: In the source, a G/L account is 4000, and in Business Central it should be 6100.
| Code | Source Value | Destination Value |
|---|---|---|
GLACCOUNT |
4000 |
6100 |
During the transfer, DMP looks up the matching entry for the current source value and uses its destination value. If there is no matching entry, the source value is carried over unchanged. The classification detects matching dictionaries and assigns them; it does not decide, from a business perspective, which new account number, item number, or resource a value should be changed to.
Classification types
- DIRECT: The field always contains the same kind of master data key. Example:
G/L Entry.G/L Account No.is linked toGLACCOUNT. - CONDITIONAL: The meaning of the field depends on another field in the same row. A dispatcher uses this condition field to select the matching dictionary.
- NONE: This mapping row does not need a value translation.
- OPEN: The row has not yet been decided from a business perspective.
The DMP suggestion is a working aid, not a change to the mapping data. Check OPEN rows and unusual NONE suggestions in particular. Changes are written only when you apply a preview.
Workflow in the Mapping Editor
- Start the Mapping Editor with
DataMigratePro.exe --editmappingand open Value Mapping Classification on the left. - Use Refresh to load the candidates from the mapping database. The key figures show the total number and the number per classification; quick filters help you find open or deviating suggestions.
- Optionally, run Update catalog to load the field catalog from Azure into the mapping database. Loading updates only the catalog, not the mapping assignments. The ten type switches are available only when a catalog with applicable fields exists.
- Choose one of the following approaches:
- Export the candidates as CSV with Export candidates…, review them externally, and edit the columns
Classification,Value Mapping Code, the condition field, andRules. - Edit classifications directly in the corresponding grid columns.
- Turn on a type switch to have the matching direct and conditional assignments suggested automatically.
- Export the candidates as CSV with Export candidates…, review them externally, and edit the columns
- Review the changes. Import classification… and changes from the grid open a preview with new, changed, unchanged, and erroneous entries. Type switches also generate a preview. If there are errors, you can cancel the operation or, where offered, restrict it to the valid rows.
- Only Apply saves the reviewed changes and flags the affected records for synchronization to Business Central.
Importing the same classification again is idempotent: assignments that are already identical are not changed again.
Screenshot placeholder 1: Overview of "Value Mapping Classification" with key figures, catalog status, type switches, and candidate table.
Screenshot placeholder 2: CSV import preview with the statuses "new / changed / unchanged / error" and the "Apply" button.
Example: Direct assignment
The G/L account number 4000 in G/L Entry.G/L Account No. should become 6100.
| Setting | Value |
|---|---|
| Classification | DIRECT |
| Value Mapping Code | GLACCOUNT |
| Value Mapping | 4000 → 6100 |
After you apply it, the mapping row points to GLACCOUNT. During the migration, DMP looks up the source number in its value list. If 4000 → 6100 exists there, 6100 is written. If the entry is missing, the value 4000 is kept.
Example: Conditional assignment with a dispatcher
The field Sales Line.No. refers to different things depending on Sales Line.Type. No. alone therefore does not tell you which dictionary to use.
The mapping row receives the dispatcher code SALESNO_DISP. The associated dispatcher header uses Type as its condition field. Its rules point to the actual dictionaries:
Source Value (Type) |
Destination Value (Value Mapping Code) |
|---|---|
1 |
GLACCOUNT |
2 |
ITEM |
3 |
RESOURCE |
4 |
FIXEDASSET |
5 |
ITEMCHARGE |
Example: If Type = 2, DMP selects ITEM. If ITEM has the entry 1000 → A-1000, the source number 1000 becomes the destination number A-1000. If Type = 1, GLACCOUNT is used instead. The dispatcher does not translate any numbers itself; it only selects the matching dictionary.
An unconfigured type branch, or a source value that is missing in the selected dictionary, leaves the original No. value unchanged. If needed, * as the Source Value can define a default branch.
Screenshot placeholder 3: Details of a dispatcher with the condition field
Typeand rules for GLACCOUNT, ITEM, RESOURCE, FIXEDASSET, and ITEMCHARGE.
Type switches and field catalog
The field catalog contains known direct and conditional assignments from the Business Central application. DMP compares them with the existing mapping rows. The type switches can activate GLACCOUNT, ITEM, RESOURCE, FIXEDASSET, ITEMCHARGE, CUSTOMER, VENDOR, BANKACCOUNT, ICPARTNER, EMPLOYEE, and the posting groups GENBUSPOSTINGGROUP (general business posting group), GENPRODPOSTINGGROUP (general product posting group), VATBUSPOSTINGGROUP (VAT business posting group), and VATPRODPOSTINGGROUP (VAT product posting group). Posting group fields are also recognized by their field name without a catalog entry (Gen. Bus. Posting Group, Bal. VAT Prod. Posting Group, Def. VAT Bus. Posting Group, …). Each type also includes the key field of the master table itself (G/L Account.No., Gen. Business Posting Group.Code, …) so that the master records are renamed during migration.
Before writing, DMP shows a preview. When you turn a switch on, matching direct codes are set and, where necessary, dispatcher rules are added. Existing rules of other types are kept. Conflicts with manually created or imported assignments are not silently overwritten. When you turn a switch off, DMP removes only the automatically (AUTO) generated assignments of that type; manual or imported assignments and value lists are kept.
A switch can appear as indeterminate if only some of the applicable mapping rows are already assigned. This is a coverage status, not an error.
Prefilling value lists from the source
After you apply the changes, the editor asks whether standard value lists should be added from the source master data if the operation touches a supported standard code. If you agree:
- DMP reads the master data keys of the configured source company from the source database, for example G/L accounts, customers, vendors, items, resources, fixed assets, or the codes of the general business, general product, and VAT posting groups.
- Only
Source Valueentries that do not yet exist are added. The comparison ignores case and leading and trailing whitespace. - For new entries, DMP initially sets
Destination Valueequal toSource Value. - Existing rows and their destination values remain unchanged. New rows are flagged for synchronization to Business Central.
- Errors while reading a code, such as a missing source table, do not prevent the remaining codes from being processed; DMP displays the errors afterward.
Example: The source contains the accounts 4000 and 4010. GLACCOUNT already contains 4000 → 6100. The prefilling keeps this manual translation and adds only 4010 → 4010. The user can then change the destination 4010 to the required BC value in the Value Mapping dialog if needed.
This prefilling is a starting point, not an automatic renumbering from a business perspective. Check the generated destination values before a production migration.
Screenshot placeholder 4: Confirmation dialog for prefilling and the value list dialog with "Source Name" and an existing or newly added row.
In the value lists of a supported standard code, the editor can additionally show the name of the source record for orientation. This column is for display only and is not saved. If several source values are assigned to the same destination value, a notice appears; this n:1 assignment is allowed and does not block saving.
When the catalog is not needed
CSV import and manual classification can be used independently of the field catalog. The catalog is required for automatic assignment through the type switches. If the catalog is missing, these switches remain disabled; existing manual Value Mappings can still be maintained and used.