DocumentationDataMigrate ProFinance and reconciliation

DataMigrate ProFinance and reconciliation

DataMigrate Pro – Manual: Ledger Cutoff & Entry-No-Offset

The manual for Ledger Cutoff and Entry-No-Offset covers the opening balance, posting of open entries, limited entry transfer and delta synchronization.

User and administrator manual for opening balance, open entry posting, limited entry transfer, and delta synchronization
Valid from: DataMigrate Pro version with the feature LedgerCutoff
Functional requirement: Requirement-LedgerCutoff-EntryOffset.md
Related documents: Anweisung-Screenshot-Generierung-LedgerCutoff.md (design specifications & mockup instructions), DataMigratePro-Mapping-Documentation.md, DataMigratePro-Reconciliation-Dokumentation.md, Dokumentations-Richtlinien.md

Table of Contents

  1. Overview and Objectives
  2. Preparing the Configuration
  3. The Standalone Graphical User Interface (--ledgercutoff)
  4. Performing the Data Transfer
  5. Regular Transfer: Delta Operation (--changesonly)
  6. Technical Insights: SQL Generation and Offset Engine
  7. Troubleshooting and Best Practices

1. Overview and Objectives

Why Ledger Cutoff?

When migrating long-established Microsoft Dynamics NAV systems (for example NAV 2009 R2 through NAV 2018) to Business Central, millions of historical G/L, customer, vendor, and VAT entries often accumulate. A complete 1:1 transfer of the history is frequently neither economical nor functionally sensible:

  • The legacy data remains audit-proof in the read-only NAV archive.
  • The new Business Central environment is meant to start lean and with good performance.
  • Migration runs become much shorter.
  • Accounting and auditors need only the gapless set of individual entries from the last determined fiscal year closing (income statement zeroing) in the new system, plus correct opening balances and open entries (OEs).

With the feature Ledger Cutoff & Entry-No-Offset, DataMigrate Pro (DMP) provides an automated, mathematically gapless solution for this requirement.

Architecture: Start Block vs. Transfer Block

The target tables in Business Central are built from two clearly separated blocks:

Text
Business Central target entry table (e.g., table 17 G/L Entry):
+---------------------------------------------------------------------------------------+
| START BLOCK (generated synthetically by DMP via the feature "LedgerCutoff")           |
| 1. Opening balances (OB) condensed per G/L account + dimensions (G/L Register 1)      |
| 2. OE postings (customer/vendor/bank) at the cutoff date against the OB balancing acc.|
|    --> Entry No. 1 to [start value]                                                   |
+---------------------------------------------------------------------------------------+
| TRANSFER BLOCK (1:1 from the NAV source, but shifted by a constant offset)            |
| All source entries with Entry No. > [cutoff no.]                                      |
|    --> Target Entry No. = source Entry No. + offset                                   |
|    --> Joins [start value + 1] without a gap!                                         |
+---------------------------------------------------------------------------------------+
  1. Start block (initial stock):
    • Opening balance (OB): Condensed G/L entries per G/L account and global dimensions at the cutoff date.
    • OE postings: Individual open entries (customers, vendors, bank) with the original document date, remaining amount, and a G/L entry pair against a technical OB balancing account.
    • Register: G/L Register No. 1 for the OB, follow-up registers for the OEs.
  2. Transfer block (ongoing individual entries):
    • All individual entries of the source after the cutoff are transferred 1:1, but shifted by a calculated offset.
  3. Reference consistency:
    • Every foreign key field in every table (for example Closed by Entry No., Cust. Ledger Entry No. in detailed entries, From/To Entry No. in registers) is adjusted in sync using the same mathematical formula or a lookup rekeying table.

The Mathematical Principle of Entry-No-Offsets

The cutoff is not determined by a plain posting date (which can be ambiguous because of subsequent postings), but by the G/L Register of the income statement zeroing (Close Income Statement).

The calculation formula:

$Offset = Start value - Cutoff no.$ $Target no. = Source no. + Offset$

Calculation example:

  • In NAV, the income statement zeroing ends with G/L entry 1,000,000 (Cutoff no. = 1,000,000).
  • The first source entry of the new fiscal year to be migrated is 1,000,001.
  • In Business Central, DMP generates 1,000 condensed OB G/L entries and 500 G/L entries from OE postings.
  • The start block therefore ends at entry number 1,500 (Start value = 1,500).
  • The resulting offset for GLENTRY is: $Offset = 1,500 - 1,000,000 = -998,500$
  • The first source entry 1,000,001 receives exactly this target number in Business Central: $1,000,001 + (-998,500) = 1,501$
  • Result: There is neither a gap nor a collision between the start block and the transfer block.

2. Preparing the Configuration

Prerequisites and Settings in settings.json

Before you start the Mapping Editor or run CLI commands, check the settings.json in the working directory:

JSON
{
  "sqlConnection": "Server=tcp:sqlserver.database.windows.net,1433;Initial Catalog=NAV_SOURCE;User ID=dmp;...",
  "sourceDatabase": "NAV_SOURCE",
  "sourceCompany": "CRONUS AG",
  "mappingDatabase": "DMP_MAPPING",
  "migrationDatabase": "DMP_STAGING",
  "businessCentral": {
    "tenantId": "xxxx-xxxx-xxxx",
    "clientId": "yyyy-yyyy-yyyy",
    "environment": "Production",
    "destinationCompany": "CRONUS AG"
  }
}
  1. Source database (sourceDatabase): Must have read access to the NAV database.
  2. Mapping database (mappingDatabase): Contains the configuration tables BC Offset, BC Offset Field, BC Offset Lookup, and DMP Ledger Cutoff Profile.
  3. Migration database (migrationDatabase): Stores the tracking tables ($Transfer).

Ensuring Account Mapping and Dimensions

  • Completeness of G/L accounts: Before the cutoff run, the G/L account mapping (GLACCOUNT in BC Value Mapping) must be complete for all source accounts. Accounts without a target account cause a safety abort (FR-340).
  • OB balancing account: Set up a dedicated opening balance carry-forward account in Business Central (for example 9999 or 9998).
  • Receivables, payables, and bank accounts: These control accounts are not excluded from the OB condensation. In the start block, both the opening balance and the individual OE postings are written; the OB entry of the control account is reduced by the sum of the OE G/L entries of this account (OB remainder = source balance − Σ OE postings), so that the target balance equals the source balance at the cutoff. Example: receivables account 1,000, one open customer entry 100 → OB entry 900 + OE G/L entry 100 = 1,000. The G/L account for each OE is determined from the posting group of the source entry (Receivables Account, Payables Account, bank G/L Account No.), not from fixed account numbers. The OB balancing account is corrected in the same way, so that the sum of all start block G/L entries remains 0. Remaining amounts on control accounts (direct postings) are reported as a warning in the log; the corrections are in eb_adjustments.csv of the analysis.

3. The Standalone Graphical User Interface (--ledgercutoff)

Start Ledger Cutoff as its own window:

PowerShell
.\DataMigratePro.exe --ledgercutoff

All previous tabs and functions are available directly in this window. The entry Ledger Cutoff has been removed from the navigation of the Mapping Editor. As in the Mapping Editor, connection parameters override the values from settings.json. The console commands -t ledgercutoffanalyse, -t ledgercutoffdistribute, and -t ledgercutoffverify remain available unchanged.

Main view “Ledger Cutoff & Entry Offset” with profile bar

Figure 1: Previous main view in the Mapping Editor. In the standalone window, the left navigation is omitted; the profile bar, “Save Profile”, “Refresh”, and the functional tabs are retained.

In the top bar, you manage the active profile:

  • Active Profile: Shows the name of the current cutoff profile (default: DEFAULT).
  • Save Profile: Saves all configurations (accounts, document numbers, options) in DMP Ledger Cutoff Profile.
  • Refresh: Reloads the profile and offset data from the database.

Tab 1: Cutoff Register (Determine the Closing Register)

This tab identifies the last G/L Register of the income statement zeroing in NAV and derives all entry limits from it.

Tab 1: Cutoff Register with candidate list and plausibility checks

Figure 2: Tab “Cutoff Register” after “Analyze Register” – at the top, the closing registers found (Register No., Posting Date, From/To Entry, Entries, Total Amount = 0.00, Source Code CLSINCOME) with register 1428 selected, at the top right the switch “Expert Mode (Custom Register)”. At the bottom left, the derived cutoff numbers per offset code, on the right the “Plausibility Checks” (Balance, SourceCode, PostingDate, Sequence).

Procedure in the GUI:

  1. On loading or with Refresh, DMP searches table 45 G/L Register for postings with a closing date (C31.12.yyyy) or the configured income statement closing source code (default CLSINCOME).
  2. Select the appropriate register in the table (by default the most recent one).
  3. Expert mode: If a different register is to be used, activate Expert Mode (Custom Register) and enter the register number manually.
  4. Click Analyze Register. DMP reads the register limits, determines the closing date and transaction number, derives the subledger limits, and checks the register assignment, the transaction sequence, and the posting dates. The source data is not changed in the process.
  5. After a successful analysis, the derived maximum numbers per entry type appear in the lower left table:
    • GLENTRY: Highest G/L entry number in the register.
    • CUSTLEDGER / VENDLEDGER: Highest customer/vendor ledger entry number up to the closing date.
    • BANKLEDGER: Highest bank account ledger entry number.
    • VATENTRY: Highest VAT entry number.
  6. Check the Plausibility Checks on the right side:
    • The balance total of the closing register must be 0.
    • No implausible date sequences after the register.

