Legacy schema traps · Status, flags and deletion
What do the status numbers in my ERP database mean?
Status codes usually work in ranges, such as 10–19 open, 20–29 delivered and 90 and above closed. The ranges are defined in the application, not in the schema, so they have to be confirmed with someone who uses the system.
What it looks likeIllustrative
ORDHDR.STATUS takes the values 10, 12, 15, 20, 25, 90, 99.
All table and column names are invented.
Why reports and AI agents get it wrong
It reads “status > 10” as “not new” and counts cancelled orders as delivered.
A first check you can run
Value distribution of status columns, and whether values cluster in ranges.
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 trap report lists the values and asks what they mean; the answer is written into the tool and tested.
Every number verified against your own screens. Deviations shown, never hidden.
Common in the Jeeves database.