Planning CSV file compatibility between business systems
Agree delimiters, character encoding and field types before exchanging CSV data.
Agree the file format
Record the delimiter, character encoding, header names and date formats expected by both systems. A file named CSV does not by itself establish all these choices. Test names with accented characters and dates that could be interpreted in more than one order.
Handle quoted values
A field can contain a delimiter or a line break when the agreed format supports quoting. Use a suitable CSV parser rather than splitting every line on a comma. Check how the receiving system handles quotes and embedded newlines before relying on the transfer.
Preserve identifiers
Agree which columns are text rather than numbers. An account reference such as 00127 can lose its leading zero if a tool infers a numeric type; Microsoft notes that Power Query’s type inference should be checked before loading.
Test the handoff
Use fictional records to test a comma inside a name, an accented character, an empty field and a reference with leading zeros. Compare the original and imported values and review spreadsheet formula-injection handling if users will open untrusted exports. Keep live customer data out of the test.