How a Spreadsheet's Auto-Formatting Silently Corrupted 63 Contractor Payments
A fintech platform discovered that 63 out of 1,847 contractor payments were rejected by banks after a routine CSV file was opened and resaved in a spreadsheet application, which silently stripped leading zeros from routing numbers. The corruption occurred because Excel and Google Sheets apply type inference to numeric-looking cells, converting a valid 9-digit routing number like 021000021 into the invalid 8-digit integer 21000021. More dangerously, the team noted that locale-based amount formatting can alter payment values in ways that pass all validation checks and fail silently. To prevent such issues, the team now parses CSV files as raw strings with no type coercion, validates field length and format before any arithmetic checks, and rejects entire files rather than individual rows when structural data errors are detected. The incident highlights a broader risk in financial data pipelines where spreadsheet-mediated file handling can introduce undetectable corruption before any validation logic even runs.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in