Skip to content
BeryxTechBeryxTech
All articles

Articles

The error is at the source

By , Founder of BeryxTech

Published · 5 min read

For
Data engineering
Data steward

A wrong number on a dashboard is rarely born on the dashboard. It is born in a source system, goes through ingestion and the lakehouse layers and reaches the report already transformed, far from whoever can fix it. When the BI team fixes it by hand, the report is right again until the next time. The article follows the way back, from the report that breaks to the origin, and says what lineage needs to do it without getting it wrong.

The symptom shows up downstream

A common case: an ERP release starts writing the order value in another unit. For the ERP nothing fails, because the column is still a number. Ingestion copies the value into the bronze layer of the lakehouse, silver does not normalise it and the sales-by-channel gold table comes out with revenue multiplied by a hundred. The first to notice is whoever opens the sales dashboard in the morning meeting.

The BI team fixes the number in gold, by hand, and the dashboard is right again. At the next release, the same thing happens. The downstream fix treats the symptom and hides the cause: whoever can fix the ERP does not know it breaks the report, and whoever fixes the report has no way to fix the ERP.

The way back

To reach the origin, you go up the path the data took: from the dashboard to the gold table it reads, then to silver, bronze, ingestion and the source system. Each hop has to come from something that saw the data go through: the SQL of the views, the dbt model, a job's OpenLineage event or the copy made by an ingestion connector. The dashboard comes in at the end of the chain, for example as a dbt exposure, which declares the models it depends on.

BeryX · The error at the sourceFrom the dashboard back to the origin, through derivation lineage onlyThe error shows up in gold and on the dashboard, but the cause is in the source system. The incident goes up the path the data took, and the cause stays at the origin, with its owner.

The data path

From the source system to the dashboard; each hop is a derivation edge.

  1. OriginThe ERP where the change came in
  2. IngestionThe Fivetran or Airbyte copy is derivation
  3. Bronze, silver and goldView SQL, dbt and OpenLineage
  4. DashboardWhere someone sees the wrong number

The incident goes up to the origin

Open issues are grouped by derivation, never by foreign keys.

  • A foreign key does not group issues into an incident
  • The root is the most upstream dataset with an open issue
  • Above the root, the path to the probable origin, through the API

The cause stays at the origin

Through the API: whoever resolves marks the cause and the origin, and the connection gets an owner.

  • The confirmed cause stores the origin dataset and connection
  • The connection gets an owner and the team's ticket destination
  • With repeated confirmations from downstream, the suggestion and the ticket go to the origin and wait for someone to accept them

Only what is already in production.

Derivation, not reference

Not every link between tables can be used to go up this path. A foreign key says that the invoices point to the orders, not that the invoices' data comes from them. An alert correlation that follows foreign keys groups into one incident issues that do not share a cause and sends whoever investigates down the wrong path. The OpenLineage object model makes the same distinction: it cares how each dataset comes into being, not just that two datasets are related.

In BeryX, the open issues that appear within the same 2-hour window in datasets linked by derivation lineage form one incident. Derivation is the SQL of views, dbt, OpenLineage, the catalog's lineage, the Fivetran and Airbyte copy, the warehouse system tables and an edge declared by hand without a join column. A foreign key says that one table points to another, not that its data comes from it: it does not group issues into an incident. See incidents and root-cause diagnosis.

The first dataset with an open issue is not always the origin: the source system may have no rule that catches the change. In BeryX, from the root dataset, the incident goes up the ancestors in the derivation lineage to the end of the known lineage and returns the path to the probable origin. Each node carries its state: whether it is monitored, the last scan, the active rules and the last sync of the pipeline that feeds it. See incidents and root-cause diagnosis.

The cause stays at the origin

Knowing the origin of an incident is not enough if the next time starts from scratch. Whoever resolves it knows the cause was the ERP release, but if that only stays in the report's ticket, the ERP team never sees it, and the cause that repeats never reaches whoever can remove it.

In BeryX, when the cause is an upstream source or source data, the confirmation also stores the origin dataset and connection: the one given by whoever marks it, which must be the root's dataset or one of its ancestors through derivation lineage. When they come from downstream, these confirmations are also grouped by the origin connection, and with the same threshold as the confirmed causes the suggestion goes to the origin dataset with the most confirmations. It proposes the rule for the kind of cause (volume, freshness or schema), and for values, or without a reliable column, it is a suggestion without a rule. See root cause with confidence and confirmed causes.

The connection gains an owner, a person or a team, and with that team's ticket destination the suggestion also proposes the ticket to the owner, which opens when someone accepts the suggestion. Until then, the rule and the ticket are only proposals. See root cause with confidence and confirmed causes.

What is still missing

In BeryX, the path to the probable origin can still only be read through the API. The incidents screen still shows the root dataset as the source, without the path above it. See incidents and root-cause diagnosis.

Marking the cause, giving the origin and giving a connection an owner can also only be done through the API, with no screen in the app. And BeryX does not yet record the fix made by hand downstream or count how many times the same issue reopened. See root cause with confidence and confirmed causes.

Where to start

A simple exercise: gather the fixes made by hand in the last quarter, in a report or in a final table, and note for each one where the cause was and who owns that system. The ones that come back every month are the first to follow to the origin. In consulting, the first step is the Data diagnostic: the connection to the sources is read-only, and the report says what is wrong, what it costs and where to start.

Sources read on 20 November 2026

  1. OpenLineage, Core Specification, “Object Model”, version 1.55.0
  2. dbt Developer Hub, “Add Exposures to your DAG”

Before connecting an agent, start with the data it will read.

The Data diagnostic runs BeryX on your sources, read-only, and ends with a session on the report.