Why did my client's row count suddenly drop?
Veritaproof ยท
You open this week's export and it has 3,000 rows. It usually has around 5,000. Before you report a 40% fall in sales, it's worth finding out whether the business changed or the file did.
Here are the common causes, and how to tell them apart.
1. The export stopped early
Large exports sometimes stop partway through, because of a timeout, a size limit in the tool that produced them, or a file that was copied before it finished writing. The file looks normal; it just ends early.
How to tell: look at the last few rows. If the latest date is earlier than the end of the period, or the last row is cut off mid-line, the export didn't finish. Ask the client to run it again.
2. A filter or date range changed
Someone set up the export with a filter (one region, one store, active customers only) or changed the date range, often without realising it affects you.
How to tell: compare the mix of categories with the previous file. If one region or channel has vanished entirely while the rest look normal, it's almost certainly a filter. Check the earliest and latest dates, too.
3. The data was split across several files
Some systems split large exports into parts once they pass a size limit. You received part one.
How to tell: the rows that are there look complete and correct, but a whole range of IDs or dates is missing. Ask whether there are other files for the same period.
4. Rows were lost when the file was read
Sometimes the rows are in the file but your tool didn't read them. A stray quote mark, a line break inside a text field, or a change of delimiter (commas to semicolons) can make software skip or merge rows without an error.
How to tell: open the raw file in a text editor and compare its line count with the number of rows your tool loaded. If they differ, the problem is in the reading, not the data.
5. Duplicates were removed upstream
If previous exports contained duplicates and someone fixed that at the source, the row count drops, and the new number is the right one.
How to tell: totals that matter, such as revenue or unique customers, stay roughly the same while the row count falls. Ask the client whether anything changed in how the export is built.
6. The business really did change
Sometimes it's real: a store closed, a product was withdrawn, a campaign ended. That's worth reporting, but only once you've ruled out the five causes above.
What to ask the client
A vague "the numbers look off" usually gets a vague answer. Give the client something specific to check:
This week's file has 3,034 rows; the last eight weeks averaged about 5,100. The latest date in the file is 4 November, but the period runs to 9 November. Could the export have stopped early?
Specific questions get specific answers, and it shows the client you're checking their data carefully.
Catch it before you start
The best time to spot a row count drop is the moment the file arrives, not halfway through building the report. Keep a note of each recurring file's usual row count and compare every new file with it before you begin.
Veritaproof does this automatically: it works out each dataset's normal row count from its history and flags a file that falls outside it, with a finding like "Row count fell 40%, from about 5,086 to 3,034". It runs the same comparison for missing values, columns, date formats, categories and more. Everything runs on your own computer.