Progress, Log, and Timeouts

The profile bar shows the step currently being executed and its SQL timeout. During loading/register search, Analyze Cutoff, the opening balance preview, and the open entries preview, a progress area appears below it with a title, the current step, a bar and “Step N of M · x %”, the total runtime, and the runtime of the current step (updated every second). Stop cancels the running SQL query; a cancellation is reported as “canceled by user”, without an error dialog, and the previous analysis status of the profile is retained. Analysis details / diagnostics contains the sequence as well as the log directory. In the logs directory next to the EXE, the current day's DataMigratePro*.log records the start and end of each step, the runtime, the SQL query, the parameters, and, in case of an error, the complete exception. A Diagnostic ID links the steps of an analysis run with the error message.

An error also remains in the window as a detailed message. Failed subledger queries are no longer treated as a limit of 0 or as a successful plausibility check; the analysis aborts.

All register analysis queries use SqlCommandTimeout from settings.json or --sqlcommandtimeout <seconds> (CLI takes priority, 0 = unlimited) instead of the implicit SQL default of 30 seconds. This setting applies per SQL command, not as a time limit for the entire analysis. Establishing the connection separately uses the Connection Timeout of the SQL connection string. In case of a query timeout, use the logged step and SQL to check load, locks, and the execution plan on the SQL Server first.

The register continuity check (G/L entries ≤ cutoff without a G/L register) first merges the register ranges and counts only G/L entries in the remaining gaps using a range search on Entry No_. The runtime thus grows linearly instead of with G/L entries × registers. The search for closing register candidates reads the entry range only once per register.

Tab 2: Opening Balance (Configure and Check the Opening Balance)

In this tab, you define the header data for the synthetic OB entries and simulate the condensation.

Tab 2: Opening Balance with configuration and account preview

Figure 3: Tab “Opening Balance” – GroupBox “Opening Balance Configuration” with Posting Date (31.12.2024), Document No. (EB-2024), Balancing Account (9999), Source Code (OPENBAL), Description, and the button “Preview Opening Balance”. Below it, the key figures bar (Accounts: 412, Debit, Credit, Balance: 0,00 EUR) and the condensed preview per target account, Dim 1, Dim 2, debit, credit, net, and source entry count.

Configuration fields:

  • Posting Date: Posting date of the OB entries in BC (default: the closing date, for example 31.12.2024).
  • Document No.: Document number for all OB lines (default: EB-{yyyy}).
  • Balancing Account: Technical carry-forward account in BC (for example 9999).
  • Source Code: Source code in BC (default: OPENBAL).
  • Description: Posting description of the OB entries (for example Eröffnungssaldo bis 31.12.2024).

Action:

Click Preview Opening Balance. DMP runs an SQL aggregation over all G/L entries ≤ Cutoff. The totals bar shows: $Debit - Credit = Balance (must equal 0.00 EUR)$ In the table, you see each target account, broken down by global dimensions 1 and 2.

Tab 3: Open Items (Post and Analyze Open Entries)

Customer, vendor, and bank account balances are not condensed but are taken over into the start block as individual open entries.

Tab 3: Open Items with OE key figures and entry list

Figure 4: Tab “Open Items” – checkbox “Include Bank Account Ledger (Table 271)” and button “Preview Open Items”. Key figures bar with Customer OP (148), Vendor OP (92), and Bank OP (14), including totals. Below that, the detail entries with type, account number, posting date, document type, document number, description, remaining amount (LCY), and old source entry number.

Configuration and check:

  1. If needed, activate the option Include Bank Account Ledger (Table 271) to also take over unreconciled bank entries as individual entries.
  2. Click Preview Open Items.
  3. DMP calculates the remaining amount at the cutoff date from the detailed entries (Detailed Cust./Vendor Ledg. Entry).
  4. Important cross-check: The OE G/L entries are posted to the control account from the posting group of the respective entry; the opening balance of this account is reduced by exactly this sum (netting), so that the following applies: $OB remainder + Open entries = Balance of the NAV control account at the cutoff$ A remaining OB remainder indicates direct postings to the control account and is reported as a warning in the log (warning level configurable, see Tab 7).

Tab 4: Offsets & Baseline (Calculate Offsets & Baseline Status)

In this tab, you see the calculated offsets of all entry ranges as well as the status of the baseline transfers.

Tab 4: Offsets & Baseline with offset definitions and baseline status

Figure 5: Tab “Offsets & Baseline” – at the top “BC Offset Definitions” with Offset Code (GLENTRY, CUSTLEDGER, VENDLEDGER, BANKLEDGER, VATENTRY, GLREGISTER, TRANSACTIONNO), Owner Table/Field, Cutoff Entry No., Start Value, Calculated Offset, lookup flag, and status “Final”. At the bottom “Ledger Cutoff Baseline Status per Table” with table number, baseline timestamp, transferred row count, Max Source/Target No., and signature.

The offset table:

Column Meaning
Offset Code Unique code of the number range (GLENTRY, CUSTLEDGER, etc.)
Owner Table / Field Leading source table and primary key field (for example 17 / 1)
Cutoff Entry No. Highest source number of the history
Start Value Number of entries in the start block (simulated or verified after BC writeback)
Calculated Offset The mathematical addend (Start value - Cutoff no.)
Lookup Indicates whether a rekeying table exists for subsequently posted entries
Status Simulated (before writing) or Final (after start block transfer)

In the lower area, the baseline table shows for each table when the initial full export (--changesonly 0) took place. Delta runs for this table are permitted only once an entry exists here.

Tab 5: Reference Fields (Analyze & Distribute Referencing Fields)

To keep all tables consistent, all foreign key columns in BC that refer to entry numbers must receive the same offset.

Tab 5: Reference Fields with function bar and field list

Figure 6: Tab “Reference Fields” – action bar with “Discover Fields”, “Activate All Catalog/Relation”, and “Distribute Offsets to Mapping”. Below, the detected reference fields with Offset Code, Table No., Table Name, Field No., Field Name, Reason (Catalog, Relation, NameMatch, DataProfile), Status, Mapping Found, and Conflict.

Workflow for field distribution:

  1. Discover Fields: Performs the source structure and catalog analysis. Detects fields based on table relations, the standard catalog, and name patterns (for example * Entry No.*).
  2. Activate All Catalog/Relation: Automatically sets all verified fields from the catalog and genuine BC relations to the status Active.
  3. Check: Review fields with the status Proposed (for example customer-specific fields) and set them to Active if necessary.
  4. Distribute Offsets to Mapping:
    • Enters the determined Offset Code in the corresponding row of the table BC Migration Mapping.
    • Synchronizes the mapping rows to Business Central in a batch.
    • Outputs a result dialog with the updated rows and any conflicts.
Dialog “Offset Distribution” after successful distribution

Figure 7: Confirmation dialog “Offset Distribution Complete” after distribution and batch synchronization – summary “Distributed: 42, Skipped (Conflicts): 0, Warnings: 0” with the button “OK”.

Tab 6: Evidence & Proof (Audit-Proof Evidence)

This tab serves as documentation for accounting and auditing. Here, the evidence for the OB creation, the initial OE balances, and the rekeying table BC Offset Lookup is visualized and can be exported as CSV files.

Fixed assets – control lines (from version 1.1.277.0)

FA ledger entries are transferred 1:1 (decision E-08, offset code FALEDGER with offset 0). The button Check Fixed Assets checks using the current decisions (Tab 7, area “Anlagen”):

  • Control lines: per G/L account and posting type (acquisition cost, depreciation, write-down, appreciation, custom 1/2), Σ FA ledger entries (FA Posting Date ≤ cutoff date) of all depreciation books with G/L integration against the balance of the G/L account from the FA posting group at the cutoff. Accounts shared by several posting groups are combined (column “FA Posting Group” lists them; the detail shows the split). A deviation results in a warning or an error depending on the setting “Warnstufe Kontrollzeilen-Differenz”; depreciation books without G/L integration appear as information without a comparison.
  • Master data notes: Fixed assets/depreciation books without a depreciation starting date or with a last depreciation date after the cutoff date (risk of duplicate depreciation in BC).
  • Key figures: Number of FA ledger entries, of which those with G/L Entry No. ≤ cutoff (transferred to BC with 0 = “posted without G/L integration”), number of fixed assets disposed of before the cutoff date and their entries, and whether they are transferred (“Abgegangene Anlagen einbeziehen”).

The same check runs in ledgercutoffanalyse (export fa_control.csv, evidence in DMP Ledger Cutoff Control Result, exit code 4 at the error warning level) and in ledgercutoffverify; --skipfa skips it. With “Abgegangene Anlagen einbeziehen” = No, the analysis stores a transfer filter (DMP Ledger Cutoff Transfer Filter, code FA_DISPOSED), which is applied automatically when transferring tables 5600, 5601, 5612, 5625, and 5629.

Tab 7: Entscheidungen (Cutover Settings)

Availability: from version 1.1.276.0 (FEAT-414, see Requirement-InventoryCutoff.md chapter 6.5). The texts in this chapter are word for word the descriptions that the tab displays for each setting (CutoverSettingCatalog, the switch “Deutsch” changes to English).

