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
| Severity | Effect |
|---|---|
| Error | When 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. |
| Warning | The diagnostic does not stop the action that reports it. |
| Info | The 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
| Code | Severity | Condition |
|---|---|---|
| BFXF002 | Error | One collection receives the same member through two channels, or a collection is written inline while its folder also holds members. |
| BFXF002w | Warning | One $files list names the same document twice. The member is loaded once. |
| BFXF003 | Error | A reference names an entity that does not exist, or a $file, $files or $folder path does not resolve to a place inside the store. |
| BFXF003w | Warning | An optional reference does not resolve and is left empty when the load is run with dangling optional references allowed. |
| BFXF005 | Warning | A recognized .json file sits under a kind's folder and belongs to no collection. The file is not loaded. |
| BFXF007 | Error | A sensitive property holds a literal value in place of a secret reference. |
| BFXF008 | Error | A typed property holds a code that is not in its list of permitted codes. |
| BFXF014 | Error | A reference has the wrong shape for the kind it must point to. |
| BFXF017 | Error | The manifest is missing or invalid, or it declares a format version BimlFlex does not read. |
| BFXF018w | Warning | A property the format does not know. It is kept when the file is rewritten. |
| BFXF019 | Error | A document is not valid JSON, or a part of a document does not have the JSON shape the format expects. |
| BFXF020 | Error | Two entities of one kind and scope have the same name. Both are named and neither loads. |
| BFXF021 | Error | An 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. |
| BFXF022 | Error | A 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. |
| BFXF023i | Info | A document carries $id, which the format does not use. It is left out when the file is rewritten. |
| BFXF024i | Info | Tracking files from an older format sit in the .bimlflex folder. They are ignored. |
| BFXF025 | Error | The manifest declares a format older than 2.0. Such a store is regenerated from its source database. |
| BFXF026 | Error | A $file marker points at a document of the store and not at a text file. |
| BFXF027 | Error | A JSON object repeats a key. Nothing is picked and the scope does not load. |
| ERR_BAD_SECRET_TOKEN | Error | A 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_NONSCALAR | Error | A 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_JSON | Error | A 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_MODE | Error | A 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_SETTINGS | Error | A 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_MALFORMED | Error | A 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_LINK | Error | In 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_INVALID | Error | A 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_UNREADABLE | Error | The 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_REPRESENTABLE | Error | BimlFlex 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_MALFORMED | Error | The 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.