Skip to main content

File Store Diagnostic Codes

This page lists diagnostic codes BimlFlex reports for a file store.

What a diagnostic carries​

A diagnostic carries a code and a message. It can also name the file, the position in the file and the entity.

Severities​

SeverityEffect
ErrorWhen a load reports the code, the store does not load until the file is fixed. When a save of a change to the metadata reports it, that save writes no metadata file. A secret value written to its secrets file ahead of that save stays written. When a write or a reveal of a secret value reports it, no value is written or revealed. When a commit check reports it for a file the commit changes, no commit is made. When View File reports it, the pane shows the code and its message in place of the file.
WarningThe diagnostic does not stop the action that reports it.
InfoThe diagnostic does not stop the action that reports it.

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 or a required identity part is missing. BimlFlex also reports it when a direct subfolder of a folder it searches for entities has neither the anchor document of its kind nor an own file of the same name beside it, yet a default collection folder for children of that kind, directly inside the subfolder, holds at least one file at any depth outside any .git folder or file, with no name from the subfolder itself down to that file starting with an underscore and with names, .git among them, matched in any letter case.
BFXF022ErrorA split out child lacks its parent property, a child's parent property names a different parent than the one of that kind it is placed under, a map key disagrees with the name in the entry, a folder that BimlFlex searches for entities holds an own file and a folder with an anchor document of the same name in any letter case, or two file paths outside scratch space and any .git folder or file differ only in letter case or Unicode normalization, with .git read in any letter case. In the .bimlflex folder, read in any letter case, only .bimlflex/build-settings.json and the files under .bimlflex/build-settings are checked.
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.
ERR_BAD_SECRET_TOKENErrorA save of an entity gives a sensitive property a $secret reference that is not well formed: the reference is not text, the object holds another property, the text has no provider or no path, or the provider is not keyvault, env or store in any letter case. The save is refused.
ERR_LS_SETTINGS_NONSCALARErrorA save of a connection with Cloud on gives its LS Additional Settings a setting whose value is not text and whose name BimlFlex does not read as a credential. The save is refused.
ERR_LS_SETTINGS_NOT_JSONErrorA save of a connection with Cloud on gives its LS Additional Settings a value that is not a JSON object. The save is refused.
ERR_RAW_SECRET_IN_FILE_MODEErrorA save of an entity gives a sensitive property a literal value in place of a secret reference. The save is refused. A load reports such a value in a file as BFXF007, and so does a save of that file in Files.
ERR_SECRET_IN_SETTINGSErrorA save of a connection with Cloud on gives its LS Additional Settings a setting whose name BimlFlex reads as a credential, for example a name that holds password, secret or token in any letter case. The save is refused.
SECRETS_FILE_MALFORMEDErrorA secrets file that BimlFlex reads to reveal or write a secret value is not one JSON object, holds a name more than once, or holds a value that is neither text in double quotes nor null. No value is revealed or written. An editor save still saves its other changes without the new value.
STORE_DANGLING_LINKErrorIn the BimlFlex app, the manifest, a document BimlFlex loads or a text file that a $file marker in such a document points at is a symbolic link whose target does not exist, or whose chain of links loops back on itself. Fix or remove the link, or restore the file from source control.
STORE_DESCRIPTOR_INVALIDErrorA switch of the secrets environment reports it, for example, for a name that differs only by letter case from an existing secrets file. In the BimlFlex app, a write or a reveal of a secret value and a switch of the secrets environment report it while the local settings file .bimlflex/local/workspace.local.json cannot be read. Other actions can report it for a refusal of their own.
STORE_LOCAL_SETTINGS_UNREADABLEErrorThe local settings file .bimlflex/local/workspace.local.json exists and cannot be read. Repair or delete the file. In the BimlFlex app, a write or a reveal of a secret value and a switch of the secrets environment report this as STORE_DESCRIPTOR_INVALID.
STORE_NOT_REPRESENTABLEErrorBimlFlex cannot write a change as files, for example when two file paths would differ only in letter case, when one long text body file would have to carry two different texts, or when a folder sits where a file must be written. None of the files of the change is written. View File can show this code in place of the file.
STORE_SUGGESTIONS_MALFORMEDErrorThe suggestions file ai-suggestions.json at the root of the store is not valid JSON, does not have the shape BimlFlex expects or lists one entity or one field of an entity twice, or a save gives an entity AI suggestions that are not well formed.

See File Store Layout, Names and References in a File Store and Secret References and Secrets Files for the rules of a file store.