Many cutover decisions are made not by IT but by accounting, warehouse management, or production. For this, DMP provides functionally recommended default values (Entscheidungsvorlage). In the tab Entscheidungen, you see each of these settings, its currently effective value, and where it comes from, and you can override it with a documented functional reason. All decisions are stored in the file cutover-settings.json (next to settings.json, path changeable via LedgerCutoff.CutoverSettingsPath), so that they can be reused for trial runs, the go-live, and follow-up projects and are documented in an audit-proof way.

Layout of the tab

  • Header: Path of the file, fields Projekt / Mandant (written to the file), Fingerprint (B) of the frozen settings, filter Bereich (Alle / Fibu / Lager / Anlagen / Allgemein), switch Deutsch (off = English texts).
  • Grid (left): one row per setting with flag A/B, area, display name, effective value (selection list for options and Yes/No, text field for accounts, numbers, and lists), source (CLI, JSON, Profil, Standard), default value, decision maker, “Entschieden von”, “am”, comment (editable), and risk. Deviations from the default are shown in bold, erroneous values have a red background; the tooltip of each row contains the complete description.
  • Detail area (right): Description of the selected setting, all options with explanation and effect, default, decision (E-ID), decision maker, flag, if applicable a lock notice and check message. Options that cannot be selected (level 3) are gray/italic and are rejected with the notice “ab …”.
  • Actions: Entscheidungen laden… (choose a file and validate), Prüfen (validation without a run), Neu laden (read file + profile again), Entscheidungen speichern (writes cutover-settings.json and updates the runtime copy in the profile; changed settings automatically receive “decided by” = signed-in user and “on” = today), Speichern unter…, Auf Standard (reset the selected setting).
  • Risk acceptance: For options that knowingly bypass a functional warning, a confirmation dialog appears; only after “Ja” is the value accepted, and the column “Risiko” shows “Risiko übernommen”. The decision maker and justification must then be entered in “Entschieden von” and “Kommentar”.
  • Frozen settings: As soon as the start block has been written, a notice banner appears and B settings are locked. The switch “Eingefrorene (B) bearbeiten – Neuaufbau erforderlich” deliberately lifts the lock; the next run then requires --replacestartblock.
  • Errors in the decisions are listed below the grid; saving and runs are possible only after they are corrected.

Rules that the tab displays

Term Meaning
Source Precedence: CLI (--setting for this run) > JSON (cutover-settings.json) > Profil (last saved in the mapping DB) > Standard (built-in proposal).
A Can be changed at any time; affects only checks, warning levels, or the evidence (for example warning instead of error).
B Frozen from baseline – affects the start block or transfer block. After the first full transfer, a change is possible only with a rebuild (--replacestartblock); DMP rejects runs with a deviating value.
Level 3 Option is already provided for but cannot yet be selected in this version (deactivated, notice “from version …”).
Invariant Not a setting but a fixed rule (for example cutoff date = G/L cutoff date); displayed for information only.

Area “Fibu” (decision maker: Accounting)

Setting (key) Description Options and effect Default Flag
EB-Gegenkonto (ledger.openingBalanceAccountNo) Technical carry-forward account in BC on which the offsetting entries of the OE postings land and which is balanced by netting. G/L account number after account mapping. Empty = warning and fallback to 9999. empty B
EB-Belegnummer / EB-Beschreibung (ledger.openingBalanceDocumentNo, ledger.openingBalanceDescription) Document number and posting description of all opening G/L entries. Free text; {yyyy} is replaced by the closing year. EB-{yyyy} / “Opening Balance” B
Ausgenommene Konten (ledger.excludedAccounts) Accounts for which no opening balance is deliberately created (for example technical clearing accounts). Control accounts do not belong here; they are corrected by netting. Account numbers separated by ;. Excluded accounts are also skipped during netting. empty B
Verdichtungsschlüssel (ledger.aggregateDimensions) By which global dimensions the opening balances are split per account. Dim1;Dim2 (default) or a subset. Fewer dimensions = fewer OB entries, but dimension analyses begin only after the cutoff date. Dim1;Dim2 B
Buchungsdatum OP-Sachposten (ledger.openItemPostingDateMode) Date of the G/L entry pairs that arise for each open entry. ClosingDate: closing date – the balance sheet at the cutoff date is correct, the account ledger shows all OEs on the cutoff date. Original: original posting date – the account ledger looks “real”, but periods before the closing are posted to. ClosingDate B
Register für OP-Nachbuchungen (ledger.openItemRegisterMode) How the OE postings are combined in G/L registers. SingleRegister: one collective register per entry type (few registers). Single: one shared OE register. PerEntry: one register per entry (maximum traceability, many registers). SingleRegister B
Bankposten einbeziehen (ledger.includeBankLedger) Whether unreconciled bank account ledger entries are included in the start block as individual entries. true: open bank entries are posted subsequently, bank accounts are corrected by netting. false: bank accounts only as an opening balance. false B
Perioden schützen (ledger.protectPeriods) Whether DMP sets Allow Posting From to the day after the cutoff date after the run and closes periods. true/false. Affects only the BC setup, not entries. false A
Warnstufe Sammelkonten-Rest (ledger.controlAccountRemainderSeverity) How DMP reacts when an opening remainder remains on a receivables/payables/bank account after netting (= direct postings on the control account). Warn: the remainder is posted and reported in the log. Error: the run aborts until the direct postings have been clarified in NAV. Warn A

Area “Lager” (decision makers: Accounting, Warehouse management/Logistics, Production)

Setting (key) Description Options and effect Default Flag
Art des Lager-Startbestands (inventory.cutoffMode) – project management How the inventory at the cutoff date is built up in BC. Decision E-01. OpenLayers: one start entry per open layer (item ledger entry with remaining quantity) – preserves FIFO/LIFO layers, unit costs, date, lots/serial numbers; subsequent entries can be applied via lookup. PhysicalInventory: condensed positive adjustments on the original items, separated by variant/location/tracking/dimensions and only for permitted costing methods. Later applications or value changes on condensed layers block the run. OpenLayers B
Herkunft historischer Buchungsgruppen (inventory.postingGroupSource) – project management Posting groups of the open layers. Contradictory historical groups block. SourceValueEntry: historical value entries. SourceValueEntryWithItemFallback: if groups are missing, explicitly use the item master data, with a warning. SourceValueEntry B
Postenart der Startposten (inventory.entryTypeMode) – warehouse management As which entry type the start entries appear in BC. Decision E-02. Adjustment: positive/negative adjustment “Regulierung” with the original document number – honestly recognizable as an opening stock, does not distort purchase/sales statistics. Original: the source entry type (purchase, sale, output …) is retained; transfers still become adjustments (no counter entry) and are counted. Adjustment B
Fertigungsausgänge (inventory.outputEntryType) – production Only with entry type Original: whether outputs/assembly outputs keep their entry type. Adjustment: these also become adjustments. Output: remain Output/Assembly Output so that production statistics are correct. Adjustment B
Beschreibungsvorlage (inventory.descriptionTemplate) – warehouse management Posting description of the start entries. Free text with placeholders {EntryType}, {EntryNo}, {DocumentNo}, {PostingDate}. “Startbestand {EntryType} {EntryNo}” B
Buchungsdatum der Startposten (inventory.postingDateMode) – Accounting Date of the start entries and their value entries. Decision E-03. Original: original posting date – FIFO order, age/coverage, and expiration date logic remain correct. ClosingDate: all start entries on the closing date – “cleaner” cut, FIFO only via the entry number, age lost (warning). Original B
Nicht fakturierte Wareneingänge/Lieferungen (inventory.uninvoicedQuantities) – Accounting Handling of quantities that were received or shipped at the cutoff date but are not yet invoiced. Decision E-04. Block: the run aborts with a list; the documents must be invoiced or canceled before the cutoff date (recommended, because otherwise BC cannot post the invoice to the entry). AcceptAsInvoiced (risk acceptance): start entries are treated as invoiced with the expected unit cost; differences from the later invoice must be posted manually; list in the evidence. Full (level 3): complete mapping of expected costs including document linking. Block B
Lagerplätze (inventory.binMode) – Logistics How bin contents (Bin Content) are created in BC. Decision E-05. Auto: simple locations with a bin requirement receive warehouse entries per start entry; directed locations (WMS) receive a bin start block from the source bin content. LayerOnly: layer reference only; directed locations are not allowed (error). BinBlockOnly: all locations via the bin start block without a layer reference. Skip: no warehouse entries – permitted only if no location has a bin requirement. Auto B
Reihenfolge der Lagerplatzzuordnung (inventory.binAllocationOrder) – Logistics In which order start entries are distributed to bins (oldest layer first). DefaultBinFirst: default bin first, then by quantity descending. BinRanking: by bin ranking. BinCode: alphabetical. DefaultBinFirst B
Warnstufe Lagerplatz-Konsistenz (inventory.binConsistency) – Logistics Reaction when Σ warehouse entries ≠ Σ item ledger entries per item/location. Error: the run aborts (clean up in NAV). Warn: the difference is only reported. Error A
Rundungstoleranz je Schicht (inventory.roundingTolerancePerLayer) – Accounting Up to which difference per start entry the deviation between Σ start values and the source inventory value is posted automatically as a rounding value entry (T1). Decision E-06. Amount ≥ 0. Example 0.01 × 3 layers = 0.03 per item. 0,01 B
Blocker-Schwelle Lagerwert (%) (inventory.valueBlockerPercent) – Accounting From which deviation in % of the item inventory value DMP assumes unadjusted entries (T2). Percent ≥ 0. Between T1 and T2: rounding + warning. Above T2: see the next setting. 1,0 B
Verhalten über der Blocker-Schwelle (inventory.valueDifferenceAction) – Accounting What happens when the inventory value deviation of an item exceeds T2. Block: the run aborts – “run the inventory adjustment in NAV”. RoundAndWarn (risk acceptance): the difference is posted in full as a rounding value entry and reported in the evidence. Block B
Datum des Rundungs-Wertpostens (inventory.roundingPostingDate) – Accounting Posting/valuation date of the rounding value entry per item. ClosingDate: closing date. LayerDate: date of the most recent layer. ClosingDate B
Warnstufe Lagerkonto-Kontrolle (inventory.glControlSeverity) – Accounting Reaction when Σ start values per inventory account deviates from the balance of the inventory account at the cutoff date (inventory costs not posted to the G/L, direct postings) or interim accounts “not invoiced” are ≠ 0. Warn: difference with a list of causes in the log. Error: the run aborts. Warn A
Bewertung bei Standardkosten (inventory.standardCostMode) – Accounting Remaining value for items with the costing method Standard. StandardCost: quantity × standard cost (variances are already in the G/L in NAV). ActualCost: proportional actual value of the layer. StandardCost B
Regulierungsmarkierung (inventory.adjustmentMarking) – Logistics Whether start layers are flagged in BC as “adjusted” so that “run the inventory adjustment” after go-live does not change their values. Decision E-07. Mark: Avg. Cost entries, item flag, and unit cost are set. None: no marking (warning: adjustment can shift start values). Mark B
Quelle muss reguliert sein (inventory.requireAdjustedSource) – Accounting Reaction when items with open layers in NAV are not fully adjusted at the cutoff date. Warn: item list as a warning. Error: the run aborts. Off: no check. Warn A
Einstandspreis Durchschnittsartikel (inventory.averageUnitCostMode) – Accounting Where the unit cost of the item (average) comes from after the start block. Recalculate: Σ start value ÷ Σ start quantity. Source: take the value over from NAV. Recalculate B
Warnstufe negativer Bestand (inventory.negativeInventory) – warehouse management Reaction to open negative entries (negative inventory) at the cutoff date; these are taken over as negative start entries. Warn: list as a warning. Error: the run aborts. Warn A
Artikelregister (inventory.registerMode) – warehouse management How many item registers the start block creates. Single: one register for all start entries. PerLocation: one register per location. Single B

