Executive Summary
A CSV file is not a data contract. It is a snapshot, unversioned and unacknowledged, that leaves the sender's control the moment it is attached to an email or dropped on an FTP server. Every wholesaler still relies on this mechanism somewhere in its network, and the reason is not incompetence, it is that nothing else has zero marginal cost to adopt. The reason it keeps failing at scale is that the properties a distribution network actually needs, schema enforcement, delivery proof, idempotent replay, delta semantics, back-pressure, are precisely the properties a flat file cannot express.
This paper sets out why file-based distribution persists despite three decades of alternatives, catalogues the specific failure modes that appear once a network exceeds a handful of trading accounts, and states what a versioned interface contract replaces file exchange with. It draws on the CSV specification itself [1], peer-reviewed measurement of spreadsheet auto-conversion error rates [2], published data-quality cost research [3], and the EDI and GS1 standards built explicitly to solve the problems this paper describes [4, 5, 6].
- of genomics papers with supplementary Excel gene lists contained at least one auto-converted identifier
- ~20% Ziemann, Eren & El-Osta, Genome Biology, 2016 [2]
- estimated annual cost of poor-quality data to the US economy
- $3.1tn Redman, Harvard Business Review, 2016 [3]
- the year the ANSI X12 850 purchase order transaction set the industry still runs on was already mature
- 1996 X12.org [4]
Why File-Based Distribution Persists
File exchange survives because it satisfies three conditions that any replacement has to beat simultaneously, and few do. The barrier to entry is effectively zero: every spreadsheet application, every ERP export function and every point-of-sale system can produce a delimited file without a single line of integration code. The tooling is universal: a dealer's back office does not need to know anything about the wholesaler's systems to open the file, because the format itself, comma-separated values, has been documented as an informational Internet standard since 2005 [1]. And the coordination cost is nominal: sending a file requires no shared schema registry, no mutual authentication beyond an inbox, and no agreement on versioning, because the file is self-contained and disposable.
Those three properties are also why file exchange never disappears from a network's tail. A wholesaler with 40 storefronts will rationally digitise the top ten with EDI or an API and leave the remaining 30 on file export, because the incremental cost of onboarding a low-volume account to a structured interface is not recovered by that account's volume. The result is not a failure to modernise; it is a correctly made economic decision applied to every account, repeated until the network is mostly still running on files even after a decade of platform investment at the centre.
The asymmetry that makes it look free
The cost of producing a CSV is visible and borne once, by the sender, at export time. The cost of consuming it correctly is invisible, recurring, and borne by every recipient, on every delivery, for as long as the relationship lasts. That asymmetry is why file exchange is chosen repeatedly even by organisations that already know its failure modes: the party who decides to send another CSV is rarely the party who has to reconcile what it broke.
No Schema Contract
RFC 4180 defines how fields and records inside a CSV file are delimited; it defines nothing about what the fields mean, what type they hold, whether a column is mandatory, or what happens when a new column is added [1]. A CSV file is not accompanied by a schema, and there is no standard mechanism by which a sender can declare one or a receiver can validate against one. Every consuming system therefore encodes its assumptions about column order, header spelling and data type into bespoke parsing code, invisibly, per account.
The consequence is that a schema change is never detected at the point it is made. It is detected downstream, if at all, when a parser throws an exception, silently drops a column it does not recognise, or, worse, silently maps a repositioned column into the wrong field. Structured interchange standards exist specifically to close this gap: ANSI X12 and UN/EDIFACT transaction sets define fixed segment structures with mandatory and conditional elements enforced by the exchange itself [4], and GS1's Global Data Synchronisation Network defines attribute-level data models so that a receiving system validates against a shared definition rather than a sender's private convention [5, 6]. A CSV column named `qty` has none of that; it means whatever the last person who wrote the export script decided it meant.
No Idempotency, No Delta Semantics
A file is a full statement of a moment, or it is a partial statement of a moment, and from the file alone, the receiver cannot tell which. If the same price file is delivered twice, because a scheduler retried after a timeout or because someone re-ran an export by hand, nothing in the file says so. Modern API design solves this with an idempotency key: a client-supplied identifier that lets the receiving system recognise and discard a duplicate delivery instead of reapplying it [7, 8]. A CSV carries no such identifier and no delivery-sequence number, so duplicate delivery and delta delivery are structurally indistinguishable from a fresh full load.
This matters most in inventory and price files sent as deltas to reduce size. A delta file assumes the receiver's prior state exactly matches the sender's, at the moment the delta was generated. If one delivery is lost, corrupted, or applied out of order (all of which are unremarkable events over email and FTP, which offer no delivery guarantee at the transport level [9]) every subsequent delta compounds against a state that has silently diverged from the sender's, and nothing in the mechanism surfaces the divergence. The network only discovers it when a customer is quoted a price or stock position that has been wrong for an unknown number of cycles.
Silent Truncation and Type Coercion
The best-documented instance of this failure class is not from distribution at all, but it is the clearest public evidence of the mechanism. Ziemann, Eren and El-Osta scanned 35,175 supplementary files across leading genomics journals and found that approximately one-fifth of papers publishing gene lists as Excel spreadsheets contained gene identifiers that had been silently converted to dates or floating-point numbers by the spreadsheet's default auto-formatting, for example the gene SEPT2 becoming 2-Sep, with no error, warning or visible flag at the point of conversion [2]. The paper's finding generalises directly to distribution: any alphanumeric identifier that resembles a date, a scientific-notation number, or a value with a leading zero is a candidate for the same silent rewrite the moment it passes through a spreadsheet application with default settings.
Wholesalers hit the identical mechanism on part numbers, SKUs and order references. A part number of `03-1500` opened in a spreadsheet with default cell formatting can be read as a subtraction and displayed as `-1497`; a part number of `1E23` can be read as scientific notation; a twelve-digit barcode typed or pasted into a general-purpose cell can be rounded once it exceeds the fifteen-significant-digit floating-point precision most spreadsheet engines use internally. None of these conversions raise an exception. They produce a file that opens correctly, looks correct, and contains a wrong value that downstream systems will act on as authoritative.
- Leading zeros dropped from part numbers, unit codes and postcodes when a column is not explicitly typed as text
- Long numeric identifiers (barcodes, serials) rounded once they exceed floating-point precision
- Alphanumeric codes resembling dates reformatted to a locale-specific date and re-serialised in a different format on save [2]
- Trailing rows or columns silently dropped when a file exceeds an older application's row or column limit
- Decimal and thousands separators misread when sender and receiver locales disagree, turning 1.234 into either one or one thousand two hundred thirty-four
Encoding, Delimiter and Locale Failures
RFC 4180 does not mandate a character encoding, and in practice CSV files circulate in a mixture of UTF-8, UTF-8 with a byte-order mark, and legacy code pages such as Windows-1252, often without any declaration of which is in use [1]. A receiving parser that assumes the wrong encoding does not fail outright; it substitutes visually similar but incorrect characters for anything outside plain ASCII, a defect commonly called mojibake, which is largely invisible in Latin-alphabet product names and catastrophic in names containing accented characters, non-Latin scripts, or currency and trademark symbols.
The delimiter carries the same silent-failure risk. A comma-delimited file exported from a system in a locale where the comma is the decimal separator routinely uses a semicolon as the field delimiter instead, and a file merging both conventions without escaping will misalign columns from the first embedded comma or semicolon onward, corrupting every field after it in that record while producing no parse error, because the file remains syntactically valid CSV [1]. Date fields compound this: ISO 8601 exists specifically to remove the ambiguity between day-first and month-first numeric dates [10], but the majority of CSV exports still emit locale-formatted dates, so `03/04/2025` is read as 3 April by one system and 4 March by another, with both readings syntactically valid and only one factually correct.
No Delivery Guarantee, No Audit Trail, No Back-Pressure
Email and FTP, the two dominant transports for file exchange, offer no confirmed-delivery contract to the sender: email delivery can fail, queue, or be silently filtered by spam controls with no notification to either party, and FTP has no built-in mechanism for a receiver to acknowledge that a file was received intact and processed successfully [9]. Structured messaging protocols solve this with explicit functional acknowledgements, an EDI 997 or a webhook's HTTP 200 response, that create a record independent of the payload itself [4, 8]. A CSV attached to an email creates no equivalent record; the only evidence it was received is what the recipient chooses to report back, informally, if anything goes wrong.
The absence of an audit trail compounds this. When a price discrepancy is found three weeks after the fact, resolving it requires reconstructing which file was sent, when, to whom, in what version, and whether it was actually opened and applied, information that exists, if at all, scattered across sent-item folders and individual recipients' recollections rather than in a queryable log. And file exchange has no back-pressure mechanism: the Reactive Streams initiative defines back-pressure as a receiver's ability to signal a sender to slow down when it cannot keep up with volume [11], a property absent from a batch file drop by construction, since the sender has no channel through which the receiver could ever say so. A wholesaler pushing a full catalogue refresh to a storefront running on manual re-keying does not know, and cannot know from the file mechanism, that the storefront is now three files behind.
A file that arrives is not the same claim as a file that was received, validated, applied and confirmed. CSV exchange only ever proves the first.
Failure Modes at a Glance
The table below groups the failure modes described above by how they present operationally and how hard each is to detect before it causes a downstream error. Detection difficulty is rated against the honest baseline most networks currently run: no automated schema validation, no checksum comparison and no acknowledgement record.
| Failure mode | Typical trigger | Detection difficulty | Usual point of discovery |
|---|---|---|---|
| Silent schema drift | Column added, removed or reordered without notice | High, no schema to validate against [1] | Wrong field populated downstream, found by a human |
| Identifier auto-conversion | Part number or code opened in spreadsheet with default formatting | High, file opens and looks valid [2] | Order placed against a wrong or non-existent SKU |
| Duplicate or replayed delivery | Retry after timeout, manual re-send | Medium, visible if volumes are checked, otherwise silent [7] | Stock or price double-applied |
| Delta drift | One delta in a sequence lost or misapplied | High, compounds invisibly across cycles | State found wrong after an unknown number of cycles |
| Encoding corruption | Encoding mismatch between export and import locale | Low to medium, visible in non-ASCII text, invisible otherwise [1] | Product name or description garbled in the storefront |
| Delimiter or locale collision | Embedded comma/semicolon, decimal separator mismatch | High, remains syntactically valid CSV [1] | Downstream fields shifted or wrong, no parse error |
| Silent truncation | File exceeds row, column or size limit of receiving tool | Medium, row counts can be checked but rarely are | Tail of catalogue or price list missing |
| Non-delivery | Transport failure, spam filtering, wrong address | High, no acknowledgement channel exists [9] | Account found still trading on stale data |
| No audit trail | No structural cause; absence of a record by design | N/A, the record itself does not exist | Dispute resolution takes days instead of minutes |
| No back-pressure | Sender's cadence exceeds receiver's processing capacity | Medium, visible only if receiver reports a backlog | Receiver found to be several cycles behind |
What a Versioned Interface Contract Replaces
None of the failure modes above are solved by sending files more carefully, more often, or in a better spreadsheet template. They are solved by replacing the file as the unit of interchange with a versioned interface contract, a machine-checkable schema, a delivery protocol with acknowledgement, and an identity scheme for records that survives retransmission. This is not a novel proposal; it is what EDI and GS1 standards were built to provide, and what API idempotency keys and reactive back-pressure protocols provide in the web-service world [4, 5, 6, 7, 11]. The distinguishing shift is not the transport, it is the enforceability: a contract rejects a non-conforming payload at the boundary, where a file simply accepts it.
Typed, versioned schema
Every field carries a declared type, an optionality flag and a schema version, checked at the point of exchange rather than inferred by a downstream parser [1, 4, 5].
Idempotent, identified records
Every transmitted record carries a stable identifier and revision number, so a duplicate or replayed delivery is detected and discarded rather than reapplied [7, 8].
Explicit delta and full-state semantics
The interface declares, per delivery, whether it represents a full state or a delta against a specific prior version, removing the assumption that receiver and sender state already agree.
Delivery and processing acknowledgement
Every delivery produces a machine-readable receipt recording arrival, validation outcome and application status, creating the audit trail file exchange cannot [4, 9].
Back-pressure and rate signalling
The receiver can signal capacity to the sender, so publication cadence adapts to what the network can actually absorb instead of assuming unlimited downstream throughput [11].
This shift does not eliminate the need for file export entirely, some accounts will remain too small to justify a structured integration, and a well-formed CSV generated from a validated, versioned source of truth is a legitimate output format for that tail. What changes is where the authority sits: the contract enforces correctness once, centrally, before anything is exported, rather than delegating correctness to whichever spreadsheet application happens to open the file next.
Conclusion
File-based distribution persists because it has no visible cost to the sender and no barrier to the receiver, and both of those properties are real advantages that a replacement has to earn its way past rather than assume away. But the same properties are what strip the file of the guarantees a distribution network actually depends on: a checkable schema, a stable identity for every record, a distinction between full state and delta, a transport that proves delivery, a log that survives a dispute, and a receiver that can say slow down. None of these are exotic requirements. They are what EDI, GS1 and modern API design already provide, and what a flat file, by construction, cannot [1, 4, 5, 7, 11].
The question for a wholesaler is not whether to stop sending files, the tail of any network will keep receiving them for years. The question is whether the file is the authoritative record or merely one rendering of a contract that is validated, versioned and acknowledged somewhere else. Networks that can answer that question find their wrong-price incidents, stock disputes and reconciliation effort concentrated almost entirely in the accounts where the file is still the record of truth.
References
This paper concerns file-based interchange between upstream organisations and their dealer, retailer and storefront networks, the practice of moving price, availability, product and order data as CSV, XLSX or fixed-width exports over email, FTP or shared drives. Claims about format behaviour (RFC 4180, spreadsheet auto-conversion, encoding) are drawn from primary technical specifications and peer-reviewed measurement studies and are reproduced as published. Claims about cost are cited to their original source and not extrapolated beyond the population each study measured. Where a failure mode is well known in engineering practice but not separately quantified in public literature, it is described as a mechanism rather than assigned a figure.
- RFC 4180, Common Format and MIME Type for Comma-Separated Values (CSV) Files
IETF / Y. Shafranovich (2005)
- Gene name errors are widespread in the scientific literature
Ziemann, M., Eren, Y. and El-Osta, A. (2016). Genome Biology, vol. 17, article 177, measured spreadsheet auto-conversion error rate across 35,175 supplementary files.
- Bad Data Costs the U.S. $3 Trillion Per Year
Redman, T. C. / Harvard Business Review (2016)
- Example 01: Basic Purchase Order (Transaction Set 850)
X12 (current edition)
- GS1 Global Data Synchronisation Network (GS1 GDSN) Standards
GS1 (2026)
- GS1 Global Data Model and Attribute Definitions for Business
GS1 (current edition)
- Designing robust and predictable APIs with idempotency
Stripe (2017)
- Idempotent requests, API Reference
Stripe (current edition)
- RFC 5321, Simple Mail Transfer Protocol
IETF (2008). SMTP's store-and-forward model provides best-effort relay with no guaranteed, acknowledged end-to-end delivery to the receiving application.
- ISO 8601, Date and Time Format
International Organization for Standardization (current edition)
- Reactive Streams, a standard for asynchronous stream processing with non-blocking back pressure
Reactive Streams Special Interest Group (2015)
- Date formats
W3C Internationalization (current edition). Documents the locale ambiguity between MM/DD and DD/MM numeric date formats referenced in the encoding and locale section.