File-Based Fallback Integrations: When a CSV Drop Is the Honest Answer
A file-based fallback integration moves data between two systems as a file, most often a CSV (comma-separated values) file dropped in an agreed place on an agreed schedule, instead of as a live call between the two systems. It is the oldest shape of integration there is, and for a certain kind of legacy system it is not a compromise. It is the only design that matches what the other system can actually do.
The error that starts this: the API that will never exist
The project usually starts with an assumption: the legacy system will expose an API, or a vendor update will add one, or a middleware product will bridge the gap. Then the error arrives, not a code on a screen, but a sentence in a meeting: there is no API, there is no roadmap for one, and the system still holds data the business needs every day. Every month spent waiting for the interface that will never exist is a month of re-keying, emailed spreadsheets, and numbers nobody can reconcile.
A CSV drop ends that wait. The legacy system exports a file; the file is imported; the data moves. The honesty is in admitting the constraint and designing properly inside it, instead of running an unofficial spreadsheet process while calling it temporary. Temporary processes have no error handling. Designed file integrations do.
The decision: five tests a file drop must pass
A file is the honest answer only when the work fits batch timing. Verify the fit against five tests before building anything:
- Timing tolerance. The data can be as old as the interval between drops without misleading anyone. Documented CSV import tooling for Business Central can run manually or on a schedule as frequent as once per minute, frequency is rarely the real limit; whether the business can act on slightly-old data is.
- Stable production. The source system can produce the same file, in the same format, every cycle, without a person editing it first.
- Error tolerance. A rejected record can wait for the next cycle or a same-day correction, instead of blocking a live transaction.
- Volume fit. The file stays a size a person can inspect when something looks wrong, the format’s debuggability is its main advantage, and huge files spend it.
- An owner exists. Someone is named to watch the import log and the reconciliation count. A file drop with no owner is a black hole with a schedule.
Fail two or more tests and the file is no longer the honest answer, it is a delay tactic, and the real project is replacing the connection, not decorating it.
Format as contract: columns, encoding, and naming
Treat the file layout as a contract between two systems, versioned and written down: the column order, the header row, the encoding, the file naming pattern, and the drop location. Automated replication to delimited files can be configured with a destination folder and column headers, which is exactly the level the contract should be specified at, folder, headers, and order fixed in configuration, not renegotiated per file.
Know which shapes the receiving side accepts before freezing the contract. The documented import-template route for Business Central supports Excel, CSV, and fixed-length files, initiated from the journal or document page, and a single file or multiple files in a ZIP archive can be imported. That range matters for one practical reason: if the legacy system’s natural export is fixed-length rather than CSV, the contract can accept its native shape instead of adding a conversion step that exists only to fail quietly.
Any change to columns, order, or naming is a contract change: agreed, dated, and applied to both sides in the same cycle. The classic file-integration failure, a column added at the source in March, discovered in June, is a contract kept by only one party.
Mapping and upsert rules that survive a re-drop
Files get dropped twice. A schedule retries, a person re-sends, a corrected file replaces a bad one. The import design has to make a re-drop boring:
- Write the mapping down. Mapping rules map the external data to Business Central entities; record, per column, which entity and field it lands in. Documented import tooling can apply mapping, lookup, and expression transformations without preparing or modifying the CSV beforehand, which makes the configured mapping, not the file, the thing to review.
- Choose the operation per record type. INSERT, UPDATE, DELETE, and UPSERT are the supported operations in the documented tooling. Default to UPSERT keyed on a stable identifier from the source, so a re-drop updates the records it already created instead of duplicating them.
- Import through one route only. Either the template route from the journal or document page, or the scheduled tooling, never both for the same data, or the two routes will eventually disagree about which file was authoritative.
- Read the per-record result. The documented tooling keeps per-record logs and sends email error notifications; treat both as part of the design, configured on day one, not as diagnostics to discover later.
What success looks like: the same file, dropped a second time, changes nothing, record counts hold, no duplicates appear, and the log shows updates against existing records rather than a fresh set of inserts.
Errors, reconciliation, and the daily count that must tie
The difference between a fallback and a black hole is what happens to the records that fail. Every cycle ends in three numbers: rows in the file, rows applied, rows rejected with a reason. The first must equal the sum of the other two. A cycle that cannot produce those numbers has not finished, however green its status indicator looks.
Rejected rows go back out as an error file, the same identifiers, the reason per record, to the owner named in the decision tests. Corrections are made at the source and arrive in a later file; nobody hand-edits the target records to make the count tie, because a hand-edit is next month’s unexplained difference. One operational note for the tooling route: the Business Central connection in the documented replication setup authenticates with OAuth by default, so credential expiry belongs on the same watch list as the file schedule, an expired connection fails silently in exactly the way a missing file does.
When to retire the file: the exit criteria
A well-built file integration carries its own retirement conditions. Retire it when the source system gains a real interface and the five tests flip; when volume or timing outgrows batch and the data’s staleness starts costing money; when the rejected-row rate stays chronic instead of spiking and clearing; or when the reconciliation count stops being checked, the surest sign the organisation has stopped believing its own numbers.
Until one of those lands, the file is not an embarrassment to hide from the architecture diagram. It is a contract, fixed format, written mapping, upsert rules, per-record errors, and a daily count that ties, doing honestly the job the missing API was never going to do.
, Dex Carter, Tech Writer
Keep readingNext: Data Exchange Definitions: Importing Bank and Carrier Files Without Custom Code →