Spreadsheet Uploads Are a Door Into Your Software: Make Them Safe
One spreadsheet upload can overwrite good records. Five things a safe import in a custom app does, a note on safe exports, and a quick test to run.
Moving off spreadsheets doesn't stop spreadsheets from arriving. Suppliers send price lists, old customer lists need loading, and accountants ask for exports.
In a custom app, the upload screen is where that data gets in, and it's a door into your software. Built carelessly, it lets in data your normal forms would refuse, and it can quietly overwrite records that were correct.
Why imports are riskier than they look
Adding new records from a file is the easier case: a bad row becomes one bad record someone can fix. Updating existing records is riskier. Syntaqx's developer guide to imports and exports (updated Nov 3, 2026) puts it plainly: "'update' is where an import does damage: a column mapped to the wrong field overwrites good data on hundreds of records."
Here's an example, for illustration only. A price list is uploaded, and its cost column gets matched to the sale price field. Every product in the file now sells at cost, and nothing on the screen looked wrong.
Blank cells are a quieter version of the same problem. The same guide says an empty cell in an update should leave the existing value alone unless you chose otherwise, because "a sparse spreadsheet wipes everything it doesn't mention."
Five things a safe import does
It checks the whole file before saving anything
The guide says to validate the whole file before saving any of it, "so the report lists every problem at once," and adds: "Fixing one error per upload is the experience people remember." Each problem should name the row, the column, and the value that failed.
It shows a preview of what will change
Before anything is saved, the import should show how many rows will be new, changed, unchanged, or broken. The guide describes this step as a dry run, a trial pass that "does everything except write."
Counts aren't enough on their own. Ask for a sample of the updates with before-and-after values. If the preview shows sale prices about to drop to cost, you catch it before it happens. The confirm button should then apply exactly the plan you previewed.
It follows the same rules as your forms
If your order form refuses an email address with no domain, the upload should refuse it too. The guide is blunt: "An import that validates differently from the form is a back door for bad data."
It gives you back the rows to fix
Rejected rows shouldn't vanish into an error message. The guide recommends handing them back as a file: the original rows that failed, with their original columns, plus an extra column that explains each error. You fix them in the spreadsheet and upload only those rows.
It can undo a batch
Some mistakes only show up after the import, like loading the wrong month's file. The guide recommends marking every record an import touches with its batch and keeping the old value of every field it changes, so the whole batch can be reversed. The undo shouldn't erase later work: a field changed again after the import keeps its newer value.
A security note about exports
Files go out as well as in, including the error file above, and they carry a risk that's easy to miss. OWASP, a nonprofit community that publishes web security guidance, explains that when a spreadsheet program such as Microsoft Excel opens a CSV (comma-separated values) file, "any cells starting with = will be interpreted by the software as a formula." So if someone types a formula into a name or notes field in your app, and your app later exports that field to a CSV file, the spreadsheet may treat it as a live formula. OWASP lists hijacking the user's computer and pulling data out of the spreadsheet among the attacks this allows. This is called CSV injection, or formula injection.
The fix is your developer's job, and OWASP is candid that it's imperfect: "There is no universal CSV sanitization strategy that is safe for all spreadsheet applications and all downstream consumers." Ask whether your exports, error files included, are cleaned so user-typed text can't start a cell as a formula. For people who'll open an export in a spreadsheet, the Syntaqx guide prefers Excel-format files, with user-typed values saved as text cells, "which a spreadsheet won't evaluate."
What to ask your developer
Does the upload check the whole file before saving anything, and list every problem at once?
Will I see counts of new, changed, unchanged, and broken rows, with before-and-after samples, before I confirm?
Do failed rows come back as a file with a column explaining each error?
Do blank cells leave existing values alone unless I choose otherwise?
Can a whole import be undone, and for how long?
Are exports and error files protected against formula injection?
A 10-minute test with a messy file
Before you rely on an upload, try to break it. Make a small copy of a real file and spoil it on purpose:
a row with a required field left empty
a row with an email address that has no domain
a row that repeats a record already in the system
a blank cell in a column you're updating
a text cell that starts with an equals sign
Upload it to a test copy of your app if you have one, not your live data. A good result lists every problem at once with its row number, shows a preview before saving, keeps the old value where the cell was blank, returns the failed rows as a file, and exports the equals-sign text as plain text.
If the upload saves part of the file and stops at the first error, or changes records without showing you first, raise it with whoever maintains the app. One upload can change hundreds of records, so it deserves the same care as the rest of your software.
