DataMigrate Pro·Mapping
Mapping Transformers
Mapping transformers adjust the entries in BC Migration Tables and BC Migration Mapping. This page shows the CLI usage and when they run.
Mapping transformers adjust the entries in [BC Migration Tables] and [BC Migration Mapping]
after the local mapping has been built. They run automatically as part of the
build-mapping workflow (--buildmapping, -t buildsinglemapping) and can also be
executed manually via CLI.
CLI Usage
# Run all registered transformers (in execution order)
dmp --applytransformations
# List all registered transformers with CLI name, execution order and description
dmp --applytransformations list
# Run a single transformer by CLI name (class name without 'Transformer' suffix)
dmp --applytransformations FinancialReport
# Run a single transformer scoped to one source table (only IScopedMappingTransformer)
dmp --applytransformations VATReportingDate -s 36The transformer name is matched case-insensitively against the CLI name
(e.g. FinancialReport), the class name (FinancialReportTransformer) or the
display name (Financial Report Mapper). Unknown names print the list of
available transformers.
Transformers marked with scoped implement IScopedMappingTransformer and
support restricting the run to a single source table via -s <TableNo>.
Errors in a single transformer do not stop the others when running all
transformers; each failure is logged and execution continues.
Registered Transformers
Ordered by execution order (lower runs first).
| CLI Name | Order | Scoped | Description |
|---|---|---|---|
WorkflowTableRelationValue |
100 | yes | Rewrites Workflow Table Relation Value mappings: field ID 8000 is remapped to 2000000000 so workflow relations survive the BC renumbering. |
VATReportingDate |
110 | yes | Creates mapping entries for the BC-only field "VAT Reporting Date" (does not exist in NAV). Adds a synthetic negative source field per table with Calculation T.[Posting Date]; skipped when the table has no "Posting Date" field. |
CrossReferenceToItemReference |
115 | no | Remaps NAV "Cross-Reference ..." fields to the BC "Item Reference ..." successors (No., Type, Type No., Unit of Measure) in all affected tables. |
PictureToImage |
116 | yes | Redirects NAV BLOB "Picture" fields to the BC Media field "Image" where the destination table has one. |
FinancialReport |
119 | yes | Maps NAV Account Schedules to the BC "Financial Report" structure (MS upgrade tag MS-441563-GetAccountSchedulesToFinancialReportsUpgradeTag-20220705). Creates the synthetic source table -84 (clone of table 84 "Acc. Schedule Name") targeting BC table 88 "Financial Report" (fields 2/50/51/52 via calculations on Name, Description, Default Column Layout) and remaps General Ledger Setup (98) fields 110-113 ("Acc. Sched. for ...") to their successors 114-117 ("Fin. Rep. for ..."). Sets Skip = 1 when the source field name does not exist as a column in the physical source database. Synthetic negative source fields inherit name/type from their positive counterpart (ABS) without the PK flag. |
LookupField |
120 | no | Creates lookup-based mapping entries that resolve foreign-key name/description fields via joined lookup tables. |
SynchronizationTableInfo |
200 | yes | Updates [Synch_ Table No_] / [Synch_ Table Name] in [BC Migration Tables] so the synchronization engine targets the correct destination tables. |
SkipFieldNormalizer |
300 | yes | Normalizes the Skip flag: sets Skip = 0 for correctly mapped fields so previous manual skips do not linger. |
CompanyWhereClause |
345 | yes | Adds company where clauses to mappings for per-company source tables so only data of the configured source company is exported. |
DestinationFieldValidation |
350 | yes | Validates destination fields against [BC Field]; sets Skip = 1 for mappings whose destination field is missing or obsolete. |
AutoCreatedTransformerNameFiller |
990 | yes | Fills empty source field names of auto-created mapping rows (from other transformers) so every row has a display name. |
Disabled Transformers
These exist in the codebase but are not registered in the orchestrator:
| CLI Name | Order | Reason |
|---|---|---|
FieldCopyCrossTable |
117 | Requires the [BC Upgrade Tags] analysis table, which is no longer expected to exist. Processes Type=4 (FieldCopy_CrossTable) upgrade tags. |
FieldCopySameTable |
118 | Same as above, for Type=3 (FieldCopy_SameTable) upgrade tags. |
LookupFieldCleanup |
125 | Temporarily disabled; cleans up incorrect lookup mappings created by LookupField. |
EnumIntegerMappingEnrichment |
340 | Intentionally disabled. Pricing/feature mappings must never be persisted into the mapping tables; feature migrations (-t putalldata -feature ...) build their mapping in memory instead. |
Adding a New Transformer
- Create a class in
DataMigratePro.Core/Transformers/implementingIMappingTransformer(orIScopedMappingTransformerfor single-table support). - Choose a free
ExecutionOrder(see table above). - Register it in
MappingTransformationOrchestrator.Initialize(). - The transformer is then automatically reachable via
--applytransformations <ClassNameWithoutTransformerSuffix>and listed by--applytransformations list. - Document it in this file.