Area “Anlagen” (decision maker: Accounting)

Setting (key) Description Options and effect Default Flag
Anlagen-Übernahme (fixedAssets.mode) Whether FA ledger entries are taken over completely or condensed. Decision E-08. Full: all FA ledger entries 1:1; entries before the cutoff date are treated as posted without G/L integration, fixed asset accounts come from the opening balance; fixed asset analysis of all years available in BC. OpeningBalance: prior-year values condensed per fixed asset/depreciation book/posting type plus the current year 1:1; the cutoff date must be the fiscal year end, the master data check becomes mandatory. Full B
Berücksichtigte AfA-Bücher (fixedAssets.depreciationBooks) Which depreciation books are included in the control lines (and in level 3 in the condensation). GLIntegratedOnly: only books with G/L integration (reconcilable). All: all books (tax/secondary books for information only). List: selected codes. GLIntegratedOnly A
Anlagen-Kontrollzeilen (fixedAssets.controlLines) Whether Σ acquisition cost and Σ accumulated depreciation per depreciation book and FA posting group are checked against the G/L account balances at the cutoff date. Decision E-09. On: check in analysis and verify. Off: no check (source without a fixed assets module; corresponds to --skipfa). On A
Warnstufe Kontrollzeilen-Differenz (fixedAssets.controlDifferenceSeverity) Reaction when Σ FA ledger entries deviates from the G/L account balance (direct postings on fixed asset accounts, fixed assets without G/L integration). Warn: list of fixed assets in the log. Error: the run aborts. Warn A
Stammdatenprüfung AfA-Buch (fixedAssets.masterDataCheck) Check per fixed asset/depreciation book: last depreciation date ≤ cutoff date, depreciation starting date set (otherwise duplicate depreciation threatens in BC). Hint: list of notes. Error: the run aborts (always with OpeningBalance). Hint A
Abgegangene Anlagen einbeziehen (fixedAssets.includeDisposed) Whether fixed assets disposed of before the cutoff date are transferred together with their entries. Decision E-10. true: complete history (recommended with Full). false: disposed fixed assets and their FA, maintenance, and insurance entries are not transferred; number in the evidence. true B

Invariants (display only)

Rule Meaning
Stichtag = Fibu-Stichtag (common.invariants.closingDateSource) Inventory and fixed assets always use the closing date of the G/L cutoff profile (E-11); only this way can inventory account ↔ inventory value and fixed asset accounts ↔ fixed asset values be reconciled.
Fibu-Startblock zuerst The inventory start block and the fixed assets control lines require the opening G/L entries.
Keine Doppelbuchung in der Fibu G/L: netting of the control accounts. Inventory: start value entries are treated as “posted to the G/L”. Fixed assets: legacy entries without a G/L link.

Evidence

Every run (analysis, start block, transfer, verify) logs the effective settings with their source in the log header, in effective-settings.json (export folder), and in the evidence table DMP Cutover Settings Evidence (Tab 6). This makes it traceable for every entry under which decisions it was created.

Tab 8: Lager (Inventory Cutoff from Open Layers)

Availability: visible as soon as inventory.enabled = true is set in the tab “Entscheidungen” (level 2, Requirement-InventoryCutoff.md chapter 7). All inventory settings (entry type, date, tolerances, bin mode, adjustment marking …) are made in the tab “Entscheidungen” under the area Lager and take effect directly in the preview.

The inventory cutoff does not transfer the item and value entry history but builds the stock and the inventory value at the cutoff date from the open layers of the source: per item ledger entry with a remaining quantity, one start entry (adjustment with the original document number and date), one value entry with the remaining value at the cutoff date, and one offsetting entry. Everything after the cutoff date runs with offset and lookup as for the customer/vendor entries.

Layout of the tab

  • Header: Key figures Items with stock, open layers, Σ quantity, Σ remaining value, Source inventory value, Σ rounding (number of rounding value entries), Warehouse entries; the derived cutoff numbers (32, 5802, 339, 46, 7312) and a traffic light (errors / warnings / notes).
  • Buttons: Vorschau runs the complete inventory analysis without writing (identical to the later start block – preview = run); CSV exportieren writes inventory_layers.csv, inventory_items.csv, inventory_gl_control.csv, inventory_bins.csv, inventory_checks.csv to a chosen folder.
  • Blocker row: “Fibu-Startblock nicht Final”, “Nicht fakturierte Wareneingänge: n”, “Lagerregulierung fehlt: n Artikel”, “Lagerplatz-Konsistenz: n”, “Offene Belege auf geschlossene Schichten: n” – as long as a blocker is shown, putalldata --feature InventoryCutoff refuses to write.
  • Grid (a) item control: per item costing method, layers, remaining quantity, Σ layer value, source inventory value, difference, rounding amount, start value, status (OK / Warning / Error) with a filter by status. Status Warning = difference between T1 and T2 (rounding value entry with the note “item not fully adjusted”) or value without quantity; Error = difference above T2 → run “Lagerregulierung buchen” in NAV or decide inventory.valueDifferenceAction = RoundAndWarn.
  • Grid (b) layers: the open layers (top N, filter by item/location) with old entry number, document number, posting date, quantity, remaining quantity, remaining value, lot/serial number, and the flags not invoiced and inconsistent.
  • Grid (c) inventory account control: Σ start values per inventory account (from the inventory posting setup location × inventory posting group, after account mapping) against the G/L account balance at the cutoff; deviations show inventory costs not posted to the G/L, direct postings, or uninvoiced quantities. No netting takes place – the inventory account balance comes entirely from the G/L opening balance.
  • Grid (d) checks: all preliminary checks (chapter 4.10 of the requirement) as a traffic light with count and detail list (cut inconsistency, offsetting entries, stock reconciliation, uninvoiced quantities, adjustment status, negative inventory, bin consistency, missing setup, interim accounts, open documents).
  • Evidence: the evidence tables DMP Inventory Cutoff Layer Evidence, … Item Control, … GL Control, … Check of the last analysis or start block run (after the start block with the new BC entry numbers).

Typical procedure

  1. In the tab “Entscheidungen”, set inventory.enabled to Ja and go through the inventory decisions with warehouse management (save → cutover-settings.json).
  2. Run Vorschau; clean up blockers in NAV (post invoices, post the inventory adjustment, resolve document references, correct bin content) and repeat until no errors remain.
  3. Write the G/L start block (chapter 4, step 1), then the inventory start block (step 1b). The key figures of the start block run must match the preview.

4. Performing the Data Transfer

The execution is divided into three consecutive phases:

Text
[Phase 1: Write the start block]
DataMigratePro.exe -t putalldata --feature LedgerCutoff
                  │
                  ▼
