Skip to main content

File Store Diagnostic Codes

When BimlFlex reads a file store, it reports each problem it finds as a diagnostic.

What a diagnostic carries​

A diagnostic carries a code, a severity and a message. Where they are known, it also carries the file, the position in the file, the entity and a related file.

Severities​

SeverityEffect on a load
ErrorThe store does not load until the file is fixed.
WarningThe diagnostic is reported and the load continues.
InfoThe diagnostic is reported and the load continues.

Stable codes​

Treat a diagnostic code as a stable identifier. The message text beside it can change between releases, and new codes can be added. A code number that leaves the catalog is never reused for another condition.

Codes​

CodeSeverityCondition
BFXF002ErrorOne collection receives the same member through two channels, or a collection is written inline while its folder also holds members.
BFXF002wWarningOne $files list names the same document twice. The member is loaded once.
BFXF003ErrorA reference names an entity that does not exist, or a $file, $files or $folder path does not resolve to a place inside the store.
BFXF003wWarningAn optional reference does not resolve and is left empty when the load is run with dangling optional references allowed.
BFXF005WarningA recognized .json file sits under a kind's folder and belongs to no collection. The file is not loaded.
BFXF007ErrorA sensitive property holds a literal value in place of a secret reference.
BFXF008ErrorA typed property holds a code that is not in its list of permitted codes.
BFXF014ErrorA reference has the wrong shape for the kind it must point to.
BFXF017ErrorThe manifest is missing or invalid, or it declares a format version BimlFlex does not read.
BFXF018wWarningA property the format does not know. It is kept when the file is rewritten.
BFXF019ErrorA document is not valid JSON, or a part of a document does not have the JSON shape the format expects.
BFXF020ErrorTwo entities of one kind and scope have the same name. Both are named and neither loads.
BFXF021ErrorAn entity has no name, a required identity part is missing, or an entity folder has no anchor document.
BFXF022ErrorA split out child lacks its parent property or disagrees with its folder about the parent, a map key disagrees with the name in the entry, or one entity is carried both as an own file and as a folder with an anchor document.
BFXF023iInfoA document carries $id, which the format does not use. It is left out when the file is rewritten.
BFXF024iInfoTracking files from an older format sit in the .bimlflex folder. They are ignored.
BFXF025ErrorThe manifest declares a format older than 2.0. Such a store is regenerated from its source database.
BFXF026ErrorA $file marker points at a document of the store and not at a text file.
BFXF027ErrorA JSON object repeats a key. Nothing is picked and the scope does not load.

See File Store Layout and Names and References in a File Store for the rules these codes report on.