Files and data
What a .nendo file holds and its limits, CSV import and export, history and undo, the four kinds of copy, and what you can still do when a file opens read-only or needs recovery.
On this page
Work in a Studio table
In Studio → Data, scroll to read more records; a flat table loads them as needed. Sorting a header and applying a filter query the whole record type. The status below the table reports loading, the rows read so far, or the total once it reaches the end. Use Retry after a failed read. If another writer changes the file, Refresh reads the current result while keeping the previous record in view when it still matches.
Drag column headers to reorder them. Columns lets you hide fields or pin them on either side; Reset columns restores the layout. These preferences stay on this computer. Copy cell, or Ctrl+C outside a cell editor, copies the selected value. Edits still validate and save through Nendo, with record versions and History. Lists, boards and the tree outline keep their existing navigation controls.
The .nendo file
A Nendo application is one SQLite file with the extension .nendo. There is no server and no account. You can move the file, copy it and back it up like any other file.
What the file holds
- Record types and records. Each record type is an ordinary table. Stable semantic IDs connect record types and fields to their tables, so a rename does not break anything that refers to them.
- The definition. Fields, screens, calculations, functions, actions and triggers, the code of its custom views, and the sentence that says what the file is for.
- History. Every accepted change, as typed operations grouped into revisions.
- Identity. An application ID and an instance ID. Copies explains how they differ.
- Revision counters. A definition revision, a data revision, one change sequence across both, and a version on each record.
- A search index, once you build one. It keeps its own copy of the records’ text, so they can be found by any word, and grows the file by about the size of that text. Nendo keeps it current with every save.
Some things are stored on the computer and never in the file: your approval of a file’s automatic actions, and this computer’s switches for custom views. A copy of the file on another computer, or a Duplicate or Fork on this one, asks for the approval again. A custom view’s code is the other way round: it is in the file, so every copy carries it, and it runs when its view is shown. What a view keeps in its browser storage, such as a draft it has not saved, stays with the file it was kept for: a Duplicate’s views start without it. See Custom views.
Size limits
Before Nendo grants any capability, it inspects the whole file. That sets two limits.
| Limit | Value | What it means in practice |
|---|---|---|
| File size, not counting pictures | 256 MiB | About 75,000 records that each carry 1.3 KB of text. A cold open at that size takes several seconds. Pictures have a budget of their own: see Pictures. |
| Rows in each history or definition table | 100,000 | The history table gains one row for each record write and each later edit, so a file reaches this at about 100,000 writes, whatever their size. Fold older history in History makes room again. |
Nendo refuses a write when the file is within 32 MiB or 1,000 rows of a limit. The 32 MiB leaves room for the largest single change, which is a custom view’s code arriving in the file. The refusal says that nothing changed and that the file still opens. History warns once the file has recorded 80% of the changes it accepts (see History and undo). Nothing warns as a file approaches the size limit. A file over a limit does not open, and Nendo does not change it.
Minimum host version
Each file records the minimum version of Nendo’s file capabilities that it needs. This number is separate from the product version shown in the status bar. An empty file needs the least. When a change makes the file use a newer capability, such as a timeline, a calculated field or a custom view, the review of that proposal shows that the minimum rises. Building a search index raises it too, so an older Nendo refuses a file that has one. That line cannot be undone.
- An older Nendo refuses a file that needs a newer one. It does not open the file partially.
- A newer Nendo opens an older file without upgrading or rewriting it. The minimum rises only when an accepted change needs it, and never goes down.
- Within 1.x, a file that Nendo 1.0 opens, every later 1.x opens normally, with its records, fields, screens and packages as they were. Breaking that would take Nendo 2.0.
- A file from an early layout opens for inspection only. Health offers Upgrade file…, which moves it to the current format as an explicit step.
CSV import and export
Both directions are in the file menu: Import CSV… and Export CSV…. Both need a file that is open for editing and has at least one active record type.
Profiles
| Profile | Use it for | Empty cells and null |
|---|---|---|
| Nendo CSV | Files that Nendo exported, or files you wrote to the same rules. | \N is null. A doubled leading backslash keeps literal text that starts with a backslash. Null, empty text and the text \N stay distinct. |
| External CSV | Any other CSV. | Text is literal, backslashes included. Empty text stays empty unless you select treat empty cells as null. |
Both profiles read UTF-8 (a BOM is accepted, invalid UTF-8 is refused), comma delimiters, double-quote escaping and CRLF or LF line endings. Nendo writes CRLF. Quoted cells keep embedded line breaks, and text is not trimmed. A blank line is skipped, not read as an empty record. Numbers are exact strings; true and false are Booleans, in lower case. A cell that does not hold its field’s form stops the import at its row, and the message says the form it expects, such as a date as yyyy-MM-dd. Choice values are stable IDs. A reference holds a record ID, or, if you choose, a code: see below. Formula-like text that starts with =, +, - or @ is kept as written in both directions.
Import
- Choose Import CSV…, select the destination record type and a
.csvfile. - Choose the profile, then map each source column to a field. Nendo shows the mapping before it writes anything. Empty columns at the end of the file, which a spreadsheet often writes, are dropped. Any other column without a header, or two columns with the same header, stop the import before the mapping, and the message names the columns.
- Choose Validate first batch and review the rows and their typed values.
- Choose Import (the button names how many records) to commit the batch, or Cancel remaining import.
A reference column can name its records by a code instead of a record ID. Where the target record type has a unique field, such as a Code, the mapping asks what the column names its … by: choose that field, and each cell is looked up among the rows you are importing first and the records already in the file second, without regard to case. A code that names nothing, or names more than one row, stops the import at its row. When the column is the parent of a tree, Nendo imports parents before their children, whatever order the file lists them in, and still reports each row by its line in the file; History names each batch by those lines. A row with an empty code names nothing, and a row with an empty parent is at the top of the tree.
A batch holds at most 100 rows. All rows in a batch commit, or none do. An invalid row stops the batch; Nendo does not skip it. Each accepted batch has a durable receipt and becomes one entry in History. If you cancel, the batches already committed stay committed, and Nendo reports how many rows it imported and how many it did not.
| Input limit | Value |
|---|---|
| File size | 16 MiB |
| Data rows | 10,000 |
| Columns | 100 |
| Characters in one cell | 65,536 |
Import does not:
- update, merge with or overwrite existing records (it only creates new ones);
- create record types or fields;
- keep record IDs, versions or history from the source;
- match a reference by its label (only by a record ID or a unique field), or repair one that does not resolve;
- accept a choice value that is not one of the field’s options;
- guess field types from the data.
A rating outside its scale is kept, and Nendo says so.
An agent imports through MCP with the same profile and decoding. That path commits 50 rows to each revision, up to 500 rows in one call, without a review step. See Agents.
Export
Export CSV… writes the active fields of one record type, in the Nendo CSV profile, to a new file. The file starts with a UTF-8 byte-order mark, so a spreadsheet opened on it shows æ, ø and å as written. A spreadsheet set to Danish or another regional format that separates columns with ; puts each row in one column; its Data › From Text/CSV reads the file with commas. It never overwrites an existing file. A CSV export is not a backup: importing it creates new records and does not bring back IDs or history.
History and undo
Each accepted change is a revision in History. An entry shows its lane (Definition or Data), how many operations it holds and who made it: you, an agent by the name the Agent page shows it under, a custom view by its package, or Nendo itself. What a trigger changed belongs to the edit that fired it. View changes opens the operations, and each one an automatic action made names that action. CSV batches and agent writes are ordinary entries. History shows 50 entries per page and is never rewritten, except when you fold it.
History also says how many changes the file has recorded, out of the 99,000 it accepts before it refuses writes, and warns from 80%. Fold older history… makes room: Nendo saves a backup beside the file with the whole history in it, then replaces the older entries with one Checkpoint entry. The most recent 1,000 changes (fewer, if they are large) stay as they were, and so does every record. A folded change can no longer be undone or inspected in the file; open the backup to see it.
Every operation declares a reversibility class. Nendo shows it in the review before you accept a proposal, and again in History.
| Class | Meaning | Examples |
|---|---|---|
| Can be undone | Nendo can produce the exact inverse. | A screen node added; a value a custom view keeps. |
| Can be undone if nothing has changed it since | Nendo kept what it needs and can restore it while the current state allows. | A field set to a new value; a deleted record; a retired field or record type; a renamed field; a field’s presentation changed; a reference’s label changed; a changed screen property. |
| Cannot be undone | There is no inverse. | A record created; a new record type or field; a conversion; a change of identity; a raised minimum version. |
Undo applies the inverse of an entry as a new revision. It does not rewind history. A restored record gets a new version. If the current state no longer allows the inverse (a referenced record is gone, a field is now required), Nendo refuses. If a save triggered an automatic action, Undo reverses the whole entry, including the action’s changes. To bring back a deleted record, find its Delete entry in History, which names the record, and choose Undo. A created record, and a record brought back by undoing its deletion, are the exceptions to their class: History undoes either by deleting the record, its record ID stays taken, and View changes says so. A change to the file’s structure can be undone only while it is the latest one; after a later structure change, History no longer offers it. A proposal that makes several structure or screen changes together, such as a custom view added with its settings, is not undone from History as a whole, so the review and History say but not from History beside each change. An undo of record changes can itself be undone, which makes the change again; History names it Redo. Undoing one record’s edit happens at once. An undo that reaches several records, or a structure, package, look or purpose change, first names the entry and says what undoing it does, and goes ahead only when you choose Undo.
There is no universal undo. A backup does not make an irreversible change reversible; it gives you an older file to go back to. Make a backup before a change that cannot be undone.
Copies
The file menu has a Copies section, and Restore backup… under Recovery. Each action asks for a destination and never overwrites an existing file. The source file stays unchanged.
| Action | Application ID | Instance ID | History | Use it to |
|---|---|---|---|---|
| Create backup… | Kept | Kept | Kept exactly | Save a recovery copy. |
| Duplicate… | Kept | New | Kept, plus one entry for the copy | Make another instance of the same application. |
| Fork… | New | New | Kept as lineage, plus one entry for the fork | Start a separate application from the current content. |
| New empty copy… | Kept | New | Folded into one entry, plus one for the new file | Start again with the same application, without this file’s work. |
| Restore backup… | Taken from the backup | Taken from the backup | The backup’s | Replace the current file with a backup. |
Web page… in the same section exports the application as one page that opens in a browser with nothing installed, and applies the changes made in such a page; see Web pages.
New empty copy… stands where New file does while a file is open, and an application can give it its own name, such as New Archi model…. The new file has the record types, screens and custom views, and only the records the application keeps in new files: a record type keeps its records or leaves them out by default, and a single record can say otherwise. Studio shows both, in each record type’s sentence above the grid and in its In new files column. Nendo shows what the new file keeps and leaves out before you choose where it goes, and refuses while a kept record points at one that is left out, naming it. The new file opens in a window of its own; the file you are in does not change.
Restore checks the backup first, then replaces the current file. It keeps the previous file beside it and never deletes those retained copies. If a replacement is interrupted, the next open says so and Review recovery record… resolves it; Nendo does not adopt a staged file on its own. The Duplicate and Fork entries in History cannot be undone.
A copy made in Explorer keeps both IDs. Nendo does not rewrite them. One instance can be open for editing in only one Nendo session at a time, so if you open a raw copy or a backup while the original is open, Nendo offers to open it read-only or to make a Duplicate or Fork. Moving or renaming a file keeps its identity.
Cloud-sync folders
Nendo does not support a writable file in a folder that a sync service manages. When a file is in a OneDrive, Dropbox or Google Drive folder that Nendo recognises, it shows a warning and asks you to choose another location, inspect the file read-only, or accept unsupported use explicitly. Pausing sync is not a safety guarantee. Detection is incomplete, so the absence of a warning does not mean a location is safe. Nendo never rolls back an unfinished save in such a folder, because its -journal may have come from another computer; it tells you to copy the file with its -journal to a folder that is not synced and open it there.
Open states
Nendo inspects a file before it opens it and puts it in one of four states. Health shows the state and the reason. A normal file whose automatic actions wait for your approval has a row of its own below.
| State | Shown as | Why | What you can still do |
|---|---|---|---|
| Normal | Ready for editing | The file passed every check. | Everything. |
| Normal, awaiting approval | Approval needed | The file passed every check, and its automatic actions wait for this device’s approval under Health. | Everything but editing, which starts once you approve. Undo in History still works. |
| Read-only | Open read-only | The file is marked read-only, or the same instance is open for editing elsewhere. | Read data, history and screens; create a backup; export readable data. Editing and agent access are off. |
| Recovery | Recovery required | Nendo found something it will not edit past: tables that differ from the definition, inconsistent revisions or references, a screen or calculation it cannot run, calculations written for a calculation contract this Nendo does not run, unrecognised views or triggers, an interrupted replacement, or an early file layout that needs an upgrade. | Read the data in Studio; read history where it is readable; create a backup where the storage allows; export readable data; open another file or a backup. Custom screens, editing and agent access are off. |
| Rejected | The reason is shown on open | Not a Nendo file, a format or host version this Nendo does not support, over a size limit, or a failed integrity check. | Nothing in this file. Nendo does not open or change it. Open a backup instead. |
If Nendo was stopped in the middle of saving, by a crash or a forced restart, the file keeps a -journal file beside it. When you open that file yourself, from a folder that is not synced, Nendo checks that the journal could belong to it, keeps a copy of the file and the journal beside it, and has SQLite roll the unfinished save back, so the file opens as it was after the last save that finished. The copy stays, and Nendo names it each time you open the file, because a journal left by another copy of the same file looks the same: check the file, and delete the copy once you are satisfied. A journal that holds nothing to roll back is simply cleared. A journal that does not belong to the file, a file another program has busy, or a folder or file Nendo cannot write to is refused with its reason and what to do, and nothing is changed. Choose Inspect file again once you have dealt with it. Never delete the files beside a .nendo file that end in -journal, -wal or -shm, and never copy the file without them, unless Nendo tells you the journal is not this file’s.
Nendo never guesses a repair. Rolling back an unfinished save is SQLite’s own exact recovery, done only for a journal shown to be this file’s; otherwise Nendo does not rewrite a file to make it open. Studio stays reachable in every state that opens, so your readable data is always one click away.
Health’s Recovery actions are:
- Inspect Data opens the Studio table.
- Export readable data… writes the stored values of one record type to a CSV file, with each reference as the record ID it points at. One file holds at most 4 MiB and 10,000 rows. A larger record type is written in parts: after each part Nendo offers Export next part, which starts after the last record the part before it wrote, so the parts together hold every record once.
- Create backup… and Restore backup…. Nendo does not restore or upgrade over a file marked read-only in File Explorer: clear Read-only in the file’s Properties first, then choose Inspect file again.
- Inspect file again re-runs the checks, for example after you close the program that had the file busy. It is offered only for a file that is read-only or needs recovery. A file open read-only keeps what it read when it opened; if another window changes the file, a backup or copy from the read-only window says so, and Inspect file again reads the current state.
- Save diagnostics… writes a report you can share.
- Review recovery… resolves an interrupted replacement.
- Open file or backup… opens another file.
Two other conditions turn editing off without a change of state. A file with automatic actions stays read-only until you choose Approve automatic actions under Health. A screen definition that does not compile switches off every custom screen, and Studio still works.
Integrity check
Nendo runs SQLite’s full integrity check every time it opens a file, and rejects a file that fails. When you open Health on a file that is open for editing, Nendo runs the check again and shows Last integrity check with its time and the change number it covered. An agent can run the same check with nendo.health.verify_integrity.