[Phase 2: Baseline full transfer of the entry tables]
DataMigratePro.exe -t putalldata --changesonly 0
                  │
                  ▼
[Phase 3: Check & verification]
DataMigratePro.exe -t ledgercutoffverify

Step 1: Transfer the Start Block to Business Central

After the configuration has been checked and saved in the Mapping Editor, the start block is written. Run in PowerShell:

PowerShell
cd "<Installationsordner>"
.\DataMigratePro.exe -t putalldata --feature LedgerCutoff

What happens technically?

  1. DMP creates in BC via putdata:
    • The condensed OB G/L entries (G/L Register 1, source code OPENBAL).
    • The OE postings (customer, vendor, bank entries) including offsetting G/L entries and detailed initial entries.
    • The rekeying entries in the table BC Offset Lookup (mapping: Alte Quell-Entry-No. → Neue Ziel-Entry-No.).
  2. DMP reads back the maximum entry numbers actually created in BC (MAX(Entry No.)) and verifies the start values.
  3. The status in the table BC Offset is changed from Simulated to Final.

With ledger.dunningHistoryMode = RelatedOpenItems and ledger.dimensionSetMode = MappedValues, the startblock also resolves dimension sets on related issued reminder and finance-charge headers and lines. It uses their own source dimension set and the existing table-specific dimension value mappings. Only DimensionValue(...) instructions are sent to BC; source dimension set IDs are never copied. The same handling applies to related check and VAT records when included.

Missing source dimension sets or invalid/ambiguous dimension value mappings stop plan preparation before any startblock records are sent to BC. Correct the source data or mappings and retry; this preflight failure does not require --replacestartblock. GlobalDimensionsOnly intentionally omits the full dimension set while retaining the copied global dimension fields; it should not be used merely to bypass a mapping error.

Console output during the run

Each process step is output as a topic – in the log and on the console – following the pattern Ledger Startblock [n/N] <step>. Steps that do not apply because of the cutover settings appear as … - skipped (<reason>) so that the numbering stays stable. Example:

Text
Ledger Startblock [4/23] Analyze cutoff register 68791
Ledger Startblock [4/23]   Closing date 2026-08-31, G/L cutoff entry 1883998
Ledger Startblock [8/23] Resolve bank open items - skipped (ledger.includeBankLedger = false)
Ledger Startblock [11/23] Map open-item dimensions (52.311)
Ledger Startblock [20/23] Transfer startblock to Business Central (9 tables, 161.204 records)
Ledger Startblock [20/23]   Table 17 (G/L Entry): 104.882 records (1/9)

Wherever many records are processed, the progress display known from putdata/putalldata additionally appears (header line, bar, elapsed/remaining time, expected end):

  • a separate block for each table sent to BC (as in the regular transfer);
  • for local loops without a BC call: dimensions per open entry, reminder/finance charge memo history, VAT history, check entries, value mappings, transfer exclusions, and the writing of the BC Offset Lookup entries.

The step counters per operation: Ledger Startblock (23), Ledger Startblock Delete (7), Inventory Startblock (12), Inventory Startblock Delete (4), Inventory Startblock Refresh (4). The entries in BC Offset Lookup, DMP Ledger Cutoff Lookup Sync (inventory), and DMP Ledger Startblock Owned Key have been written in a set-based manner (Bulk Copy + MERGE) instead of row by row since this version; the semantics (update if the key exists, otherwise insert) are unchanged.

Note: If the start block has to be recreated because of changed specifications, use the switch --replacestartblock:

PowerShell
.\DataMigratePro.exe -t putalldata --feature LedgerCutoff --replacestartblock

An existing inventory start block (step 1b) is removed automatically in the process, because its cutoff numbers and the inventory account control depend on the G/L start block.

Interrupted run: DMP keeps a persistent ownership journal per profile (DMP Ledger Startblock Journal) with the states Prepared → Writing → Final (or Deleting). Prepared means that the keys have been saved but no request has yet been sent to Business Central; a run aborted in this state (for example an SQL error while writing the transfer exclusions) is discarded automatically on the next run. Only immediately before the first putdata does the state change to Writing. If the journal is at Writing or Deleting, the result in BC is uncertain; DMP then refuses any automatic rebuild:

Finding after comparing the journal keys with BC Procedure
Journaled entries are (partially) present in BC -t deletealldata --feature LedgerCutoff deletes exactly the journaled keys; then run putalldata --feature LedgerCutoff again.
No journaled entry is present in BC (for example abort before the first request with a version earlier than 1.1.293) -t putalldata --feature LedgerCutoff --discardstartblockjournal discards the journal and transfer exclusions without delete requests, resets the lookups/baselines/offsets of the profile, and rewrites the start block in the same run.

Step 1b: Inventory Start Block (Feature InventoryCutoff)

If inventory.enabled = true is set in the tab “Entscheidungen”, the inventory start block from the open layers follows after the G/L start block (see the tab “Lager” in chapter 3 and Requirement-InventoryCutoff.md):

PowerShell
.\DataMigratePro.exe -t putalldata --feature InventoryCutoff

What happens technically?

  1. Prerequisite: The G/L offsets (GLENTRY, GLREGISTER, CUSTLEDGER, VENDLEDGER) are at Final; otherwise the run aborts (exit code 4).
  2. DMP repeats the inventory analysis (cutoff numbers 32/5802/339/46/7312, open layers, item value control, inventory account control, bin distribution, all preliminary checks). Every error blocks writing – --force is not permitted here, because these are data errors in NAV (uninvoiced receipts, missing inventory adjustment, open documents on closed layers, bin inconsistency).
  3. DMP creates in BC via putdata in the order 32 → 5802 → 339 → 46 → 7312 → 7302 → 5804 → 27:
    • per open layer, an item ledger entry Positive/Negative Adjmt. with the original document number and date (Entry No. from 1), a value entry Direct Cost with the remaining value at the cutoff date (Cost Posted to G/L = Cost Amount (Actual), no G/L entries), and an item application entry (self-application);
    • per item, if needed, a rounding value entry on the most recent layer so that Σ start value = source inventory value;
    • item register 1 (OPENBAL), warehouse entries/bin content according to the bin mode, Avg. Cost Adjmt. Entry Point rows, and item flags (Cost is Adjusted, for average Unit Cost).
  4. The old → new mapping is stored as ITEMLEDGER in BC Offset Lookup; the evidence tables DMP Inventory Cutoff Layer Evidence / Item Control / GL Control / Bin Evidence / Check are filled with the new numbers.
  5. The inventory offsets (ITEMLEDGER, VALUEENTRY, ITEMAPPL, ITEMREGISTER, WHSEENTRY) are set to Final, a first start block refresh runs, and the baseline markers for tables 32, 5802, 339, 46, 7312 are written.
Command Effect
-t putalldata --feature InventoryCutoff --replacestartblock Delete and rebuild the inventory start block
-t putalldata --feature InventoryCutoff --changesonly 1 Start block refresh: update Remaining Quantity, Open, Applied Entry to Adjust, Shipped Qty. Not Returned, Last Invoice Date of the start entries from the source (detection via timestamp in DMP Ledger Cutoff Lookup Sync)
-t deletealldata --feature InventoryCutoff Remove the start block (32/5802/339/46/7312 in the range 1…start value, 7302 and 5804 start rows from the evidence), delete lookup/sync/baseline of the inventory tables, inventory offsets to Simulated. Item flags are not reset (log note).
-t ledgercutoffanalyse --skipinventory / -t ledgercutoffverify --skipinventory Skip the inventory part for this run (corresponds to --setting inventory.enabled=false)

Note: The BC field numbers of the inventory tables come from the standard base application (InventoryBcFields). For extensions that renumber fields, check against the target symbols before the first run.

Step 2: Baseline Transfer of the Entry Tables

Now the transfer block (all ongoing entries after the cutoff) is transferred. This must be done as a full transfer (--changesonly 0):

PowerShell
.\DataMigratePro.exe -t putalldata --changesonly 0
  • Only records with Source Entry No. > Cutoff no. are read.
  • All entry numbers and referencing foreign keys are transformed by SQL offset.
  • After successful completion, DMP writes the baseline marker to DMP Ledger Cutoff Baseline and initializes the $Transfer table with the source keys.

Step 3: Verification After the Baseline

Check the integrity of the data immediately after the full transfer:

PowerShell
.\DataMigratePro.exe -t ledgercutoffverify

What is checked?

  • Status check: Are all offsets at Final?
  • Limits of the verification: The CLI command is not a complete comparison of all BC target keys and target balances. A matching maximum entry number alone does not prove a complete transfer.
  • Baselines: The command logs existing baseline markers. The table-specific check of profile and offset signature takes place when the delta query is built; a marker INITIAL_STARTBLOCK does not replace a successful initial transfer.
  • Inventory (with inventory.enabled): Inventory offsets Final, number of ITEMLEDGER lookups = number of start layers, baseline markers for 32/5802/339/46/7312, no $Transfer rows ≤ cutoff in the delta; the item value and inventory account control lines are repeated against the current source state and logged.

Additionally, perform the financial reconciliation from the day after the cutoff:

PowerShell
.\DataMigratePro.exe -t reconcile --report all --from 2025-01-01

