Fix the thing that writes the data
- Systems thinking
- Root cause analysis
- Data pipelines
- RevOps
The quickest way to fix a wrong value is to change the value. Open the table, correct the row, done. It feels responsible. In a system with any automation in it, it’s often wasted work, because something else is going to write that row again.
In early November I learned this four times in about a week, in four different tools.
Four ways a fix got undone
The sync that put it back. A table in Supabase was filled by a sync script that upserts rows on a stable key. We corrected some rows with SQL. The next sync ran, matched the same keys, and wrote the old values straight back. Our fix lasted until the next scheduled run.
The workflow upstream of the sheet. An n8n workflow drafted note text from a brief stored in a shared drive, then wrote it into a sheet. We fixed the note in the sheet. The workflow regenerated it from the brief. The fix had to start at the brief, two steps upstream of where we saw the problem.
The formula column that wasn’t following its formula. In Clay, a cell can be overwritten by hand and keep that value even in a column driven by a formula. The column looked automatic. Some of its cells weren’t. We’d been “fixing the formula” for cells that ignored it.
The repair step that deleted the wrong thing. A repair step in one tool deleted whichever note the row held in the CRM. Run it in the wrong order and it removed the good note, not the bad one. The data was fine; the sequence of writers wasn’t.
Same lesson each time. The row is a symptom. The writer is the cause.
The rule now
Before editing a value, find what writes it and fix that first. Every data fix changes the code that writes the data, as well as the rows.
Two habits came out of it:
- Ask “what writes this?” before touching anything. If the answer is a sync, a workflow, an enrichment or a formula, the fix goes there. Then re-run it and check the row comes out right on its own.
- Read how a value got there, not just the value. In Clay that means checking whether a cell was overwritten by hand. In a database it means knowing which job last wrote the row.
Where we could, we made the writer refuse bad input outright. For example, the loader for one dataset now rejects any brief that names a person. That means a name we removed can’t come back with the next run, whoever runs it.
Why this is easy to miss
A hand fix works when you check it. That’s what makes it dangerous. You look at the row, it’s right, you move on. The failure only shows up after the next sync, usually when someone else is looking, and by then nobody connects it to the fix that “already happened”.
This is systems thinking at its plainest. In operations, the bad row is the symptom and the thing that writes it is the system.
If you work with automated data, a fix isn’t done when the row looks right. It’s done when the next run, left alone, writes the right value.