The connector nobody documented
Notes from integrating a housing management system whose API turned out to be a nightly fixed-width file drop, and why that was an acceptable outcome.
On this page
The statement of work said “integrate with the housing management system via its documented API”. The API existed. It covered eleven of the forty-three fields we needed, was rate limited to sixty calls a minute, and had last been updated in 2011.
What the system did have was a nightly batch export: a fixed-width text file, 340 characters per line, dropped onto an SFTP server at some point between 01:00 and 04:00. That became the integration.
Why we stopped chasing the API
We spent about a week trying to make the API work, and the decision to abandon it came down to arithmetic. At sixty calls a minute, a full sync of 12,000 tenancies with related contacts and charges was going to take just under nine hours, and the endpoint returned a 500 roughly once every four hundred calls with no way to resume mid-page.
The nightly file contained every field we needed and arrived in one piece. It was less elegant and considerably more reliable. We wrote that trade-off down in a one-page note and had the client sign it, which mattered later when someone new asked why we were not using the API.
The spec was wrong in two places
We were given a field layout document dated 2003. It was mostly accurate, which is the dangerous kind of wrong.
- Two columns had been swapped in a 2014 upgrade. The document still had the old order, and both fields were numeric and similar in range, so nothing crashed. The error was only visible because arrears totals disagreed with the finance ledger by a consistent factor.
- One date field was documented as
YYYYMMDDand was actually Julian,YYYYDDD, right-padded with a space. It parsed without error for the first nine days of any month and produced nonsense thereafter.
# What the layout document promised
# 041-048 TENANCY_START YYYYMMDD
# What actually arrived
# 20260710 -> 10 July 2026 valid under both readings
# 2026193 -> day 193 of 2026 = 12 July, and the field is now 7 charsNeither of these was in the document. Both were found by reconciling totals against a system the client already trusted. We now treat that reconciliation as the first deliverable of any connector, before a line of transformation logic is written.
Nulls that were not null
The file used three conventions for a missing value, depending on which decade the field had been added in: spaces for text, zeros for numerics, and the literal string NULL in two columns added after 2009. A zero rent charge and a missing rent charge were indistinguishable.
We resolved this by refusing to guess. Where the convention was ambiguous the parser emits the raw value into a quarantine column and flags the row. Someone on the client side looked at 200 quarantined rows and told us which convention applied to each field. That took her an afternoon and would have taken us a fortnight of inference.
When the data is ambiguous, the fastest path is usually a person who has worked there for eleven years, not a cleverer heuristic.
Making failure loud
A nightly file that arrives between 01:00 and 04:00 fails in a specific way: it does not arrive, and nothing tells you. The first version of this pipeline ran at 05:00 and cheerfully reprocessed yesterday’s file when today’s was late, producing a warehouse that was silently 24 hours stale.
- Check the file modification time against expectation and fail loudly if it predates the run window.
- Assert on row count against a rolling median. A 12,000-line file arriving with 400 lines is a truncated transfer, not a quiet week.
- Record a checksum of every file processed, so a re-drop of the same file is detected rather than double loaded.
- Publish a freshness timestamp that every downstream dashboard displays. Users notice a stale date faster than any alert we could configure.
Why this was fine
There is an instinct to treat a nightly flat file as debt to be replaced with something modern. Sometimes that is right. Here it was not, and it is worth being clear about why.
The client’s reporting needs were daily. Nobody was making a decision that required tenancy data fresher than the previous night. A real-time integration would have cost four times as much to build, added a dependency on a rate-limited endpoint with a 2011 changelog, and delivered no decision-relevant improvement.
Two years on, that connector is still running. It has needed one change, when a field widened by two characters. The parser failed loudly the first night, which is exactly what it was supposed to do.
Why your void loss figure disagrees with itself
Three teams, three definitions, one board pack. How we get an organisation to agree a metric without convening a six-month committee.
4 min read · 12 August 2026Stock condition models fail at the survey, not the algorithm
If a third of your survey records predate the last refurbishment, no amount of gradient boosting rescues the forecast. What to fix first, and how to prove it.
4 min read · 29 July 2026Recognise any of this?
Most of these notes exist because a client told us we had it wrong. If your situation looks similar, describe the symptom and we will tell you whether it is work we should take.