For the inventory cutoff, inventoryqty (stock per item/variant/location) and inventoryvalue (inventory value per item) compare NAV ↔ BC at the cutoff date:

PowerShell
.\DataMigratePro.exe -t reconcile --report inventoryqty,inventoryvalue --to 2024-12-31

5. Regular Transfer: Delta Operation (--changesonly)

For the derivation with the values actually used and the delimitation of completeness, see Audit Archives and Traceable Number Calculation.

Between the first test run/live start and the final go-live, accounting continues to post in the legacy system. These subsequent postings must be synchronized.

How Delta Detection Works with Offsets

In regular operation, simply call DMP with --changesonly 1 (or without the switch, since delta is the default):

PowerShell
.\DataMigratePro.exe -t putalldata --changesonly 1
Text
Legacy system (NAV)             DMP delta filter               Target system (BC)
+----------------------+        +---------------------+        +-----------------------+
| Entries <= cutoff    | -----> | SQL WHERE filter:   | -----> | Ignored (already in   |
| (condensed balance)  |        | Entry No. > cutoff  |        | OB/start block)       |
+----------------------+        +---------------------+        +-----------------------+
| OE <= cutoff with    | -----> | BC Offset Lookup    | -----> | Status modify under   |
| lookup (start block) |        | (Old No. -> New No.)|        | the new no.           |
+----------------------+        +---------------------+        +-----------------------+
| New entries > cutoff | -----> | ChangedKeys /       | -----> | Appended with a fixed |
| (ongoing postings)   |        | $Transfer comparison|        | offset                |
+----------------------+        +---------------------+        +-----------------------+
  1. Frozen offsets: The values in BC Offset remain permanently fixed. New source entries receive the same offset as in the baseline and join seamlessly to the existing BC data.
  2. Pre-filter (ChangedKeys): The delta query contains the filter WHERE T.[Entry No_] > Cutoff OR OLK.[New No_] IS NOT NULL. Rows ≤ Cutoff are therefore detected as a change only if they exist as an OE posting in the start block (lookup row); all other legacy entries remain excluded.

Status Reconciliation of the Start Block OEs in the Regular Transfer

If historical open entries are settled in the legacy system (for example, a long-standing customer pays an invoice from 2023), the field Open changes to false in NAV, and Closed by Entry No. and Closed at Date are filled. The regular transfer of the entry tables 21/25/271 (and 254 for copied unrealized VAT entries) takes over this status change – no separate feature call is needed:

PowerShell
.\DataMigratePro.exe -t putalldata --changesonly 1

Procedure using an example (offset CUSTLEDGER: cutoff 2,000,000, invoice 1,000,000 → start block no. 1,000, payment 2,000,001 → 1,001):

Source (NAV) Detection Target (BC)
Payment 2,000,001 newly posted Entry No. > Cutoff, not in $Transfer Insert entry 1,001 (Closed by Entry No. = 1,000 via lookup)
Invoice 1,000,000: Open = false, Closed by = 2,000,001 Lookup row, timestamp ≠ $Transfer Status modify entry 1,000: Open = false, Closed by Entry No. = 1,001 (offset), Closed at Date
Detailed Cust. Ledg. Entries of the payment Entry No. > Cutoff Insert with offset, reference to 1,000 via lookup

Rules of the status reconciliation:

  • Status only: For lookup rows, only the status fields are transferred – 21/25/271: Open, Closed by Entry No., Closed at Date; 254: Closed, Closed by Entry No., Remaining Unrealized Amount, Remaining Unrealized Base. Amounts, posting date, transaction number, and all other fields of the start block entry remain unchanged.
  • Two-stage reference: Closed by Entry No. is resolved like every reference field: > cutoff → + Offset, ≤ cutoff → BC Offset Lookup. A settlement against a legacy entry condensed in the balance (no lookup) results in 0.
  • Both modes: The status reconciliation runs in the baseline (--changesonly 0) and in the delta (--changesonly 1). The baseline thus also brings OEs up to date that were already settled between the cutoff and the baseline.
  • $Transfer: Lookup rows are logged with their original no. (1,000,000) and the source timestamp; they are the only permitted $Transfer keys ≤ cutoff and are never interpreted as a deletion.
  • No feature delta: putalldata --feature LedgerCutoff --changesonly 1 is rejected with an error message; the start block is written exactly once. After --replacestartblock, the baseline must be rebuilt.

Deletions and Reversals in the Delta

If an assignment is deleted in the legacy system (for example in table 253 G/L Entry – VAT Entry Link), DMP detects the deletion by comparing the source and $Transfer. The delete command to BC is transformed using the offset formula: $Delete key in BC = Source key + Offset$

Delta Verification

After each delta run, check the consistency with the parameter --delta:

PowerShell
.\DataMigratePro.exe -t ledgercutoffverify --delta

This command additionally verifies that the $Transfer tables of the entry tables (17/21/25/271/254) contain no impermissible rows ≤ Cutoff – the only exception is the lookup keys of the start block OEs (status only). In addition, the report shows for each subledger how many start block OEs the regular transfer has already logged (StartblockStatusSync).

6. Technical Insights: SQL Generation and Offset Engine

For developers, auditors, and database administrators, it is essential to know where DMP anchors the mathematical offsets in the generated SQL statements.

Where Are Offsets Entered in the SQL?

The transformation takes place in the class SqlQueryBuilder of the module DataMigratePro.Core.

During every table export, DMP checks whether columns of the table are linked to an Offset Code. If so, the SqlQueryBuilder injects two decisive SQL fragments:

  1. The row filter in the WHERE clause (primary key filter)
  2. The transformation expression in the SELECT projection

The Two-Stage CASE-WHEN Resolution

For each target field with an Offset Code, the following SQL expression is generated (BuildLedgerOffsetExpression):

SQL
SELECT
    -- Normales Feld oder Wert-Mapping:
    CASE 
        -- 1. Leere Werte oder 0 bleiben unverändert
        WHEN T.[G/L Entry No_] IS NULL OR T.[G/L Entry No_] = 0 
            THEN T.[G/L Entry No_]

        -- 2. Neuer Posten nach dem Cutoff: Normaler konstanter Offset
        WHEN T.[G/L Entry No_] > O1.[Cutoff Entry No_] 
            THEN T.[G/L Entry No_] + O1.[Offset]

        -- 3. Nachgebuchter Altposten vor/am Cutoff: Umschlüsselung via Lookup
        WHEN L1.[New No_] IS NOT NULL 
            THEN L1.[New No_]

        -- 4. Historischer Posten, der verdichtet/weggelassen wurde: Nullung
        WHEN O1.[Null Below Cutoff] = 1 
            THEN 0 

        -- 5. Fallback
        ELSE T.[G/L Entry No_] 
    END AS [G/L Entry No_]
FROM [NAV_SOURCE].dbo.[CRONUS AG$G_L - Item Ledger Relation] T

Primary Key Filter in the Source SELECT

For the leading entry tables themselves (for example table 17 G/L Entry, table 21 Cust. Ledger Entry), the legacy data is prevented from being read by the SQL Server at all. The cutoff filter is injected permanently into the WHERE clause; for tables with OE postings (21/25/271/254), the lookup exception is added:

SQL
LEFT JOIN [DMP_MAPPING].dbo.[BC Offset Lookup] OLK
    ON OLK.[Offset Code] = 'CUSTLEDGER' AND OLK.[Old No_] = T.[Entry No_] AND OLK.[Origin] = 'OP-Startblock'
WHERE ((T.[Entry No_] > @CutoffEntryNo) OR OLK.[New No_] IS NOT NULL)

As a result, in the transfer block DMP reads only entries of the new fiscal year as well as the start block OEs. The latter are detected via the marker column __DMP_StatusOnly = 1 and reduced to their status fields before sending; their primary key is OLK.[New No_].

Joins on BC Offset and BC Offset Lookup

To maximize performance, the SqlQueryBuilder joins the configuration tables directly to the source select:

SQL
LEFT JOIN [DMP_MAPPING].dbo.[BC Offset] O1 
    ON O1.[Code] = 'GLENTRY'
LEFT JOIN [DMP_MAPPING].dbo.[BC Offset Lookup] L1 
    ON L1.[Code] = 'GLENTRY' 
   AND L1.[Old No_] = T.[G/L Entry No_]

Interaction with the $Transfer Table

A central architectural building block for error-free delta detection:

  • $Transfer stores only source primary keys: The tracking table 17$Transfer stores the original Entry No. of the NAV source together with the source timestamp. This also applies to start block OEs: 21$Transfer contains the original no. 1,000,000, not the BC no. 1,000.
  • The offset shift exists only in the direction of Business Central: As a result, with every delta run DMP knows exactly which original entry in NAV has already been processed. Distortion of the change detection by changed target numbers is ruled out.

7. Troubleshooting and Best Practices

