Lh019 — FILE_SCHEMA names a schema that disagrees with entity types in DATA

§12.1b header/numbering

P1 — silent data loss

syntax

Sources

Description

HEADER claims one schema (e.g. `IFC4`, `AUTOMOTIVE_DESIGN`/AP214, `AP242_…` Ed.2) but DATA uses entity names that exist only in another schema or another edition (e.g. `IFC2X3_PROJECT` in an IFC4 file; `ROUND_HOLE` in an AP214 file; post-Ed.3 hole-feature entities under an Ed.2 header).

Reproducer recipe

`FILE_SCHEMA(('IFC4'));` with body `#1=IFC2X3_PROJECT(..);` — or hand-edit FILE_SCHEMA of an Ed.3 file to claim Ed.2.

Expected kernel behavior

reject with a diagnostic naming the offending entity-name vs. claimed schema; offer a schema-name override flag. Parse based on entity-name availability, not header schema name; warn on mismatch.

Notes

**See also**: Le027, Lh031. Synonyms: "FILE_SCHEMA disagrees with DATA entities", "AP214 entity in IFC4 file", "schema name mismatches entity types", "entity not in declared schema", "STEP DATA uses entities from another schema". Provenance tier: bytes-only (Q5 full-corpus 2026-07-01).

Expected validation

occt=empty/empty gmsh=empty ifc=accept(0)

Provenance tier

bytes-only — defect not fully embodied in fixture bytes.

Byte assertions

Tier-3 assertions

Cross-references

Le027, Lh031

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* Lh019: FILE_SCHEMA claims IFC4 but DATA contains IFC2X3_PROJECT from IFC2X3 */
3/* DEFECT: schema mismatch — FILE_SCHEMA declares IFC4, entity belongs to IFC2X3 */
4/* Conforming kernel must reject with diagnostic naming offending entity vs schema */
5/* OCC silently accepts (no diagnostic, empty result) — catalog forbids silent acceptance */
6HEADER;
7FILE_DESCRIPTION(('Lh019: FILE_SCHEMA IFC4 but DATA uses IFC2X3_PROJECT'),'2;1');
8FILE_NAME('Lh019.stp','2026-06-20T00:00:00',(''),(''),'cad-research-suite','','');
9/* DEFECT: declares IFC4 but DATA below uses IFC2X3 entity types */
10FILE_SCHEMA(('IFC4'));
11ENDSEC;
12DATA;
13/* DEFECT: IFC2X3_PROJECT belongs to IFC2X3, not IFC4 as declared in FILE_SCHEMA */
14#1=IFC2X3_PROJECT('2TH4j2P0X0JvdGnNH$MHRS',$,'Lh019 schema mismatch project',$,$,(#2),$);
15#2=GEOMETRIC_CURVE_SET('schema-mismatch-shape',());
16ENDSEC;
17END-ISO-10303-21;