Legacy schema traps · Status, flags and deletion
Why does my ERP use J, Y, 1 and blank for the same flag?
Because different program versions wrote yes and no in different ways: J, Y, 1, blank or NULL. A filter on one spelling silently drops the rows written with the others.
Run the free schema checkFree · five minutes · only schema and aggregates leave you
What it looks likeIllustrative
ITEM.ACTIVE holds 'J', 'Y', '1', ' ' and NULL.
All table and column names are invented.
Why reports and AI agents get it wrong
It filters on ='Y' and silently drops a third of the active items.
A first check you can run
Distinct values of one-character columns.
Read-only and on the catalogue or aggregates: it looks at structure and value counts, not at individual records.
How Janus Works handles it
Every variant is mapped and tested; blank is treated as the application treats it.
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.