Founding customers: 10 free pilots in 2027. See the offer

Legacy schema traps · Status, flags and deletion

The order is closed, but its lines are still open. Which one is right?

Both carry their own status, and the application decides by a rule which one wins. After a partial cancellation, a closed header with open lines can be correct; the answer depends on that rule, not on which table you read.

Run the free schema checkFree · five minutes · only schema and aggregates leave you

What it looks likeIllustrative

ORDHDR.STATUS=90 (closed) with two ORDLIN.STATUS=20 (open) lines after a partial cancellation.

All table and column names are invented.

Why reports and AI agents get it wrong

It answers from whichever table it queried first.

A first check you can run

Count headers whose status disagrees with the status of their lines.

Read-only and on the catalogue or aggregates: it looks at structure and value counts, not at individual records.

How Janus Works handles it

The rule for which status wins is part of the tool and of the Golden Master cases.

Every number verified against your own screens. Deviations shown, never hidden.

Run the free schema checkFind the traps in your own database. Free schema check, five minutes.