DataMigrate Pro·Reference
DataMigrate Pro — Parameter Quick Reference & Sample Calls
The parameter quick reference shows the DataMigrate Pro syntax with global options, task options and sample calls for service, installation and mapping.
Version: 2026-04 | Language: English & Deutsch
1. Quick Syntax Overview
Basic Command Structure
DataMigratePro [global options] -t <TASK> [task options]Many features work without -t (service, installation, queue handling, mapping build).
Use /?, -help, or --help to show the task list and common connection options.
Add help after a task to list that task's options. For example,
DataMigratePro -t putdata -help shows the -s, -d, -i, -o, and -f
options alongside other supported putdata switches. Help exits without requiring
settings or task arguments.
The same reference is available inside the mapping editor (DataMigratePro --editmapping)
under Help › Command Line: one article per task, root switch and option group, plus the
command-line equivalent of every GUI action. Both the console help and the editor help are
generated from DataMigratePro.Core/CommandCatalog.cs.
Exit Codes
| Code | Meaning |
|---|---|
0 |
Finished without errors |
1 |
Unhandled exception or license rejected |
2 |
settings.json not found |
4 |
Finished, but handled errors were logged ([ERR] lines), e.g. a missing import file or failed records. --buildmapping/--buildlocalmapping often end with 4 |
Scripts and Task Scheduler see 4 as non-zero; treat it as "completed with errors" and check the log.
Interactive Mode (No Arguments)
When started without arguments, DataMigrate Pro first shows the parameter overview/help text, then opens a numbered menu selection, and then continues in guided interactive mode with step-by-step prompts:
- Grouped overview: lists supported tasks and groups connection, data/file, transfer/performance, mapping/maintenance, value-mapping/reconciliation, and service/listener parameters
- Menu selection: choose from the numbered command list (or type the action name)
- Prompt workflow: required parameters are requested one after another after selecting the action
- Input rule: enter the action first (for example
1orputdata), then provide prompted values like-s,-i, and optional flags - Exit: press
Esc(or typeexitin line-based prompts)
German: Das Tool bietet automatische Vorschläge und Parameter-Validierung vor der Ausführung.
2. Global Connection & Environment Options
These options apply to all tasks. Most of them are persisted in settings.json; the rows marked Run-only override settings.json for the current run only and are never saved.
| Parameter | Type | Meaning | Example |
|---|---|---|---|
--registration <GUID> |
Global | License/registration key (requires --tenantid) |
--registration "abc123-def456" |
--tenantid <id> |
Global | Azure AD Tenant ID (SaaS) | --tenantid "12345678-1234-..." |
--clientid <id> |
Global | Azure AD App ID (SaaS) | --clientid "app-id-value" |
--clientsecret <str> |
Global | Azure AD App Secret (SaaS) | --clientsecret "secret-value" |
--sqlconnection <str> |
Global | Primary SQL connection string | "Data Source=SQL01;Initial Catalog=NAV;..." |
--sourcedatabase <str> |
Global | Source database name (query generation) | BC_PROD |
--database <str> |
exportcalsource |
Source database for this run only; not saved to settings.json |
"Demo Database NAV (6-0)" |
--mappingdatabase <str> |
Run-only | Mapping database for this run; not saved | BC_MAPPING_TEST |
--migrationdatabase <str> |
Run-only | Migration DB (helper tables) for this run; not saved | BC_MIGRATION_TEST |
--sourcecompany <str> |
Global | Source NAV/BC company name | CRONUS AG |
--destinationcompany <str> |
Run-only | Target BC company for this run; replaces company= of the endpoint; not saved |
CRONUS AG |
-w <EndpointURL> |
Global | BC OData Upload_LoadData endpoint | https://api.businesscentral.dynamics.com/.../Upload_LoadData |
--environment <name> |
Run-only | BC environment (SaaS) or server instance (on-prem) for this run; rewrites the endpoint; not saved | Sandbox / BC240 |
--sqlcommandtimeout <seconds> |
Global | SQL command timeout (0 = unlimited) | --sqlcommandtimeout 300 |
--verbose 1 |
Global | Enable verbose logging | --verbose 1 |
Run-only overrides: --environment, --destinationcompany, --mappingdatabase and --migrationdatabase can be combined with any task to target a different BC environment/company and a different local mapping/migration database without touching settings.json. In SaaS/OAuth mode the canonical endpoint is rebuilt from tenant, environment and company; in on-prem mode --environment replaces the server-instance segment before ODataV4 and --destinationcompany the company= query of the configured endpoint. Example:
DataMigratePro.exe -t putdata -s 18 -m mapping\Customer.json --environment Sandbox --destinationcompany "CRONUS AG" --mappingdatabase BC_MAPPING_TEST --migrationdatabase BC_MIGRATION_TESTSee settings.json.md for the exact endpoint rules.
German Hinweis: Die Parameter --tenantid, --clientid, und --clientsecret sind erforderlich für Azure AD-Authentifizierung in SaaS-Umgebungen. Für On-Premise-Systeme verwenden Sie SQL-Authentifizierung oder integrierte Sicherheit.
3. Common Task Options
Used by most migration tasks to specify source/destination tables and data filtering.
| Parameter | Applies To | Meaning | Example |
|---|---|---|---|
-s <TableNo> |
putdata, getdata, deletedata, execute, generate* | Source table number in BC | -s 18 (Customer table) |
-d <TableNo> |
putdata, getdata, deletedata | Destination table override | -d 349 (map source 347 to dest 349) |
-m <Path> |
putdata, getdata, generate* | Mapping file path (or directory for batch) | -m mapping\Dimension.json |
-i <SQL or Path> |
putdata, getdata, getalldata | SQL query / stored proc / JSON file or directory | -i "SELECT * FROM ..." or -i chunks/ |
-n <TableName> |
getdata (SQL output) | Destination table name when writing to SQL | -n [CRONUS$Customer] |
-v <FilterStr> |
getdata, deletedata | BC filter/view syntax | -v "WHERE(Active=1)" |
-o <Path> |
putdata, getdata, loadcfg, savecfg | Output file path (instead of sending to BC). getdata: skips the SQL write, same format as putdata -o |
-o out\export.json |
-f <Format> |
putdata/getdata (with -o), JSON input |
Output format: j (JSON) csv xls canonical (JSON with type-normalized values, e.g. 14.5, 2017-01-26, <30D>, {GUID}, so putdata and getdata files compare as text) |
-f csv |
-r <Range> |
putdata, putalldata, generate* | Filter Entry No. range or table filter | -r 1..100000 or -r 5..10|20..30 |
--ojsonformat <old|new> |
putdata (JSON output) | JSON format variant (default: old) | --ojsonformat new |
--testrun |
putdata, putalldata | Send only first record per table (validation) | --testrun |
Deutsch Erklärung: Der Parameter -m akzeptiert entweder eine einzelne Mapping-Datei oder ein Verzeichnis mit mehreren Mappings für Batch-Operationen. -i kann SQL-Statements, SQL-Prozeduraufrufe oder Pfade zu JSON-Dateien entgegennehmen.
4. Transfer Behavior & Performance Options
Control how data flows, what data transfers, and how fast.
| Parameter | Meaning | Impact | Example |
|---|---|---|---|
--changesonly <0|1> |
Send only new/changed records (delta) | Default 1 = delta only; 0 = full export | --changesonly 0 |
--tablegroup "grp[,grp]" |
Filter which table groups process | Default "1,2" (master data); use "3", "4", etc. for transaction data | --tablegroup "1,2,3" |
--limitmemory <MB> |
Max memory per batch (SQL-sourced flow) | Limits peak memory usage during SQL generation | --limitmemory 500 |
--buffered |
Disable streaming, buffer in memory | Increases memory; use only if streaming fails | --buffered |
--benchmark |
Record performance metrics (putdata/putalldata) | Outputs JSON log to logs/perf/<runId>.json |
--benchmark |
--benchmarkmode <label> |
Label for benchmark comparison | Helps distinguish runs in analysis | --benchmarkmode "full-delta-v2" |
Wichtig (Important): Delta mode is now the standard behavior. Omit --changesonly or use --changesonly 1 for repeatable syncs, and use --changesonly 0 only when you explicitly need a full export.
5. Tasks Reference
DataMigrate Pro supports these core tasks (specified via -t <TASK>):
Data Transfer Tasks
| Task | Purpose | Requires | Typical Use |
|---|---|---|---|
putdata |
Send single table to BC | -s, -i (SQL or JSON), -m or --automapping |
Migrate one customer/vendor/dimension table |
putalldata |
Send all configured tables to BC | --tablegroup, --automapping or -m |
Full migration run or delta sync |
getdata |
Export BC table to SQL | -s, -n, optional -v filter |
Verify BC data or extract for reporting |
deletedata |
Delete records from BC table | -s, optional -v filter -d |
Clean test/sandbox data before re-migration |
Query & Analysis Tasks
| Task | Purpose | Requires | Typical Use |
|---|---|---|---|
generatequery |
Build SQL query for single table | -s, optional -m (to save mapping) |
Preview what will be extracted from source |
generatetransferquery |
Generate SQL + mapping for transfer | -s, optional -m |
Plan custom transfer without execution |
generateallquery |
Build queries for all configured tables | --tablegroup, -m (directory) |
Batch SQL generation for all tables |
countrecords |
Count records in source tables | (configured tables) | Validate data volume before migration |
Configuration & Setup Tasks
| Task | Purpose | Requires | Typical Use |
|---|---|---|---|
loadconfiguration |
Pull configuration from BC to local DB | --tenantid, --environment |
Bootstrap local migration environment |
saveconfiguration |
Push local config back to BC | --tenantid, --environment |
Deploy updates after changes |
exportsource |
Export source data structure | (configured source DB) | Document source schema before migration |
Source Metadata Tasks (NAV 2009 and older)
For NAV 2013+ the mapping build reads table and field metadata directly from the source database. NAV 2009 and older expose no readable metadata, so it is transported through an Excel workbook filled from the NAV virtual tables 2000000001 Object and 2000000043 Field. See NAV2009-Source-Metadata-Excel-Import.md.
| Task | Purpose | Options | Typical Use |
|---|---|---|---|
createsourcemetadatatemplate |
Create the empty workbook with sheets Object, Field and ReadMe; the header rows match the NAV virtual tables column by column |
-o <file.xlsx> (default C:\Migration\DataMigratePro\export\SourceMetadataTemplate.xlsx) |
Hand the template to the NAV administrator who pastes the content of two NAV Classic forms |
importfobmetadata |
Read NAV 2009 R2 table and field definitions directly from a FOB (no finsql or Excel metadata export); write metadata for physical source SQL tables/columns into BC Migration Tables and BC Migration Mapping, preserving existing mapping decisions |
--fobpath <file.fob> (required), --dryrun, --report <file.csv> |
Run --dryrun first; the source SQL schema validates physical tables/fields and supplies Code/Text lengths. This task does not update BC Migration Dimension |
importdbobjectmetadata |
Read the compiled table objects of a NAV Classic source (NAV 2009 R2 and older) directly from dbo.Object of the source database, decompress them and write metadata for physical source SQL tables/columns into BC Migration Tables and BC Migration Mapping; no FOB export or Excel workbook needed |
--dryrun, --report <file.csv> |
Run --dryrun first. --buildlocalmapping/--buildmapping run this import automatically for legacy sources when the mapping database holds no source metadata yet. Refreshes BC Migration Dimension in parallel |
exportcalsource |
Export the C/AL code of every compiled object with a BLOB (Table, Form, Report, Dataport, Codeunit, XMLport, MenuSuite, Page) from dbo.Object of a NAV Classic source as one UTF-8 text file per object: <-o>\CAL Source\<Type>\<Type>_<ID 10 digits>.txt (for example CAL Source\Codeunit\Codeunit_0000000080.txt). Decoder diagnostics are appended as comments; undecodable objects get a stub file and are counted as failed |
-o <base dir> (default: current directory), --database <name> (source DB for this run only, not persisted), --objecttype <type>, --objectid <id> |
Code analysis before a migration (DataMigratePro -t exportcalsource --database "Demo Database NAV (6-0)" -o C:\Migration\Export). Like decodefob the output is an analysis aid, not an import-ready C/SIDE text export |
importsourcemetadata |
Import the filled workbook into BC Migration Tables and BC Migration Mapping; only tables/fields that physically exist in the source SQL database are written, FlowFields/FlowFilters and disabled fields are skipped, Data per Company is derived from the Company Name column. In parallel BC Migration Dimension is filled from the source dimension usage (see updatedimensionusage) |
-i <file.xlsx> (required), --dryrun (validate and report only), --report <file.csv> (default in the export folder) |
Replace the metadata step of the mapping build; can be repeated at any time without losing mapping decisions. Continue with --buildlocalmapping or --buildmapping |
updatedimensionusage |
Fill BC Migration Dimension with every Table ID / Dimension Code pair used in the NAV dimension usage tables of the source company (Posted Document, Document, Ledger Entry, Journal Line, Production Document, G/L Budget Dimension; NAV 2009 and older). Incremental: new pairs are inserted, vanished pairs deleted, unchanged rows keep their rowversion; source tables that do not exist are reported and skipped |
(connection parameters only) | Refresh the dimension usage independently of the Excel import; also runs inside importsourcemetadata and --buildlocalmapping. Send the result to BC with --buildmapping or -t saveconfiguration |
Value Mapping Classification Tasks
Mapping-database-only tasks (no Business Central connection required). See Requirement-ValueMapping-Classification-Import.md.
| Task | Purpose | Options | Typical Use |
|---|---|---|---|
exportvaluemappingcandidates |
Export all active BC Migration Mapping rows as CSV with a proposed classification (DIRECT/CONDITIONAL/NONE/OPEN), proposed dispatcher code, condition field and rules |
-o <file.csv> (default C:\Migration\DataMigratePro\export\ValueMappingCandidates_yyyyMMdd_HHmm.csv), --table <TableNo>, --includeskipped |
Hand the candidate list to accounting for editing in Excel |
importvaluemappingclassification |
Validate and apply an edited candidate list: sets Value Mapping Code, creates value mapping headers and dispatcher rules (BC Value Mapping/BC Value Mapping Value), stores the decision in BC Value Mapping Classification |
-i <file.csv> (required), --dryrun (preview only), --partial (apply valid rows even if other rows have errors; default is all-or-nothing), --report <file.csv> (change log, default in the export folder) |
Import accounting decisions; re-importing the same file yields 0 changes |
valuemappingcoverage |
CSV or HTML coverage report: rows per source table and classification, list of OPEN rows and number-like fields classified as NONE |
--report <file.csv|file.html>, --table <TableNo>, --includeskipped |
Prove that every relevant field has a classification |
Validation errors are logged as [ERR] and lead to exit code 4; without --partial nothing is written in that case.
Reconciliation Task (NAV ↔ Business Central)
Read-only comparison of NAV source figures (SQL) against live Business Central figures (OData). See Requirement-Reconciliation-NAV-BC.md; full user documentation with the meaning of every option in DataMigratePro-Reconciliation-Dokumentation.md.
| Task | Purpose | Options | Typical Use |
|---|---|---|---|
reconcile |
Compares open customer/vendor items as of a date, trial balances (G/L, customers, vendors) for a period, and the period movements per posting group (glpostinggroup: G/L entries by Gen. Bus./Gen. Prod. Posting Group, vatbalance: VAT entries by VAT Bus./VAT Prod. Posting Group with base and amount) and the inventory as of the period end (inventoryqty: quantity on hand per item/variant/location from item ledger entries, inventoryvalue: Cost Amount (Actual) per item from value entries); applies the GLACCOUNT/CUSTOMER/VENDOR/ITEM and GENBUSPOSTINGGROUP/GENPRODPOSTINGGROUP/VATBUSPOSTINGGROUP/VATPRODPOSTINGGROUP value mappings before comparing; exports CSV (summary_<report>.csv, checks_<report>.csv, optional detail_<report>.csv), summary.txt, parameters.json, report.html and optionally result.json |
--report <opencustomer|openvendor|glbalance|custbalance|vendbalance|glpostinggroup|vatbalance|inventoryqty|inventoryvalue|all> (required, comma-separated allowed), --asofdate yyyy-MM-dd (default: --cutoffdate or today), --from/--to yyyy-MM-dd (default: fiscal year start from NAV Accounting Period .. as-of date), --tolerance 0.00, --includeclosingentries, --showfcy, --detail, -o <folder> (default C:\Migration\DataMigratePro\reconcile\yyyyMMdd_HHmm\), --cutoffdate / --openingbalancedate yyyy-MM-dd (opening-balance aware comparison), --decimalseparator <,|.>, --closingsourcecode <code> (BC source code of closing entries, default from NAV Source Code Setup), --receivablesaccounts/--payablesaccounts <no,no> (override control accounts), --target <auto|api|odata> (how BC is read, default auto), --set <file.json> / --saveset <file.json> (parameter sets, default folder C:\Migration\DataMigratePro\reconcile\sets\; CLI values override set values), --json (write result.json), --sourceonly / --targetonly (read and export one side only) |
Prove after each test or live migration that BC balances equal NAV balances |
mappingreport |
Writes the audit evidence of the mappings actually used: every active table whose $Transfer table in the migration database contains records (count, first/last transfer), all non-skipped field mappings with a plain-language explanation (1:1, join lookup via Joined Table/Join Clause, calculation from other source fields, transformation, constant, CASE, value mapping, where clause, entry-no offset), the joins and calculations per table, the value mappings with complete value lists, and – if applied – the SalesPrice feature transition (legacy NAV price tables → Price List Header/Line, normalization rules, number series, runs from DMP Feature Migration Log); exports mapping-report.html/.md/.json, CSV per section, parameters.json, summary.txt with a SHA-256 fingerprint of the mapping state |
-o <folder> (default C:\Migration\DataMigratePro\mappingreport\yyyyMMdd_HHmm\), --cutoffreportlanguage <de|en> (default de), --tablegroup 1,2,3, --table 18,27, --includeuntransferred (also list active tables without transferred records), --featurefieldmap <file.json> |
Hand the auditor a readable proof of which mappings were used and what joins, calculations and value mappings mean; also via the Mapping report button in --reconcile |
Result OK → exit code 0; differences, unmapped numbers or one side not readable → exit code 4 (details in the log and in summary.txt). The NAV side is exported even if Business Central is unreachable. One-sided runs (--sourceonly/--targetonly) report EXPORTED and exit 0 unless a technical error occurs.
GDPdU raw-data export
--gdpdu adds one GDPdU ZIP per system to a reconcile run. --gdpduonly runs the export without requiring --report. The GDPdU period and companies are independent from the reconciliation selections and both source and target must be supplied:
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\GDPdURequired: --gdpdufrom, --gdputo, --gdpdusourcecompany, --gdputargetcompany; optional: --gdpduprofile (defaults to the embedded version-1 Finance profile). -o selects the output folder. Profile DateField tables use inclusive posting-date filtering; master/setup/reference tables are exported without a posting-date filter, and posted document lines are restricted through their selected header. The profile selects explicit fiscal fields rather than every field in each table. Use the profile and reconciliation requirements for the table list, known standard published Page/service pairs, format and limitations.
Missing services or ordinary fields are recorded as gaps and produce a visibly incomplete archive/exit code 5; a missing required filter/key skips that table and dependent tables. A technical read or validation failure produces no ZIPs for the run; in a combined run, a technical reconciliation error also suppresses both GDPdU ZIPs. Exit code 5 applies only to GDPdU gaps unless a normal reconcile difference/error already requires exit code 4, which takes priority.
For the embedded Finance profile only, the six existing service defaults (G/L entries, customer/vendor ledger entries, detailed customer/vendor ledger entries and VAT entries) are replaced with the corresponding Reconciliation values from settings.json. A custom --gdpduprofile is not rewritten by these settings; its BcService names must match the published OData services. Profile date fields are intentionally written with GDPdU type AlphaNumeric and ISO-like values, not GDPdU Date, so NAV's closing-date C prefix is not lost. BC Page dates may not carry this NAV distinction; any such limitation is reported. Unfiltered masters, setup, currencies, dimensions, dimension values, and registers represent current state, not a historical period snapshot. A published BC Page can still have an intrinsic SourceTableView, security filters, or a reduced field set: OData $metadata alone cannot prove full raw-table access. Validate the service, page filters, permissions and resulting data in the target environment. CSV is UTF-8, semicolon-delimited with CRLF rows; a companion null-value CSV distinguishes NULL from empty text. This configurable finance catalog does not claim complete tax coverage or certified compatibility with IDEA or another audit tool.
Business Central side (--target):
api– server-side aggregation through the DataMigrate Pro extension (actionreconcileonUpload_LoadData, available from app commit439fe15/ codeunit DMP Reconciliation API IOI). Exact closing-entry handling and as-of remaining amounts without downloading entries; recommended.odata– standard page web services aggregated client-side. The following pages must be published as OData web services (names configurable insettings.jsonsectionReconciliation): page 20 General Ledger Entries →DMP_GLEntries, page 25 Customer Ledger Entries →DMP_CustLedgerEntries, page 29 Vendor Ledger Entries →DMP_VendLedgerEntries, page 573 Detailed Cust. Ledg. Entries →DMP_DetailedCustLedgEntries, page 574 Detailed Vendor Ledg. Entries →DMP_DetailedVendLedgEntries. Closing entries are detected by source code (--closingsourcecode).auto(default) – triesapifirst and falls back toodatawhen the installed extension does not provide the action.
"Reconciliation": {
"GlEntriesService": "DMP_GLEntries",
"CustomerLedgerEntriesService": "DMP_CustLedgerEntries",
"VendorLedgerEntriesService": "DMP_VendLedgerEntries",
"DetailedCustomerLedgerEntriesService": "DMP_DetailedCustLedgEntries",
"DetailedVendorLedgerEntriesService": "DMP_DetailedVendLedgEntries",
"VatEntriesService": "DMP_VATEntries"
}Example: DataMigratePro -t reconcile --report glbalance,opencustomer --from 2025-01-01 --to 2025-12-31 --tolerance 0.01 --detail
GUI: DataMigratePro --reconcile [--report …] opens the reconciliation window (parameter bar, progress per side, result badge, one tab per report with NAV-style column filters, double-click drilldown into entries, CSV/HTML export, load/save parameter sets). Command-line parameters pre-fill the form.
Service & Automation Tasks
| Task | Purpose | Requires | Typical Use |
|---|---|---|---|
listen |
Start Service Bus listener (unattended sync) | --registration, --tenantid, ServiceBus config |
Continuous sync daemon for repeated jobs |
execute |
Call BC codeunit from CLI | -s (codeunit ID) |
Trigger custom post-migration logic |
6. Service & Installation Options
Run DataMigrate Pro as a Windows service or web service for unattended operation.
| Parameter | Purpose | Typical Use |
|---|---|---|
--service <port> |
Run as local SOAP-like web service on port | --service 8080 → listen on http://localhost:8080 |
--install <Name> |
Install as Windows Service (with -t listen only) |
--install "DataMigrate PRO Synch-Service" |
--uninstall <Name> |
Uninstall Windows Service | --uninstall "DataMigrate PRO Synch-Service" |
--queuehandling |
Process queue once (no listener loop) | Trigger one-time queue processing without daemon |
--buildmapping |
Build mappings & apply BC configuration | Apply config changes from local DB to BC |
--editmapping |
Open mapping editor GUI mode | Starts desktop editor for mapping/configuration maintenance |
--ledgercutoff |
Open standalone Ledger Cutoff GUI | All cutoff, opening balance, open item, offset, evidence and cutover decision tabs; no longer in mapping editor navigation |
7. Practical Sample Commands
Demo Mode: Complete Local Demo Environment in One Run
DataMigratePro.exe --demoEnglish: Finds a local SQL Server (or installs SQL Server Express LocalDB), restores the demo-ready NAV database DMP_Demo with the finished mapping, prepares a demo company in the managed demo sandbox, writes settings.json and activates the registration. Nothing is transferred; continue with -t testconnection, --editmapping or -t putalldata. Options: --yes, --gui, --instance <DataSource>, --company <Name>, --refresh. See DataMigratePro-Demo-Mode.md.
Deutsch: Richtet in einem Lauf eine komplette lokale Demo-Umgebung ein (SQL-Engine, Demo-Datenbank mit fertigem Mapping, Demo-Mandant, settings.json, Registrierung). Es werden keine Daten uebertragen.
Quick Start: Single Table with Auto-Mapping
DataMigratePro.exe -t putdata `
-s 18 `
-i "SELECT * FROM [CRONUS$Customer]" English: Migrate Customer table (ID 18) using automatic field mapping detection.
Deutsch: Kundentabelle migrieren mit automatischer Feldmapping-Erkennung.
Test Run: Validate Mapping Without Full Transfer
DataMigratePro.exe -t putdata `
-s 18 `
-m mapping\Customer.mapping.json `
-i "SELECT TOP 100 * FROM [CRONUS$Customer]" `
--testrunUse Case: Check mapping and BC endpoint before running full volume.
Full Table Group Migration: All Master Data
DataMigratePro.exe -t putalldata `
--tablegroup "1,2" `
--changesonly 0English: Transfer all tables in groups 1–2 (master data) with full export.
Deutsch: Vollständiger Transfer aller Mastertabellen (Gruppen 1–2).
Delta Migration: Only Changed Records
DataMigratePro.exe -t putalldata `
--tablegroup "1,2,3,4" `
--changesonly 1English: Send only new/updated/deleted records for a repeatable sync cycle.
Deutsch: Nur Änderungen seit dem letzten Durchlauf synchronisieren.
JSON Input: Migrate from Pre-Generated Chunks
DataMigratePro.exe -t putdata `
-s 347 `
-m mapping\Dimension.mapping.json `
-f json `
-i in\chunks\English: Read JSON chunk files from directory and send to BC (streaming).
Deutsch: JSON-Chunk-Dateien aus Verzeichnis lesen und zu BC übertragen.
Generate Output Files (No BC Send)
CSV Output:
DataMigratePro.exe -t putdata `
-s 18 `
-m mapping\Customer.mapping.json `
-i "SELECT * FROM [CRONUS$Customer]" `
-o out\customer_export.csv `
-f csvExcel Output:
DataMigratePro.exe -t putdata `
-s 18 `
-m mapping\Customer.mapping.json `
-i "SELECT * FROM [CRONUS$Customer]" `
-o out\customer_export.xlsx `
-f xlsEnglish: Export data to CSV or Excel without sending to BC (review/audit step).
Deutsch: Daten exportieren zur Überprüfung vor BC-Upload.
Configuration Export/Import Workflows
Export BC Configuration to Local ZIP:
DataMigratePro.exe -t loadconfiguration `
-o configuration_backup.zipImport ZIP to BC:
DataMigratePro.exe -t saveconfiguration `
-i configuration_backup.zipEnglish: Use for configuration version control and migration environment replication.
Deutsch: Konfiguration sichern und auf andere Umgebungen übertragen.
Advanced: Range-Filtered Migration
Migrate only records with Entry No. between 1 and 100,000:
DataMigratePro.exe -t putdata `
-s 18 `
-m mapping\Customer.mapping.json `
-i "SELECT * FROM [CRONUS$Customer]" `
-r 1..100000Use Case: Staged migration of large tables in smaller batches to manage memory/API load.
Advanced: Table Group Filter by Range
Process only tables 5 through 10, excluding table 7:
DataMigratePro.exe -t putalldata `
-r "5..10&<>7" `
--automapping `
--changesonly 1English: Business Central filter syntax for precise table selection.
Deutsch: BC-Filtersyntax unterstützt komplexe Bereichs- und Ausschlusslogik.
Monitor Performance: Benchmark Mode
DataMigratePro.exe -t putalldata `
--tablegroup "1,2" `
--benchmark `
--benchmarkmode "full-run-20260408"Output: JSON metrics in logs/perf/<runId>.json → analyze throughput, latency, row counts.
Open Mapping Editor GUI
DataMigratePro.exe --editmappingEnglish: Starts the dedicated mapping editor UI for migration tables, destination tables, value mappings, and configuration.
Deutsch: Startet die dedizierte Mapping-Editor-Oberflaeche fuer Migrationstabellen, Zieltabellen, Value Mappings und Konfiguration.
Notes:
--editmappingis a root startup mode and works without-t.- Without this switch, existing CLI/listener/service behavior stays unchanged.
- If required data sources are unavailable, the editor surfaces the problem and blocks invalid edits.
8. Edge Cases & Validation
Missing Source Table ID
Error: Most tasks require -s (source table number).
Fix: Supply -s <TableNo> before running.
# ❌ Wrong: Missing -s
DataMigratePro.exe -t putdata -i "SELECT ..." -m mapping.json
# ✅ Correct: Include -s
DataMigratePro.exe -t putdata -s 18 -i "SELECT ..." -m mapping.jsonIncorrect Mapping Path
Error: "Mapping file not found" or null reference during transfer.
Fix: Verify file exists and path is correctly quoted (especially paths with spaces).
# ❌ Wrong: Path with spaces, no quotes
DataMigratePro.exe -t putdata -s 18 -m my mapping\file.json
# ✅ Correct: Quoted path
DataMigratePro.exe -t putdata -s 18 -m "my mapping\file.json"Service Installation Boundary
DataMigrate Pro can run through the Windows service host when started in non-interactive contexts. For unattended schedules, prefer installing a dedicated service with the required task arguments and trigger it from Task Scheduler.
# ✅ Recommended for unattended scheduling: install dedicated service and trigger it via Task Scheduler
DataMigratePro.exe --install "DataMigratePro-PutAllData-Delta" -t putalldata --tablegroup "1,2,3,4,5" --changesonly 1
# ✅ Listener scenario: install continuous listener service
DataMigratePro.exe -t listen --install "DataMigrate PRO Sync"9. Common Troubleshooting Map
| Symptom | Likely Cause | Quick Fix |
|---|---|---|
| Connection refused | BC endpoint unreachable or wrong URL | Verify -w parameter and network connectivity |
| OAuth fails (SaaS) | Invalid --tenantid, --clientid, --clientsecret |
Re-check Azure AD app in BC tenant; confirm secrets are current |
| Service stops immediately | ServiceBus not configured or unreachable | Check ServiceBus section in settings.json; verify namespace/connection string |
| No queue processing | Queue names wrong or permissions insufficient | Verify queue names in settings; check Azure RBAC roles |
| Timeout during putdata | SQL query too large or BC endpoint slow | Increase --sqlcommandtimeout or HttpClientTimeoutSeconds in settings.json |
| Unmapped fields | Mapping file incomplete or wrong structure | Run --testrun first to validate mapping; check JSON syntax |
10. Next Steps
- For your first migration: Start with the quick-start single-table command in §7, using
--testrunto validate before full run. - For repeated syncs: Adopt delta mode (
--changesonly 1) and full table groups . - For production service: Install as Windows Service (
-t listen --install) with Service Bus configuration. - For detailed configuration: See
docs/settings.json.mdfor all persistence and timeout semantics. - For scenario-based examples: See
docs/DataMigratePro-CLI-Szenarien.md(German, comprehensive workflow guides). - For advanced switches and buildmapping entry points: See
docs/DataMigratePro-Parameters-Extended-Switches.md. - For Windows Task Scheduler setup (DE+EN): See
docs/DataMigratePro-TaskScheduler.md.
Quick Reference Cheat Sheet
| Goal | Command Pattern |
|---|---|
| Single table test | DataMigratePro -t putdata -s <ID> -i "SELECT ..." -m mapping.json --testrun |
| Single table full | DataMigratePro -t putdata -s <ID> -i "SELECT ..." -m mapping.json |
| All master data | DataMigratePro -t putalldata --tablegroup "1,2" |
| Delta sync | DataMigratePro -t putalldata --tablegroup "1,2" --changesonly 1 |
| Export to file | DataMigratePro -t putdata -s <ID> -i "SELECT ..." -o output.csv -f csv |
| BC to SQL read | DataMigratePro -t getdata -s <ID> -n [Company$Table] |
| Install sync service | DataMigratePro -t listen --install "ServiceName" --registration <KEY> --tenantid <ID> |
Version 2026-04 | Bilingual Reference | For DataMigrate Pro ≥ v2026.02
IO Integrated GmbH & Co. KG
Experts in Business Central Migration & Data Integration
Contact:
- Email: kontakt@ioi.gmbh
- Phone: +49 (0)214 8402 3000
- Web: https://ioi.gmbh/
This document is the property of IO Integrated GmbH & Co. KG and intended for authorized use only.