Symptom / error message Cause Solution
Load failed: Invalid object name ...$G_L Register / Ungültiger Objektname For BC on-premises sources, the physical table has an app ID suffix, for example CRONUS AG$G_L Register$437dbf0e-84ff-417a-965d-ed2bb9650972. Older DMP versions used only the NAV table name without the suffix here. Use a DMP version with app ID table resolution and click Refresh. The resolution applies to register analysis, opening balances, open entries, and start block refresh. Classic NAV tables without a suffix remain supported. If no table is found, check the source database and source company; ambiguous tables are not selected automatically.
Ledger cutoff baseline is missing for table X. A delta transfer (--changesonly 1) was started before the table was initially transferred with --changesonly 0. First run DataMigratePro.exe -t putdata -s X --changesonly 0 to set the baseline marker.
The ledger startblock has no delta mode. … putalldata --feature LedgerCutoff --changesonly 1 was called. The start block is written only once; the former feature refresh no longer exists. The status of the start block OEs is maintained by the regular transfer: DataMigratePro.exe -t putalldata --changesonly 1 (or -t putdata -s 21/25/271/254 --changesonly 1).
Ledger startblock is Writing: the previous network outcome is uncertain. … An earlier putalldata --feature LedgerCutoff was interrupted after the ownership journal was written (timeout, abort, error). Before 1.1.293, this also applied to errors in local SQL steps before the first BC request. Compare the journal keys (DMP Ledger Startblock Journal) against BC. If entries exist: -t deletealldata --feature LedgerCutoff. If no journaled entry is in BC: -t putalldata --feature LedgerCutoff --discardstartblockjournal (see step 1a).
Ledger cutoff delta for table X was blocked: $Transfer contains N key(s) at or below the cutoff. $Transfer contains legacy keys ≤ cutoff that are not start block lookup keys – typical after --replacestartblock or a start block delete, because the lookup rows were deleted. Rebuild the baseline of the table with --changesonly 0.
Ledger offset 'GLENTRY' has status 'Simulated'. A transfer requires status 'Final'. The start block has not yet been written to BC or verified. Run DataMigratePro.exe -t putalldata --feature LedgerCutoff to create the start block and set the status to Final.
Found X records in 17$Transfer with Entry No <= Cutoff Entry No! The transfer tracking table contains outdated records from an earlier test run without a cutoff. Stop the transfer and reconcile the source tracking, offsets, and target data. Resetting the tracking does not delete target entries. Rebuild the baseline only after the target cleanup or restart strategy has been reconciled.
Plausibility check failed with errors (Balance difference). The selected G/L Register is not balanced or is not a genuine closing register. Check the selected register in Tab 1. Use --force only if the balance imbalance in the legacy system is functionally documented and substantiated.
No BC Offset configuration exists for Offset Code: CUSTLEDGER. The reference field analysis was run, but the offsets were not calculated in the profile. Open Tab 4 in the Mapping Editor and run Preview Open Items to initialize all offsets. Save with Save Profile.

Audit Archives and Traceable Number Calculation

Automatic Storage and Language

Cutoff analysis, previews, offset distribution, start block creation/replacement/deletion, refresh, and verify automatically create a ZIP of their own. Regular table transfers create a cutoff archive if the selected tables use cutoff offsets or active cutover transfer filters. A normal transfer that is independent of these does not create a cutoff archive.

In the cutoff window, the language is selected via Report language (de/en). The path of the last archive is visible below it for copying. For the CLI:

PowerShell
.\DataMigratePro.exe -t ledgercutoffanalyse --profile DEFAULT --cutoffreportlanguage de -o C:\Migration\Cutoff
.\DataMigratePro.exe -t ledgercutoffverify --profile DEFAULT --delta --cutoffreportlanguage en

The default is German. de and en control the report labels; technical keys and original functional messages remain unchanged. Without an output target, archives are located under %LOCALAPPDATA%\DataMigratePro\Reports\LedgerCutoff. With -o, the output folder is used or, for a file target, its folder. -o remains a file export mode for transfer commands and must not be added merely to choose the report folder if data is actually to be transferred to BC.

Each archive has a unique name and is not overwritten. It contains report.html, run.json, available complete data evidence under data, effective decisions as far as they could be loaded, and manifest.json with SHA-256 checksums. Large tables are shown in the HTML only as a marked preview; for the complete list, the linked JSON/CSV/JSONL files are authoritative. HTML and evidence are readable offline after unpacking; no external web resources are required.

The log reports the start with the run ID and reserved archive path, then the archiving with status and number of evidence records as well as the finished path. run.json contains the timestamps and file references of the captured intermediate states. Repeatedly captured data is retained as separate versions; for example, a refresh does not overwrite its previous state.

The report distinguishes warnings, errors, skipped areas, and abort. A partial report of a GUI preview is not a complete overall analysis. Archiving errors are reported explicitly; BC changes that have already been made are not rolled back as a result. Even on abort, evidence captured up to that point is saved, as long as the file system and process are still available. An operating system failure or hard process termination is not covered automatically.

Transfer evidence separates planned records (planned-*), confirmed complete chunks (confirmed-*), confirmed test run data (test-confirmed-*), and exclusively exported data (exported-*). The original source keys are retained separately from the converted target numbers. A successfully sent format test record is additionally documented under confirmed-probe-* so that it remains recognizable as a partial effect that has already occurred if a later chunk fails. For a fully successful chunk, this record is already contained in its confirmed data and must not be added again. File exports do not send a format test record to BC.

Archives contain sensitive business data and must be protected accordingly. There is no automatic upload and no automatic deletion of old archives. The checksums facilitate integrity checks but are not an electronic signature and not a guarantee of legal audit-proofness. The results are a run record, not a complete NAV raw data snapshot for every conceivable later recalculation.

Where Does Each Cutoff Number Come From?

The report contains the parameters and results actually used in the run. The manual deliberately does not state any customer figures as generally valid values:

Number range Actual derivation rule
GLREGISTER / GLENTRY Selected G/L register; GLENTRY is its To Entry No.
VATENTRY To VAT Entry No. of the register; if 0, the maximum of this field across all registers up to the selected register number
TRANSACTIONNO MAX(Transaction No.) of the G/L entries with Entry No. <= GLENTRY cutoff
CUSTLEDGER, VENDLEDGER, BANKLEDGER Per subledger MAX(Entry No.) WHERE Transaction No. <= cutoff transaction number
DTLDCUST, DTLDVEND MAX(Entry No.) for (0 < Transaction No. <= CutoffTx) or (Transaction No. = 0 AND Posting Date <= closing date)
CHECKLEDGER MAX(Entry No.) WHERE Bank Account Ledger Entry No. <= BANKLEDGER cutoff
VALUEENTRY Highest value entry number of the G/L/item relation up to the G/L cutoff; if not available/empty: date fallback with a warning
ITEMLEDGER Highest referenced item ledger entry number of the value entries up to VALUEENTRY; if necessary, date fallback
ITEMAPPL Highest application number with inbound/outbound entries up to the item cutoff and posting date up to the closing date
ITEMREGISTER Register derived from the item cutoff; a register that crosses the boundary remains in the transfer block according to the implemented special rule
WHSEENTRY Highest warehouse entry number with registering date up to the closing date, if the table exists

The report documents the rule actually applied and any fallbacks. Transaction/number interleaving and date deviations remain visible audit findings. Different tables have different limits; a single posting date or a single G/L entry number is not sufficient as a general cutoff for all subledgers.

Start Values, Offsets, and Actual Target Numbers

For each number range, the following applies:

Text
C = table-specific cutoff
S = last reserved start block value of this number range
O = S - C
Target number for an ongoing source number Q > C: N = Q + O
Computed join boundary: (C + 1) + O = S + 1

In the HTML, C, S, O, and the formulas are filled in with the real numbers of the run. The join equation is a boundary proof, not a claim that C+1 actually exists in the source. In the case of source number gaps, the next key that actually exists is authoritative; a gap alone is not data loss.

The simulated ledger start values result from the OB/OE counts determined in reality:

Text
G/L entries:        OB count + 2 × (customer OE + vendor OE + bank OE)
G/L registers:      1 + number of non-empty OE groups
Transactions:       1 + customer OE + vendor OE + bank OE
Customer entries:   customer OE count
Detail customer:    customer OE count
Vendor entries:     vendor OE count
Detail vendor:      vendor OE count
Bank entries:       bank OE count
VAT/check:          0

Inventory start values come from the lines of the respective table that were actually planned or generated: open layers, value entries including rounding value entries, offsetting entries, registers, and warehouse entries. Simulation and records actually generated/transferred must be distinguished. The report therefore contains both calculations and the separate send/confirmation evidence; a simulated number does not yet prove a written BC entry.

Historical open entries and inventory layers are rebuilt in the start block. Their target numbers are evidenced via old→new lookups, not by applying the ongoing offset to every old number.

For reference fields, the actual order is decisive:

  1. NULL and 0 remain unchanged.
  2. Numbers above the cutoff receive the fixed offset.
  3. For historical numbers, an existing lookup is used.
  4. Otherwise, depending on Null Below Cutoff, the value is set to 0 or the original value is retained.

No artificial sample entries are output as real run data. If an example is missing because of an empty range or an abort, this is a limit of the evidence.

Starting Consistently from the Cutoff to the Delta

  1. Determine the functional cutoff: Check the register, derived limits, decisions, OE/OB reconciliation, and critical findings. Capture relevant reference fields and offset assignments completely. A forced continuation is not a functional approval.
  2. Create the start blocks: G/L first, inventory afterward if activated. Check the Final status and the lookups created. Afterward, do not change the profile, cutoff, and offsets in an uncontrolled way.
  3. Define the table scope: All required owner, detail, reference, and relation tables must be included in the selected mapping/table scope. Some relation tables follow reference predicates instead of their own entry number. Active filters and deliberate exclusions limit “everything” and are stated in the evidence.
  4. Load the first transfer block completely: --changesonly 0 transfers the permitted data above the respective cutoff limits. This is not a renewed transfer of all historical postings.
