DataMigrate Pro·Finance and reconciliation
DataMigrate Pro – Reconciliation NAV ↔ Business Central (-t reconcile / --reconcile)
Reconciliation between NAV and Business Central proves that the figures match. DataMigrate Pro reads only and exports the result as evidence.
User and operations documentation for the reconciliation function. Functional requirements and decisions: Requirement-Reconciliation-NAV-BC.md. Opening balance/cutoff: Requirement-LedgerCutoff-EntryOffset.md (replaces Requirement-OpeningBalance-PostingDate-Cutoff.md). Parameter quick overview: DataMigratePro-Parameters-Quick-Overview.md. Source artifacts: ReconciliationOptions.cs, ReconciliationPeriodBuilder.cs, ReconciliationExecutor.cs, ReconciliationHandler.cs, ReconciliationSetFile.cs, ReconciliationSettings.cs, ReconciliationWindow.xaml.
1. Context and Purpose
After every test run or live run of a migration, you must prove that the figures in Business Central (BC) match the figures in NAV. For this, the reconciliation reads
- the source figures by SQL directly from the NAV database (
SELECTonly), - the target figures live from Business Central (DMP extension API or OData page web services,
GETonly),
translates the NAV numbers with the same value mapping as the migration, places both sides next to each other, reports differences, and exports the result as evidence (CSV, HTML, text, JSON).
The reconciliation is read-only. It changes neither NAV nor Business Central.
1.1 The Standard Reconciliations
Report (--report) |
Name | Type | Time reference | Comparison key |
|---|---|---|---|---|
opencustomer |
Open customer ledger entries | Open item list | As-of date (--asofdate) |
Customer number (BC) |
openvendor |
Open vendor ledger entries | Open item list | As-of date (--asofdate) |
Vendor number (BC) |
glbalance |
Trial balance, G/L accounts | Trial balance (SuSa) | Period (--from/--to) |
G/L account number (BC) |
custbalance |
Trial balance, customers | Trial balance (SuSa) | Period (--from/--to) |
Customer number (BC) |
vendbalance |
Trial balance, vendors | Trial balance (SuSa) | Period (--from/--to) |
Vendor number (BC) |
glpostinggroup |
G/L entries by general business/product posting group | Movements | Period (--from/--to) |
General business posting group|Product posting group (BC) |
vatbalance |
VAT entries by VAT business/VAT product posting group | Movements | Period (--from/--to) |
VAT business posting group|VAT product posting group (BC) |
inventoryqty |
Inventory (quantity) by item/variant/location | Inventory | As-of date (= --to) |
Item No.|Variant code|Location code (BC) |
inventoryvalue |
Inventory value by item | Inventory | As-of date (= --to) |
Item number (BC) |
all |
All nine reports | – | – | – |
Open item lists: The remaining amount as of the as-of date = Σ of the detailed entries (Detailed Cust./Vendor Ledg. Entry, Amount (LCY)) with a posting date ≤ the as-of date, per entry. An entry counts as open if this remaining amount is ≠ 0. The current Open flag is deliberately not used, because it reflects the current state and not the as-of date.
Trial balance (SuSa): For each account/customer/vendor, the beginning balance (Σ of entries before From), debit and credit in the period, ending balance (beginning balance + debit − credit), and the number of entries are compared. In addition, control checks run:
glbalance: Σ debit = Σ credit per side (balance sheet equilibrium).custbalance/vendbalance: Σ ending balance of customers/vendors = balance of the receivables/payables accounts (from the NAV posting groups, translated through theGLACCOUNTmapping; can be overridden with--receivablesaccounts/--payablesaccounts).
For custbalance / vendbalance, period turnover follows the standard Customer/Vendor FlowFields: sum the stored Debit Amount (LCY) and Credit Amount (LCY) of detailed entries excluding Entry Type = Application (NAV option 2). Splitting Amount (LCY) by sign would count application pairs as additional turnover and lose correction-entry debit/credit assignments. Opening balances still sum all detailed Amount (LCY) entries before the period; entry counts and drilldown still include all detailed entries in the period. Open-item calculations are unchanged. The OData fallback requires Entry_Type, Debit_Amount_LCY and Credit_Amount_LCY on the published detailed ledger pages; missing fields cause an explicit error rather than an inaccurate turnover fallback.
Vendor opening and closing balances use the ledger convention (debit minus credit). The installed vendbalance API returns the opening using the opposite Vendor Net Change (LCY) FlowField sign, while debit and credit already use the ledger convention. The PC reader therefore negates only the API opening and recalculates closing as corrected opening plus debit minus credit. It does not infer signs from NAV, force balances to be negative, or change debit, credit, counts or detail amounts. The supplied reconciliation evidence from 22 October 2026 confirms this convention across all 977 vendor rows: correcting the opening removes all 140 differences and yields a closing total of -4,076,617.29, matching the payables control accounts. No BC extension update or data change is required. BC OData sums signed detailed ledger amounts directly and is not normalized again. Other reports, including open vendor items, are unchanged.
Direct reconciliation OData reads and automatic fallback reads decode the company query parameter from the configured endpoint exactly once, then encode the decoded name when building the OData company path. Spaces, apostrophes, Unicode and literal percent sequences in company names are preserved without double encoding. The shared migration endpoint and its company handling are unchanged. A missing or empty company parameter produces an explicit configuration error.
Posting groups (movements): Both reports compare only the movements of the period. There is no beginning balance per posting group (opening balances are posted in BC without posting groups). The key is the combination of the general business posting group and the product posting group, separated by |. Empty posting groups produce keys such as |WAREN or |.
glpostinggroup:G/L Entrygrouped byGen. Bus. Posting GroupandGen. Prod. Posting Group; debit, credit, balance (debit − credit) and number of entries in the period; control check Σ debit = Σ credit per side. Year-end closing entries are handled as inglbalance(--includeclosingentries).vatbalance:VAT Entrygrouped byVAT Bus. Posting GroupandVAT Prod. Posting Group; base amount (Base), VAT amount (Amount, split into debit = positive and credit = negative amounts), balance and number of entries in the period. A different base amount counts as a difference even if the VAT amount is the same. In the drilldown, the VAT amount appears in the amount column and the base amount in the FCY column.
The control check of glpostinggroup sums debit and credit across all posting group combinations of the respective side. A single combination does not have to balance: offsetting entries can carry other or empty posting groups. A control difference that already exists in NAV is not an additional migration error if BC shows the same signed difference within the tolerance or the BC control passes. The control values remain visible; actual NAV↔BC row differences remain errors regardless (details in chapter 8). There is no debit = credit control check for vatbalance, because VAT movements do not form a balanced G/L journal.
If the period ends on the opening balance as-of date (only balances comparable), the posting group reports are skipped with a note.
Inventory (balance as of the as-of date, FR-418): Both reports compare the balance at the end of the period (--to; with --cutoffdate, the as-of date), not movements. Beginning balance, debit and credit stay empty; only the Quantity or Inventory value column is compared, and the number of entries for information. The item part of the key is translated through the value mapping ITEM (key field Item Ledger Entry.Item No. / Value Entry.Item No. / Item.No., fallback standard code); variant and location codes have no standard code and are compared unchanged.
inventoryqty:Item Ledger Entry(32) grouped byItem No.,Variant Code,Location Code; ΣQuantitywith a posting date ≤--to. The compared number is a quantity, not an amount (columnsQuantity NAV/Quantity BC). BC: DMP API (report = inventoryqty) or OData page 38 Item Ledger Entries (ItemLedgerEntriesService, fieldsItem_No,Variant_Code,Location_Code,Quantity).inventoryvalue:Value Entry(5802) grouped byItem No.; ΣCost Amount (Actual)with a posting date ≤--to(columnsInventory Value NAV/Inventory Value BC). BC: DMP API (report = inventoryvalue) or OData page 5802 Value Entries (ValueEntriesService, fieldsItem_No,Cost_Amount_Actual).
After an inventory cutoff (start block as of the as-of date), the difference per item/variant/location or per item is 0, even though BC carries only one consolidated start entry instead of the individual NAV entries (AK-412). The drilldown (--detail) lists the entries of the period --from..--to; for inventoryqty, the amount column shows the quantity.
2. Scope
2.1 In Scope
- The nine standard reconciliations from chapter 1.1, individually or combined.
- Source: NAV tables 17, 21, 25, 254, 379, 380, 15, 18, 23, 250, 251, 323, 324, 32, 5802, 27 as well as
Accounting Period,Source Code Setup, customer/vendor posting groups. - Target: Business Central live, company/environment from
settings.json. - Application of the value mappings before the comparison; n:1 aggregation when several source numbers map to one target number.
- Tolerance, source-only/target-only marking, drilldown to individual entries.
- Periods that account for the opening balance and cutoff.
- Export of CSV,
summary.txt,parameters.json,report.html, optionallyresult.json. - CLI with exit code, GUI window, parameter sets, one-sided runs.
2.2 Out of Scope
- Reconciliations of inventory, fixed assets, projects and bank; VAT reconciliation beyond the grouping by VAT posting groups (for example, per VAT rate or settlement period).
- Automatic correction postings.
- Target side by SQL (BC on-premises) – interface prepared, not implemented.
- Multi-company merge (FR-118) and dimension grouping (FR-119).
--reconcileafterafterputalldata(CLI-109).
3. Sequence of a Reconciliation Run
- Merge parameters: If
--setis specified, the set is loaded; command-line values override set values. If--savesetis specified, the effective parameters are saved. - Validate parameters: Reports, date formats, tolerance, decimal separator, side selection and
--targetare validated; errors abort immediately. - Connect to the source: NAV SQL reader from the configured connection (
SqlConnection, source database, source company). With--targetonly, NAV may be missing. - Load the value mapping: From the mapping database (
BC Migration Mapping,BC Value Mapping). If loading fails, a warning is issued and the comparison runs unmapped. - Connect to the target: Depending on
--target, the DMP API (actionreconcileonUpload_LoadData) or OData is used. If BC is not reachable, the reason is logged; the run continues and exports the NAV side. - Determine the closing source code:
--closingsourcecodeor, from NAV,Source Code Setup; fallbackCLSINCOME. - Determine the start of the fiscal year: From NAV
Accounting Period(New Fiscal Year), the last start ≤ the as-of date; fallback January 1 of the as-of date's year. - Per report: Build the period (chapter 4.2), read both sides in parallel, translate numbers, join rows, calculate differences, run control checks, optionally compare individual entries.
- Output: Console summary, export files, log entries, exit code.
4. Settings in Detail
All options apply to the CLI (DataMigratePro -t reconcile …) and, where stated, to the GUI (DataMigratePro --reconcile …; parameters prefill the form). Options without a value are switches (flags). Option names are not case-sensitive.
Date formats: All date parameters accept yyyy-MM-dd, dd.MM.yyyy or yyyyMMdd.
4.1 Report Selection
| Option | Value | Default | Required |
|---|---|---|---|
--report |
opencustomer, openvendor, glbalance, custbalance, vendbalance, glpostinggroup, vatbalance, inventoryqty, inventoryvalue, all; several separated by commas |
– | Yes |
Meaning: Determines which reconciliations run. all corresponds to glbalance,custbalance,vendbalance,opencustomer,openvendor,glpostinggroup,vatbalance,inventoryqty,inventoryvalue. Duplicate entries are ignored; unknown names cause the run to abort. In the GUI, this corresponds to the report check boxes.
4.2 Time Parameters
| Option | Value | Default | Applies to |
|---|---|---|---|
--asofdate |
Date | --cutoffdate, otherwise today |
Open item lists (as-of date); default for --to |
--from |
Date | Start of the fiscal year from NAV Accounting Period |
Trial balance (start of period) |
--to |
Date | --asofdate |
Trial balance (end of period, inclusive) |
--cutoffdate |
Date | – | Trial balance (opening balance logic); default for --asofdate |
--openingbalancedate |
Date | --cutoffdate |
Trial balance (date of the posted BC opening balance) |
--asofdate (as-of date). For opencustomer/openvendor, all entries with a posting date ≤ the as-of date are considered; the remaining amount is calculated as of the as-of date. For the trial balance, the as-of date is the default for --to. If a cutoff is set, the as-of date defaults to the cutoff; otherwise it is the current date.
--from (From). Start of the trial balance period. Entries before From form the beginning balance; entries from From onward form the movements (debit/credit). If not specified, the start of the fiscal year is read from the NAV accounting periods (last period with New Fiscal Year ≤ the as-of date; fallback January 1). The report receives the note From defaulted to fiscal year start …. --from must not be later than --to.
--to (To). End of the trial balance period, inclusive. If not specified = as-of date.
--cutoffdate (opening balance cutoff). Activates the opening balance logic from Requirement-OpeningBalance-PostingDate-Cutoff.md: Before the cutoff, BC has no individual entries, only the condensed opening balance. To avoid apparent differences, the following applies to trial balance reports:
--tomust not be before the opening balance date (abort with an error message; BC has no entries there).- If
--from≤ the opening balance date, the period is internally shifted to the opening balance date + 1: Balances up to the cutoff are compared as the beginning balance (NAV balance against BC opening balance), and movements only from the following day. - If the period ends exactly on the opening balance date, only ending balances are compared; the individual entry comparison (
--detail) is skipped for this report (note in the report). - In addition, the cutoff is the default for
--asofdate.
--openingbalancedate (opening balance date). Date on which the opening balance was posted in BC (for example, closing date C31.12.2023). Default = --cutoffdate. Effect: Closing entries on exactly this date are counted on both sides, even if closing entries are otherwise excluded (NAV: entries with closing date = opening balance date; BC OData: entries with the closing source code on this date). Later closing entries remain excluded. The period shift from --cutoffdate still requires the cutoff; without it, only the inclusion of closing entries on this date takes effect.
4.3 Comparison Parameters
| Option | Value | Default |
|---|---|---|
--tolerance |
Decimal number ≥ 0 (, or . as the decimal separator) |
0 |
--includeclosingentries |
Flag | off (closing entries excluded) |
--closingsourcecode |
Source code (text) | from NAV Source Code Setup, fallback CLSINCOME |
--showfcy |
Flag | off |
--detail |
Flag | off |
--tolerance (tolerance, LCY). Amount in local currency up to which a difference counts as rounding. A row counts as matching if |target − source| ≤ tolerance; otherwise it counts as deviating. The same tolerance applies to the control checks (Σ debit = Σ credit, control accounts) and to the individual entry comparison. Negative values are rejected.
--includeclosingentries (include closing entries). By default, year-end closing entries are excluded, because after an opening balance migration BC does not contain these entries. Detection:
- NAV: Closing dates (
C31.12.yyyy) are stored in SQL asyyyy-MM-dd 23:59:59; regular posting dates have no time component. - BC through the DMP API: the extension handles closing dates on the server side.
- BC through OData: Entries with
Source_Code= closing source code (--closingsourcecode) are filtered out.
With the flag, closing entries are counted on both sides (for example, with a complete entry migration including closing postings).
--closingsourcecode (closing source code). Source code with which BC marks closing entries. Required only in OData mode. If not specified, DMP reads the code from the NAV Source Code Setup; if that fails, CLSINCOME applies. With --targetonly and no NAV access, CLSINCOME applies directly unless a value is set.
--showfcy (show foreign currency). The comparison is always in local currency. With this flag, summary_<report>.csv and report.html of the open item lists additionally contain the informational columns Remaining FCY NAV, Remaining FCY BC, Currency. No effect on the result.
--detail (individual entries). Additionally reads the individual entries of both sides, compares them per key (document type + document number + posting date + account/customer/vendor according to value mapping), and writes detail_<report>.csv. Missing counterparts are marked as NAV only / BC only; Entry No. of both sides is included for information. Significantly increases run time and data volume. In the GUI: "Load entries (drilldown)" – without this option, the double-click drilldown is empty.
4.4 Control Accounts
| Option | Value | Default |
|---|---|---|
--receivablesaccounts |
G/L account numbers (BC), comma-separated | from NAV customer posting groups (Receivables Account), translated through the GLACCOUNT mapping |
--payablesaccounts |
G/L account numbers (BC), comma-separated | from NAV vendor posting groups (Payables Account), translated through the GLACCOUNT mapping |
Meaning: Determines against which G/L accounts the control row in custbalance or vendbalance checks (Σ ending balance of the subledger = Σ balance of the control accounts, per side). The override is necessary if the posting groups in BC have changed or accounts exist without a GLACCOUNT mapping (then the note Control account '…' has no GLACCOUNT value mapping; compared unmapped appears). If no accounts are found, the check is skipped with a note.
4.5 Access to Business Central
| Option | Value | Default |
|---|---|---|
--target |
auto, api, odata |
auto |
api – Server-side aggregation through the DataMigrate Pro extension (action reconcile on Upload_LoadData, codeunit DMP Reconciliation API IOI). Exact closing entry and as-of date logic without downloading the entries; recommended. Requires an extension version with this action; if it is not present, the BC side aborts with an error.
odata – Standard page web services, aggregated on the client side. The pages must be published as OData web services (for names, see chapter 5). Open entries are loaded in two queries (Open eq true and Closed_at_Date > as-of date) and deduplicated by Entry_No; remaining amounts are calculated from the detailed entries. Closing entries are detected through --closingsourcecode.
auto – Tries api; if the extension does not provide the action, it automatically falls back to odata (warning in the log). The posting group reports glpostinggroup and vatbalance and the inventory reports inventoryqty and inventoryvalue are additionally safeguarded per report: If the installed extension rejects the report (older reconcile action), DMP reads these reports through the OData page web services (GlEntriesService, VatEntriesService, ItemLedgerEntriesService, ValueEntriesService); the other reports continue to be read through the API.
In the GUI: selection field "BC via".
4.6 Side Selection
| Option | Value | Default |
|---|---|---|
--sourceonly |
Flag | off |
--targetonly |
Flag | off |
--sourceonly (NAV only). Reads and exports only the NAV side; BC is not contacted. For preliminary checks without BC access. In the GUI: "NAV side only".
--targetonly (BC only). Reads and exports only the BC side; a NAV connection is not required. For a BC snapshot.
The two flags are mutually exclusive. One-sided runs return the result EXPORTED (no comparison) and exit code 0, unless a technical error occurs. Control checks run only for the side that was read.
4.7 Output
| Option | Value | Default |
|---|---|---|
-o |
Folder path | C:\Migration\DataMigratePro\reconcile\yyyyMMdd_HHmm\ |
--decimalseparator |
, or . |
, |
--json |
Flag | off |
-o (export folder). Target folder for all export files; created if necessary. If not specified, a timestamp folder is created for each run. In the GUI: "Export folder".
--decimalseparator (decimal separator). Decimal separator for amounts in CSV, summary.txt and HTML. , for German Excel installations (default), . for English ones. The CSV field separator is always ;.
--json. Additionally writes result.json (run header, parameters, summary per report, rows, control checks, individual entries) for further processing in pipelines.
4.8 Parameter Sets
| Option | Value | Default |
|---|---|---|
--set |
File name or path (.json optional) |
– |
--saveset |
File name or path (.json optional) |
– |
--set (load set). Loads saved parameters from a JSON file. Relative names are searched in C:\Migration\DataMigratePro\reconcile\sets\; .json is added. Command-line values override set values. If the file is missing, the run aborts.
--saveset (save set). Saves the effective parameters (set + command line) as JSON in the same folder scheme. -t, --set and --saveset themselves are not saved.
File format: JSON object of option names (without hyphens) and values. Flags are saved as true; false/null means "not set"; arrays are merged comma-separated.
{
"report": "glbalance,opencustomer,openvendor",
"from": "2025-01-01",
"to": "2025-12-31",
"cutoffdate": "2025-12-31",
"tolerance": "0.01",
"detail": true,
"target": "api"
}In the GUI: "Load set…" / "Save set…".
5. Configuration in settings.json – Section Reconciliation
The section is optional and affects only OData mode. If it is missing, the defaults apply.
"Reconciliation": {
"GlEntriesService": "DMP_GLEntries",
"CustomerLedgerEntriesService": "DMP_CustLedgerEntries",
"VendorLedgerEntriesService": "DMP_VendLedgerEntries",
"DetailedCustomerLedgerEntriesService": "DMP_DetailedCustLedgEntries",
"DetailedVendorLedgerEntriesService": "DMP_DetailedVendLedgEntries",
"VatEntriesService": "DMP_VATEntries",
"OpenItemFilterBatchSize": 50,
"OpenItemFullScanThreshold": 2000
}| Key | Default | Meaning |
|---|---|---|
GlEntriesService |
DMP_GLEntries |
Service name of the published OData web service for page 20 General Ledger Entries. Source for glbalance and glpostinggroup (additionally reads Gen_Bus_Posting_Group/Gen_Prod_Posting_Group). |
CustomerLedgerEntriesService |
DMP_CustLedgerEntries |
Service name for page 25 Customer Ledger Entries. Candidates for opencustomer. |
VendorLedgerEntriesService |
DMP_VendLedgerEntries |
Service name for page 29 Vendor Ledger Entries. Candidates for openvendor. |
DetailedCustomerLedgerEntriesService |
DMP_DetailedCustLedgEntries |
Service name for page 573 Detailed Cust. Ledg. Entries. Remaining amounts for opencustomer, balances for custbalance. |
DetailedVendorLedgerEntriesService |
DMP_DetailedVendLedgEntries |
Service name for page 574 Detailed Vendor Ledg. Entries. Remaining amounts for openvendor, balances for vendbalance. |
VatEntriesService |
DMP_VATEntries |
Service name for page 315 VAT Entries. Source for vatbalance (VAT_Bus_Posting_Group, VAT_Prod_Posting_Group, Base, Amount). If the web service is not published, only this report reports a BC read error. |
ItemLedgerEntriesService |
DMP_ItemLedgerEntries |
Service name for page 38 Item Ledger Entries. Source for inventoryqty (Item_No, Variant_Code, Location_Code, Quantity, Posting_Date). |
ValueEntriesService |
DMP_ValueEntries |
Service name for page 5802 Value Entries. Source for inventoryvalue (Item_No, Cost_Amount_Actual, Posting_Date). |
OpenItemFilterBatchSize |
50 |
Number of entry numbers per OData query when the detailed entries are reloaded selectively with an Entry_No filter. Smaller values avoid URLs that are too long; larger values reduce the number of requests. |
OpenItemFullScanThreshold |
2000 |
From this number of open candidate entries onward, the detailed entries are no longer reloaded with a filter but read once in full up to the as-of date (full scan). Prevents thousands of individual queries for large open item lists. |
OData web service URLs select the company through a path segment Company('<company name>'). In settings.json, the actual company name must be entered with spaces, not an already URL-encoded value such as mailworx%20GmbH. Example for the G/L reconciliation:
https://api.businesscentral.dynamics.com/v2.0/0ADE79598-586E-415-A435-D7D8F8323C93/Production/ODataV4/Company('mailworx%20GmbH')/DMP_GLEntries?$filter=Posting_Date%20lt%202026-10-20%20and%20Source_Code%20ne%20%27CLSINCOME%27The company value in the configuration is mailworx GmbH in this case; DataMigrate Pro encodes spaces automatically when it builds the URL.
The connection data (endpoint, company, environment, authentication) come from the general sections of settings.json (settings.json.md); the NAV source comes from SqlConnection, source database and source company.
6. GUI (DataMigratePro --reconcile)
The ReconciliationWindow window is started with --reconcile; CLI parameters passed along (for example, --report, --from) prefill the form.
| GUI element | Corresponds to | Note |
|---|---|---|
| Reports (check boxes) | --report |
select at least one |
| As of | --asofdate |
|
| From / To | --from / --to |
empty = start of fiscal year or as-of date |
| Tolerance | --tolerance |
|
| Cutoff | --cutoffdate |
|
| BC via | --target |
auto/api/odata |
| Include closing entries | --includeclosingentries |
|
| Show FCY | --showfcy |
|
| Load entries (drilldown) | --detail |
prerequisite for double-click drilldown |
| NAV side only | --sourceonly |
|
| Export folder | -o |
empty = timestamp folder |
| Reconcile / Cancel | Start / cancel the run | Progress per side (NAV / BC) |
| Export | writes CSV, HTML, summary.txt, parameters.json |
|
| Open folder | opens the export folder | |
| Load set… / Save set… | --set / --saveset |
Each report has a tab with a result grid; column filters use the NAV filter syntax (1000..1999, 4*, @kasse), the status filter accepts OK, DIFFERENCE, NAV only, BC only, unmapped, and the difference filter accepts, for example, >100, <-100, 0. "Only differences" hides matching rows. Double-clicking a row opens the individual entries of both sides side by side.
7. Output Files
All files are located in the export folder (-o). CSV: separator ;, UTF-8 with BOM, decimal separator according to --decimalseparator.
| File | Content | Condition |
|---|---|---|
summary_<report>.csv |
Summary level per account/customer/vendor. Open items: Open Items NAV/BC, Remaining LCY NAV/BC; trial balance: Opening, Debit, Credit, Closing, Entries per side. Always: Difference, Difference %, Status, Unmapped. With --showfcy (open items): Remaining FCY NAV/BC, Currency. |
always |
checks_<report>.csv |
Control checks: Check, value/reference/difference/passed per side, Result (OK, FAILED, SOURCE INCONSISTENCY (informational)). |
if checks exist (trial balance) |
detail_<report>.csv |
Individual entries: Key (BC), document type, document no., posting date, Amount LCY NAV/BC, Difference, Entry No. NAV/BC, currency, status. |
--detail |
summary.txt |
Console output: header (company, environment, timestamps of both sides, tolerance, closing entries, cutoff), summary per report, control checks, top 20 differences, notes. | always |
parameters.json |
Effective parameters and overall result for reproducibility (FR-120). | always |
report.html |
Printable evidence with header data, summary, checks and rows per report. | always |
result.json |
Machine-readable overall result (header, parameters, reports with rows, checks, details). | --json |
Status per row: OK (|difference| ≤ tolerance), DIFFERENCE, NAV only (key missing in BC), BC only (key missing in NAV), unmapped (NAV number without a value mapping rule).
8. Result Evaluation and Exit Codes
A report is OK if there is no technical error and
- 0 deviating rows, 0
NAV only, 0BC only, 0unmappedand - no control check has failed as blocking.
Control checks: A check that has already failed in NAV (for example, Σ debit ≠ Σ credit in glpostinggroup), whose signed deviation is identical in BC within the tolerance or whose BC control passes, is treated as an informational source inconsistency. It is output as SOURCE INCONSISTENCY (informational) with the values and check results of both sides and affects neither the NAV↔BC overall result nor the exit code. The deciding factor is the deviation check value − reference value, not just its absolute amount.
| NAV control deviation | BC control deviation | Evaluation at tolerance 0,01 |
|---|---|---|
100,00 |
100,00 |
Informational source inconsistency; carried over unchanged. |
100,00 |
0,00 |
Informational source inconsistency; BC control passes. |
100,00 |
-100,00 |
FAILED; same amount, but opposite direction. |
0,00 |
100,00 |
FAILED; new BC control deviation. |
100,00 |
120,00 |
FAILED; changed BC control deviation. |
This classification affects only the internal control check. Deviating debit/credit values, balances, entry counts or VAT base amounts between NAV and BC, missing keys, unmapped values and technical read errors remain errors. Even with an informational control row, the report is therefore OK only if the actual NAV↔BC comparison matches completely.
| Overall result | Condition | Exit code |
|---|---|---|
OK |
all reports OK |
0 |
EXPORTED |
one-sided run (--sourceonly/--targetonly) without a technical error |
0 |
DIFFERENCES |
differences, source-only/target-only, unmapped numbers, blocking control check or one side not readable | 4 |
| – | settings.json is missing |
2 |
| – | unhandled exception / invalid parameters | 1 |
If BC is not reachable, the NAV side is still exported (exit code 4). The distinction between "difference" and "technical error" is made through summary.txt and the DMP log (ERROR vs. DIFFERENCES).
Log: One log entry per report (category Reconcile) with result, row counts, period, tolerance and export path; in case of a technical error, with the NAV/BC error text as ERROR.
9. Value Mapping
Before the comparison, NAV numbers are translated into BC numbers – with the same mapping as the migration:
- The deciding factor is the value mapping code that is assigned to the key field in
BC Migration Mapping(G/L Entry.G/L Account No.,Cust. Ledger Entry.Customer No.,Vendor Ledger Entry.Vendor No.; for posting groupsG/L Entry.Gen. Bus./Gen. Prod. Posting GrouporVAT Entry.VAT Bus./VAT Prod. Posting Group; fallback to detailed entries or master tables such asGen. Business Posting Group.Code). - Dispatcher codes are resolved to the specific code of the entity (
*rule as the default branch). - If no code is assigned to the key field, no translation takes place – as in the migration – even if a standard code contains values.
- Only if the key field does not appear in the mapping at all do the standard codes
GLACCOUNT,CUSTOMER,VENDOR,GENBUSPOSTINGGROUP,GENPRODPOSTINGGROUP,VATBUSPOSTINGGROUP,VATPRODPOSTINGGROUPapply.
For the posting group reports, the composite key BUSINESS|PRODUCT is translated in parts: each part with its own code; empty parts do not count as unmapped. The column Keys (NAV) shows the source combinations.
If a rule is missing for a NAV number, the row is marked as unmapped (counts as a deviation). Several source numbers to one target number (n:1) are aggregated; the composition is visible in the drilldown. Each report contains the note Value mapping – …, which states which mapping was applied (for posting groups, per code). If the mapping cannot be loaded, the comparison runs unmapped (warning in the log).
10. Examples
# Trial balance G/L accounts + open item lists for 2025 with rounding tolerance and individual entries
DataMigratePro -t reconcile --report glbalance,opencustomer,openvendor --from 2025-01-01 --to 2025-12-31 --tolerance 0.01 --detail
# G/L entries by general business/product posting group and VAT entries by VAT posting group for 2025
DataMigratePro -t reconcile --report glpostinggroup,vatbalance --from 2025-01-01 --to 2025-12-31 --tolerance 0.01
# Inventory by item/variant/location and inventory value by item as of the inventory cutoff 12/31/2024 (AK-412)
DataMigratePro -t reconcile --report inventoryqty,inventoryvalue --cutoffdate 2024-12-31 --tolerance 0.01
# Everything as of the cutoff 12/31/2025 (opening balance on C31.12.2025), BC through DMP API, JSON for pipeline
DataMigratePro -t reconcile --report all --cutoffdate 2025-12-31 --openingbalancedate 2025-12-31 --target api --json -o C:\Migration\Abnahme\Lauf01
# Preliminary check, NAV only, without BC access
DataMigratePro -t reconcile --report glbalance --from 2025-01-01 --to 2025-12-31 --sourceonly
# Save a set and reuse it later (CLI overrides set values)
DataMigratePro -t reconcile --report all --cutoffdate 2025-12-31 --tolerance 0.01 --saveset abnahme2025
DataMigratePro -t reconcile --set abnahme2025 --detail
# GUI with prefilled parameters
DataMigratePro --reconcile --report glbalance --from 2025-01-0111. Troubleshooting
| Symptom | Cause | Action |
|---|---|---|
--report … is required |
No report specified | Set --report (or a set with report). |
--to must not be before the opening balance date |
Trial balance period ends before the BC opening balance | Choose --to ≥ opening balance date. |
Not available: the installed extension does not provide the reconcile action |
DMP extension too old for --target api |
Update the extension or use --target odata (publish the pages). |
| OData error "company … was not found" | Company name in the OData path does not match exactly; often %20 was already entered in settings.json |
Configure the actual company name with spaces (for example, mailworx GmbH); the URL builder encodes it as Company('mailworx%20GmbH'). |
| OData error "service not found" | Page web service not published or name differs | Publish the web services; adjust the names in the Reconciliation section. |
Many rows unmapped |
Value mapping rules are missing or no code is assigned to the key field | Add to the mapping (chapter 9); check the note Value mapping – … in the report. |
| Apparent difference exactly the amount of the year-end closing | Closing entries included on one side only | Check --includeclosingentries or --closingsourcecode; for an opening balance, set --cutoffdate/--openingbalancedate. |
Control row custbalance/vendbalance skipped |
Posting groups not readable or accounts without GLACCOUNT mapping |
Set --receivablesaccounts / --payablesaccounts. |
vatbalance: BC read error, other reports OK |
Web service for page 315 VAT Entries not published or name differs from VatEntriesService |
Publish page 315 as the OData web service DMP_VATEntries or adjust Reconciliation.VatEntriesService. |
glpostinggroup/vatbalance without rows, note "Posting group comparison skipped" |
Period ends on the opening balance as-of date; before the cutoff, BC has no entries per posting group | Choose --to after the cutoff (compare movements). |
inventoryqty/inventoryvalue: BC read error, other reports OK |
Web service for page 38 Item Ledger Entries or 5802 Value Entries not published or name differs from ItemLedgerEntriesService/ValueEntriesService |
Publish the pages as OData web services DMP_ItemLedgerEntries/DMP_ValueEntries or adjust the service names in the Reconciliation section. |
inventoryqty: row unmapped or NAV only despite the same inventory |
Item number without ITEM rule or variant/location code renamed in BC (they are not translated) |
Add the ITEM mapping; keep variant/location codes identical in NAV and BC. |
Posting group row unmapped |
The rule is missing in the respective mapping for one part of the key BUSINESS|PRODUCT |
Add values in GENBUSPOSTINGGROUP/GENPRODPOSTINGGROUP or VATBUSPOSTINGGROUP/VATPRODPOSTINGGROUP (prefill in the MappingEditor). |
glpostinggroup: control row SOURCE INCONSISTENCY (informational) |
NAV itself is already not balanced internally; BC carries the same signed control difference or the control passes | Check the side-specific control values. Do not change postings merely to remove this note; evaluate NAV↔BC row differences separately (chapter 8). |
| Very long run time for open item lists in OData mode | Many open candidates, many individual queries | Use --target api or adjust OpenItemFullScanThreshold/OpenItemFilterBatchSize. |
Exit code 4 without a visible difference |
One side not readable (technical error) | Check summary.txt / DMP log for ERROR. |
12. Appendix
- Requirements, decisions (Q-101…Q-113) and acceptance criteria: Requirement-Reconciliation-NAV-BC.md
- Opening balance and cutoff: Requirement-LedgerCutoff-EntryOffset.md (register-based cutoff with entry no. offset; replaces Requirement-OpeningBalance-PostingDate-Cutoff.md)
- Value mapping: Requirement-ValueMapping-Classification-Import.md
- Parameter overview of all tasks: DataMigratePro-Parameters-Quick-Overview.md
settings.json: settings.json.md- Tests: ReconciliationSetFileTests.cs, BcApiTargetReaderTests.cs
13. GDPdU Raw Data Export
The GDPdU export reads unchanged raw data separately from NAV SQL and BC OData and writes a separate ZIP for each system. It can run in addition to a report or on its own:
# GDPdU in addition to the reconcile report
DataMigratePro -t reconcile --gdpdu --report glbalance `
--gdpdufrom 2025-01-01 --gdputo 2025-12-31 `
--gdpdusourcecompany "NAV Company" --gdputargetcompany "BC Company" `
-o C:\Migration\Abnahme\GDPdU
# GDPdU only, without --report
DataMigratePro -t reconcile --gdpduonly `
--gdpdufrom 2025-01-01 --gdputo 2025-12-31 `
--gdpdusourcecompany "NAV Company" --gdputargetcompany "BC Company" `
--gdpduprofile C:\Migration\Profiles\Finance.json `
-o C:\Migration\Abnahme\GDPdU| Parameter | Meaning |
|---|---|
--gdpdu |
Create GDPdU archives in addition to the normal reconcile report. |
--gdpduonly |
Start the GDPdU export without a reconciliation report; only here is --report not required. |
--gdpdufrom / --gdputo |
Independent, inclusive GDPdU posting period (yyyy-MM-dd, other supported date formats as an alternative); independent of --from/--to. |
--gdpdusourcecompany / --gdputargetcompany |
NAV and BC company for this export; both are required and are selected independently of each other. |
--gdpduprofile |
Optional path to a customized version 1 JSON profile. If not specified, the embedded Finance profile is used. |
-o |
Output folder for the GDPdU archives (also in a GDPdU-only run). |
The finance catalog DataMigratePro.Core/Reconciliation/Gdpdu/Finance.json determines the tables and selection rules. It covers G/L accounts/entries, customers/vendors including ledger entries and detailed entries, VAT entries, G/L registers, relevant posting groups and setup, currencies/exchange rates, dimensions/dimension values/dimension set entries, as well as posted sales and purchase invoices and credit memos with lines. The DateField tables are filtered by Posting Date. Master data, setup, rates, dimensions and registers are unfiltered exports of their current state, not a historical as-of date view. Document lines are read only for document headers that were previously selected in the chosen period.
NAV: All business SQL columns that are actually stored in the selected physical tables are exported based on the source schema, including customer-specific fields stored there. The fixed field catalog does not limit the NAV output. FlowFields that are not stored (such as remaining amounts) are not calculated and not reported as missing SQL data; likewise, optional profile fields that exist only in newer versions do not create a NAV gap. Missing tables and required primary, date or document assignment keys remain genuine gaps. Technical columns timestamp and $system* are excluded. Binary data is output as Base64, SQL floating-point numbers losslessly as round-trip text. Unsupported source types lead to an explicit error instead of silent data loss. Separate extension companion tables are therefore not merged automatically.
BC: The field selection of the profile and the page properties that are actually published remain authoritative. Missing pages/fields continue to be reported as gaps. The complete effective NAV field list with original SQL names and types is under EffectiveTables in export-report.json; additional NAV fields receive unique identifiers with the prefix Nav_.
For each field, the profile contains a logical ASCII identifier, the native NAV SQL name (for example, No_, G_L Account No_), the BC OData property (for example, No, G_L_Account_No), type and primary key status. For parent relationships, the row field and the single parent primary key must have the same type. Extensions are possible but must be reconciled with the actual source SQL schema and BC $metadata. A field that is not published on a BC page is not assumed. The known page/service pairs from the existing reconcile configuration are:
| Dataset | BC standard page | OData service |
|---|---|---|
| G/L entries | General Ledger Entries (20) | DMP_GLEntries |
| Customer ledger entries | Customer Ledger Entries (25) | DMP_CustLedgerEntries |
| Vendor ledger entries | Vendor Ledger Entries (29) | DMP_VendLedgerEntries |
| Detailed customer ledger entries | Detailed Cust. Ledg. Entries (573) | DMP_DetailedCustLedgEntries |
| Detailed vendor ledger entries | Detailed Vendor Ledg. Entries (574) | DMP_DetailedVendLedgEntries |
| VAT entries | VAT Entries (315) | DMP_VATEntries |
Finance.json names safe, intended DMP_* service identifiers for further tables; they are not to be understood as services that are already published or as verified standard pages. Missing pages/services and ordinary fields are documented as gaps. If a table lacks a required date, primary or parent key, it is omitted; dependent tables may then also be omitted. An incomplete export is marked accordingly and ends with exit code 5. In case of a technical error or abort, no ZIPs of this run are published; both sides must have been read successfully and the archives validated beforehand.
Only for the embedded Finance profile are the six known default service identifiers mentioned above overridden at run time based on the corresponding settings in settings.json → Reconciliation (GlEntriesService, CustomerLedgerEntriesService, VendorLedgerEntriesService, DetailedCustomerLedgerEntriesService, DetailedVendorLedgerEntriesService, VatEntriesService). A custom profile is not changed based on these settings; its BcService names must therefore already match the services that are actually published.
The boundaries are inclusive. Values are not changed by value mappings, summations, cutoff adjustments or Excel-specific apostrophes. A profile field of the semantic type Date is deliberately output in the GDPdU index with the GDPdU type AlphaNumeric and an ISO value, not as GDPdU Date: This preserves the NAV closing marker C (for example, C2025-12-31). If NAV cannot supply this marker, the loss of information is reported separately as a gap. BC page date values may already lack this NAV distinction in the published schema; this is also reported explicitly. Number precision follows the metadata. CSV is UTF-8, semicolon-separated, CRLF-delimited and quoted in compliance with RFC; a companion file marks null values separately from empty strings.
The archives contain index.xml, the unchanged supplied file docs/gdpdu-01-03-2019.dtd, the data actually exported, and a gap/result report. A BC page does not prove an unrestricted table extract: SourceTableView, permissions/security filters and the page selection can restrict rows or fields. OData $metadata specifies offered fields and types, but cannot prove full raw data access and freedom from filters. The responsible persons must check the services, page filters/properties, permissions and data scope of their environment. The GDPdU lists are a configurable starting scope for finance data, not proof of tax completeness and not a certification or assurance of compatibility with IDEA or other audit programs. NAV SQL and BC OData are changeable live sources; postings should pause during the export. There is no cross-system snapshot guarantee.
With --gdpdu together with a reconcile report, technical errors of the comparison run also prevent the publication of the GDPdU ZIPs. Exit code 5 is exclusively the GDPdU gap status, if no existing reconcile exit code 4 for comparison differences or errors takes precedence. In a combined run, 4 remains authoritative; GDPdU gaps are additionally named in the export status.
14. Mapping Evidence for the Audit (-t mappingreport)
Reconcile proves balances and open items, and GDPdU delivers the raw data. The mapping evidence adds the third building block of the audit acceptance: which field assignments were actually used and what Joined Table / Join Clause, Calculation and Value Mapping mean in functional terms – in auditor language instead of raw SQL text.
# Write the evidence in German to the acceptance folder (only tables with transferred records)
DataMigratePro -t mappingreport --cutoffreportlanguage de -o C:\Migration\Abnahme\Mapping
# English, master data and setup only, also list untransferred tables with a marker
DataMigratePro -t mappingreport --cutoffreportlanguage en --tablegroup 1,2 --includeuntransferred
# With customer extensions of the SalesPrice feature migration
DataMigratePro -t mappingreport --featurefieldmap C:\Migration\Profiles\salesprice-fieldmap.json| Parameter | Meaning |
|---|---|
-o <folder> |
Output folder; default C:\Migration\DataMigratePro\mappingreport\yyyyMMdd_HHmm\. |
--cutoffreportlanguage de|en |
Language of the headings and explanations (default de). |
--tablegroup 1,2,3 / --table 18,27 |
Restriction to categories or table numbers. |
--includeuntransferred |
Also list active tables without records in the $Transfer table (marked). |
--featurefieldmap <json> |
Show customer extensions of the SalesPrice migration in the feature section. |
14.1 What Counts as "Used"?
Active tables (Type of synchronization ≠ Ignore) are listed whose transfer table <Company>$<Table>$Transfer in the migration database contains records. For each table, the count and the first and last transfer (DMPSystemDateTime) are shown. Without a configured migration database, all active tables are listed with a note. Fields with Skip = 1 appear only as a count.
14.2 How to Read the Explanations
Each mapping row receives a type and a sentence in auditor language:
| Type | Condition | Example explanation |
|---|---|---|
| 1:1 / 1:1 (renamed) | no calculation, no join | "Source field 'No_' is carried over unchanged into the BC field 'No.'." |
| Link (lookup) | Calculation reads T<No>.[…] |
"Links the source table with table 18 (Customer) through 'T18.[No_] = T.[Sell-to Customer No_]' and takes 'Name' from there into the BC field 'Sell-to Customer Name'." |
| Link (filter/base) | Join without its own calculation | "… The link with table 2000000006 (Company) through 'T2000000006.[Name]='{Company}'' restricts the records to the source company." |
| Calculation from source fields | Calculation references other T.[…] |
"Fills the BC field 'URL1' from the existing source fields 'URL 1', 'URL 2' and 'URL 3'." |
| Transformation | Calculation references its own field / {FieldName} |
"Takes the source field 'User ID' … and converts the value by an expression." |
| Constant | no field reference | "Sets the BC field 'Status' to a fixed or calculated value …: 1." |
Additions: conditional (CASE), Value Mapping 'GLACCOUNT' (312 entries, see value lists), entry no. offset, different target table, Where Clause, primary key field. Join type: JOIN (inner) for system tables ≥ 2000000000, otherwise LEFT JOIN – identical to the query builder.
14.3 SalesPrice Feature Migration
The price list migration (-t putalldata --feature SalesPrice) does not maintain its assignment in BC Migration Mapping but in the program (FeatureCatalog). The section shows the transition if the DMP Feature Migration Log shows a completed run (status applied, rolled back after a later completed deletealldata, failed, otherwise not applied with a note):
- Runs from the feature migration log (action, status, times, records).
- Transition of the nine NAV source tables (Sales Price 7002, Sales Line Discount 7004, Purchase Price 7012, Purchase Line Discount 7014, Job Item/G/L Account/Resource Price 1012–1014, Resource Cost 201, Resource Price 202): price type, derivation of Source Type and Asset Type, amount column → BC field (Unit Price 17 / Direct Unit Cost 31 / Line Discount % 20), filter, transferred rows and created price lists from
DMP_Feature_Transfer_<source table>. - Column matrix of the normalized row per source table (source expression, constant, conditional, empty).
- Target fields Price List Header (7000) and Price List Line (7001) with staging column, PK, validate and extension marker.
- Rules: normalization, grouping into headers (prefix
DMP:), code assignment through number series S-PL/P-PL/J-PL, Source Type (enum 7003), Source Group (7002), Price Type (7009), amount forwarding, Asset Type, Status (7005), validation, evidence. - Number series and consistency rule header ↔ line.
The cutoff features (LedgerCutoff, InventoryCutoff) are not part of this evidence; they are documented in the cutoff audit ZIP (see DataMigratePro-LedgerCutoff-Handbuch.md).
14.4 Output Files
| File | Content |
|---|---|
mapping-report.html |
Printable overall report (cover page with fingerprint, summary, reading guide, tables, fields per table, links, calculations, value mappings + value lists, SalesPrice feature). |
mapping-report.md |
Same structure as Markdown. |
mapping-report.json |
Complete model including explanations (SchemaVersion 1). |
tables.csv, fields.csv, joins.csv, calculations.csv, valuemappings.csv, valuemappingvalues.csv |
Sections as CSV (UTF-8 BOM, ;, leading zeros preserved). |
feature-salesprice-sources.csv, feature-salesprice-fields.csv, feature-salesprice-runs.csv |
Feature transition, target fields and runs. |
parameters.json, summary.txt |
Call parameters and short summary. |
The fingerprint (SHA-256 over tables, fields, joins, value mappings and feature definition – without timestamps, counters and paths) appears in the header of all outputs and assigns the report unambiguously to a mapping state. The evidence is rule-based, reproducible and changes no data.
14.5 GUI
In DataMigratePro --reconcile, the Mapping report button (with language selection de/en and the option Incl. untransferred) creates the evidence in the export folder – independent of the report selection and comparison. Open folder shows the files; Help topic Reconciliation: Mapping Report (audit evidence).