← All articles

Public data & community

When an open data feed changes: keeping a useful service running

A changed field can produce a wrong answer while every system appears healthy. Work through detection, fallback and recovery with a hypothetical public-data service.

Conceptual studio illustration of an open glass data cube and an ordered path of data points.
Editorial illustration

A public-data service can look healthy while showing the wrong answer. The website loads, the feed downloads and the map displays its markers. Somewhere between the source and the screen, however, a changed field has altered what the service tells people.

I would treat that possibility as a product requirement from the beginning. Following my Open Data Conference reflections, this is one practical question worth pursuing: how does a useful service keep its promises when its inputs change?

A change that looks like a successful update

Consider a hypothetical directory of community facilities. Its publisher updates a dataset weekly, and the directory checks for changes each night. Visitors use it to find facilities and check accessibility information. This is a worked design example, not an account of a particular service.

The original feed includes wheelchair_access as a yes-or-no field. A new version replaces it with accessibility_status, whose documented values distinguish confirmed access, partial access and information awaiting confirmation.

The download still succeeds. But an importer that treats the missing old field as “no” could silently mark every facility as inaccessible. The important failure is the unsupported answer presented to the visitor.

Agree what the service expects

Before connecting the feed, I would record the required fields, their meanings, permitted values, update schedule and publisher contact. Keep the dataset’s licence and source address alongside that record. The W3C Data on the Web Best Practices provides guidance on metadata, provenance, quality and versioning that helps make those expectations explicit.

For a JSON feed, a schema can check required properties and allowed structures. The JSON Schema documentation explains that declaring a property does not make it required; required fields must be specified separately. That small distinction matters when a missing field would change an answer.

Structural validation has limits. A correctly shaped value can still be wrong or mean something different. I would also compare record counts, identifiers and unusual changes against the previous accepted import, with thresholds chosen for this dataset.

Separate downloading from publishing

I would put each incoming version through a staging step before it replaces the public data. Preserve the source snapshot, retrieval time, publisher’s update time where supplied, and the version of the mapping used to interpret it.

In the example, the missing required field stops publication and alerts the service owner. The previous accepted version remains available for assessment. An unrelated new field might be harmless; a changed meaning for accessibility needs review. The checks should distinguish those cases.

Recovery starts with the publisher’s definition of the new values. Update the mapping only when their meaning is understood. “Awaiting confirmation” must remain unknown rather than being squeezed into a yes-or-no answer. Preserve any correction separately so its origin remains visible.

Decide what visitors see while the feed is stale

A recent download does not prove recent information. The interface should distinguish when the service checked the feed from when the publisher updated the underlying records. If that second date is unavailable, say so.

For this example, I would agree a maximum age with the service owner and the publisher’s expected schedule. There is no universal number: a directory description and a live transport departure require different policies.

Example fallback policy for a community-facility directory
SituationProposed visitor experience
Accepted data within the agreed ageShow the information with its source and update date.
Import rejected, previous data still usableKeep the previous version, state that the latest update could not be confirmed, and flag affected details.
Information too old to support the answerStop presenting it as current; explain the limitation and offer the facility’s contact details.

The point is to preserve useful work while making uncertainty visible. An empty result must not suggest that no facilities exist, and a cached answer must not acquire a fresh date simply because it was served again.

Rehearse the failure before launch

I would keep a small set of example feeds with expected outcomes. Run them whenever the importer or its mapping changes:

  1. A valid update publishes once and preserves stable facility identifiers.
  2. A missing required field blocks publication and raises a useful alert.
  3. An unfamiliar accessibility value stays unknown and reaches review.
  4. An empty feed or a large unexplained fall in records cannot erase the directory silently.
  5. A corrected feed restores the service without duplicating records or losing the incident history.

These checks do not certify the truth of every record. They demonstrate how the service behaves under specific, foreseeable failures. Review a sample of the resulting pages as well as the import report.

Give the recovery work an owner

Someone must receive the alert, decide whether the fallback remains acceptable and communicate with the publisher. A short runbook should identify that person, the recovery steps and who can approve a changed mapping.

That operating work belongs in the cost of the product. My Build a venture work includes turning a useful idea into something a team can maintain. For an open-data service, the next design review should include one deliberately broken feed and a demonstration of what happens afterwards.

More to explore

Keep reading.

All articles

Let’s work on what comes next.

Start a conversation.