PowerShell
# Nur mit vorher geprüfter Tabellenkonfiguration ausführen:
.\DataMigratePro.exe -t putalldata --changesonly 0 --cutoffreportlanguage de
.\DataMigratePro.exe -t ledgercutoffverify --profile DEFAULT
  1. Accept the baselines: The first complete entry transfer must have completed successfully for each relevant table. $Transfer holds original source keys and the change state; its row count must match the permitted source. The start block marker INITIAL_STARTBLOCK alone does not prove this. Missing/incorrect profile/offset signatures prevent a consistent delta start.
  2. Start subsequent deltas explicitly: With unchanged offsets, new records, or records changed according to the existing change detection, are transferred within the permitted cutoff range.
PowerShell
.\DataMigratePro.exe -t putalldata --changesonly 1 --cutoffreportlanguage de
# Zusätzlich bei aktiviertem Lager-Cutoff:
.\DataMigratePro.exe -t putalldata --feature InventoryCutoff --changesonly 1
.\DataMigratePro.exe -t ledgercutoffverify --profile DEFAULT --delta

The commands show the modes; profile, environment, table scope, and decisions must match the actual project. --ignoreoffsets, partial ranges, test runs, and pure file exports are not evidence of a complete productive cutoff baseline.

  1. Include backdated postings: An entry created after the cutoff with a number above the boundary remains in the transfer, even if its posting date is before or on the closing date. An additional date filter “from cutoff date+1” would lose such entries. The financial reconciliation must also cover them; a reconciliation exclusively from the following day is not sufficient for this.
  2. Start block OEs in the regular transfer: A settlement of an old invoice changes a start block OE up to the cutoff. The regular transfer of tables 21/25/271/254 detects it via the lookup row and transfers only the status fields (see Status Reconciliation of the Start Block OEs); the inventory start block continues to use --feature InventoryCutoff --changesonly 1. Do not assume a general re-migration of all changes/deletions of historical postings.
  3. Restart partial failures in a controlled way: Check already confirmed target changes and open tables using the archives. Resetting tracking or replacing the start block is not a target cleanup. Before a renewed full transfer, reconcile the target data, dependencies, and restart strategy to avoid duplicates or invalid references.

How Is “Everything After Cutoff” Evidenced?

  • The complete planned and confirmed source/target data are stored separately in the archive. Exported data is not reported as confirmed by BC. In the case of a partial abort, target changes may already have occurred.
  • Table scope, cutoff, active filters, observation times, and available quantity/key evidence must be checked together. Identical maximum numbers or a mere success message are not sufficient: missing keys between the minimum and maximum would not be detected that way.
  • The report describes the state actually observed per table, not a new shared SQL snapshot. Postings newly created during the run may require a further delta run. Missing or time-deviating evidence does not allow an unrestricted completeness assurance.
  • For the final approval, stop postings in the source, perform the last delta/refresh run, and then reconcile NAV against BC across tables and functionally. An archive does not replace this reconciliation.

OB Preview: Decimal Overflow

SQL can return sums with precision up to 38 and many redundant decimal places. A direct .NET decimal conversion can then trigger Conversion overflows despite a representable numeric value. For the conversion, the OB aggregation removes only superfluous trailing decimal zeros without rounding the amount. Genuine value range overflows remain errors and are diagnosed with account/field context; amounts are not silently set to 0.

Target metadata and register boundaries

The shared Entscheidungen grid and JSON use the same catalog. Additional ledger choices are frozen with the startblock:

JSON key Choices Default
ledger.dunningHistoryMode RelatedOpenItems, None RelatedOpenItems
ledger.vatHistoryMode None, RelatedOpenItems, UnrealizedOnly None
ledger.dimensionSetMode MappedValues, GlobalDimensionsOnly (explicit risk acceptance) MappedValues
ledger.openItemRegisterMode SingleRegister per ledger type, Single for all open items, PerEntry SingleRegister

Accounting selects VAT history explicitly. These rows are imported historic information, not fresh VAT postings. Realized VAT is closed to prevent re-reporting; ambiguous source links or missing target metadata block the run. Dunning history is restricted to the issued documents and history linked to copied customer open items. The last issued reminder level is preserved even if copying related dunning history is disabled.

MappedValues sends individual mapped dimension values through the existing DimensionValue(CODE)=VALUE protocol; target dimension-set IDs are resolved by BC, never copied from source IDs. Bank opening entries and linked checks are included only when ledger.includeBankLedger=true. Unsupported partial bank applications block instead of silently producing an incorrect bank balance.

The ledger opening uses a durable ownership journal with the states Prepared → Writing → Final (or Deleting). Prepared means the intended keys are stored but no Business Central request has been sent yet; a run that fails in this phase rolls the journal back, and a leftover Prepared row is discarded automatically by the next run. The journal switches to Writing immediately before the first request. An interrupted write (Writing/Deleting) can have an unknown target outcome and is not automatically retried. Reconcile actual BC keys against the journal before explicit recovery: deletealldata --feature LedgerCutoff removes exactly the journaled keys, --discardstartblockjournal drops the journal without deletes when none of its records exist in BC. Legacy openings without ownership evidence are not automatically deleted.

Cutoff reference discovery resolves catalog entries by table number and field name against the loaded BC field metadata. Historical catalog field numbers are not sufficient evidence of a valid target reference. Only normal Integer/BigInteger fields are eligible. Missing metadata stops discovery; missing individual catalog fields are reported and are not assigned. Obsolete catalog assignments that no longer match the target field are removed during analysis. Run ledgercutoffdistribute again after a fresh analysis before transferring the baseline.

Register ranges are not ordinary references to individual open entries. A transferred G/L Register, Item Register or Warehouse Register must point to the contiguous transferred tail of its original range, not to an opening-entry lookup. Each G/L-entry, VAT-entry, item-entry, value-entry or warehouse-entry range is clipped independently at its own cutoff before its offset is applied. A range wholly before the cutoff becomes 0..0; a crossing range starts at cutoff + 1 in source numbering. A value-entry-only register must not be discarded merely because its item-entry range is empty.

The inventory startblock includes Item Registers (46) and, when warehouse opening entries are generated, Warehouse Registers (7313). Analysis includes the separate WHSEREGISTER numbering boundary; rerun analysis/distribution for profiles created before this offset existed. PhysicalInventory mode may map several old item-entry numbers to one new opening entry, so verification compares distinct lookup targets rather than raw lookup row counts.

Before a generated inventory baseline/delta is sent, the transfer checks the finalized inventory offsets, source opening-layer lookups and later applications/value entries again. Required references to omitted historic item entries block the transfer instead of becoming zero. Condensed layers with later individual applications or value changes also block the transfer. Run the inventory startblock refresh before subsequent transfers; verification repeats the same read-only safety checks. File exports, test mode and explicit full-history exports with ignored offsets do not certify these prerequisites.

Scope of inventory value compression

The inventory opening does not copy the historical value-entry population. It creates opening value entries for the remaining inventory layers, with additional rounding entries where required. Original item numbers remain in use; no artificial catch-all opening item is created. Entries after the cutoff belong to the transfer block and require valid target relationships.

Setting Cost Posted to G/L on the synthetic value entries prevents the already opened inventory balance from being posted a second time. The inventory account balance comes from the G/L opening. Inventory posting setup and interim-account balance checks remain necessary; a successful table write does not replace inventory/G/L reconciliation.

Optional fixed-asset opening

fixedAssets.mode=Full remains the default. OpeningBalance requires fixedAssets.masterDataCheck=Error and a fiscal-year-end closing date. Prior-year values of the books selected by fixedAssets.depreciationBooks are condensed separately by asset, depreciation book, posting type, posting group and dimensions; current-year entries and unselected books remain in the normal transfer. The synthetic FA ledger rows have no G/L-entry link because the G/L opening already contains the asset balances. A separate FA Register accompanies them. Maintenance and insurance history is not condensed. Fiscal-year boundaries must match the source Accounting Period setup; short or extended fiscal years are not supported by this mode.

The opening retains acquisition/depreciation/write-down/appreciation/custom posting types, not arbitrary disposal histories. Unsupported disposal situations, missing dimensions or incomplete master data block the run. Full history is the appropriate choice when historic asset schedules or unsupported legacy dimensions must remain available. Synthetic FA numbers are reserved above existing source numbers; later source growth into that reserved range blocks normal FA transfer and verification and requires a reconciled rebuild.

FA registers mixing condensed and retained ledger entries, or condensed entries with maintenance entries, block OpeningBalance during analysis and startblock preflight. Use Full for these datasets; the implementation does not emit registers with knowingly missing range members. Opening quantities and depreciation-day totals are aggregated historic information, not a substitute for validating the next depreciation run.

Before productive use, validate the chosen dataset in a BC test company: open-item applications and currency adjustments, reminder drill-down, realized/unrealized VAT, bank reconciliation, depreciation and asset schedules, inventory cost adjustment/tracking, and register drill-down. Unit tests and a successful build do not establish tax-reporting or accounting acceptance.

End of the manual. For questions or enhancements, contact the DataMigrate Pro development team.