Troubleshooting
Transform errors
Transform errors are listed on the table's Validation tab and in the log. The game keeps the last good version of the table until they are fixed.
| Message | Cause | Fix |
|---|---|---|
| No data schema is assigned. / Data schema '…' not found. | The table's Schema property is empty or points at a deleted asset. | Set the schema in the inspector's Table section, or use Create schema… on the Schema tab. |
| Duplicate row key '…' | Two rows have the same key, often after merging two people's changes. | Rename or delete one of the rows. The message names both rows. |
| Row keys '…' and '…' hash to the same value. | Two different keys produce the same hash. Rare, but possible. | Rename one of the keys. |
| Row key '…' contains whitespace or a separator character. | Keys may not contain spaces, ;, , or ". | Use lower-case names with underscores: rifle_mk2. |
| Row '…' has no value for the required column '…'. | A Required column is empty. | Fill in the cell, or clear the Required flag. |
| Derived column '…': the expression '…' does not compile. | A typo, a column name that does not exist, or a column that is not numeric. Text, Name, Asset, Row, vector and container columns cannot be used in expressions. | The Schema tab shows the compile error under the Expression field. |
| Derived column '…' is not a number in row '…'. | The expression divided by zero or produced another non-finite value for that row. | Guard the expression, e.g. Damage / max(FireRate, 0.01). |
| A row reference names a key that does not exist | The target table has no such row, or the key was renamed without the Usages tab. | Pick the row again with the row picker, or rename keys from the Usages tab so references are fixed. |
| A linked table fails with a cell parse error | A value in the source file does not match its column's text form. | The message names the row and column. Fix the file. The Import tab's banner shows the same problems before you save. |
| Other tables report conversion errors after a type change | Changing a column's type converts only the table you edited. | Open each table that uses the schema. The Schema tab lists them. |
Runtime problems
| Symptom | Cause | Fix |
|---|---|---|
GetRow returns an invalid view | The key is misspelt, the table did not load, or a table set layer removes the row. | Check GetAcquireResult() on the resource lock, then the key. DataTables.Dump prints what the game has. |
| A cell reads as 0 or empty | The column name is misspelt, or the row does not set the cell and the column default is 0. | Column names are case-sensitive. Check the row in the table window: dimmed cells are at their default. |
| Edits in the editor do not show up during Play | The code keeps a plDataRowView from before the edit. | Look rows up again instead of keeping views. row.IsStale() is true for such a view. |
| A query by an Enumeration value returns nothing | The value name is not in the column's list, or the column uses a reflected type whose module is not loaded. | Check the spelling in the Schema tab. Names are matched ignoring case. |
A Text cell shows Weapons.rifle_mk2.DisplayName instead of text | No translation file for the current language contains the key. | Copy Localization/en/DataTables/<Table>.txt to the language's folder, or check the App.Language cvar. |
| A generated header's accessors return wrong values | The schema changed but the C++ plugin was not rebuilt, or the table was built from another schema. | Always check MatchesSchema(). Rebuild the plugin after saving the schema. |
| No generated header is written | Code generation is off for the project or for the schema, or the project has no C++ plugin. | Enable both switches (see Generated C++ row headers). Without a C++ plugin nothing is generated, by design. |
Data store problems
| Symptom | Cause | Fix |
|---|---|---|
GetTable returns null | The table is not declared, or its schema could not be loaded at start-up. | Check Project > Data Tables… > Data Store and the log line cannot load its schema. |
| Store rows are not in the save game | The store is not registered with the save service, no object carries the DataStore schema, or the table's scope is Session or Profile. | Follow Saving: RegisterWith(GetSaveGame()) plus one Persistence component with DataStore in its Schemas. |
| Rows are saved twice or restored inconsistently | More than one object carries the DataStore schema. | Keep it on exactly one object. |
| An old save loads, but a column's values are gone | The column was deleted and added again instead of renamed. | Rename columns in the Schema tab so the old name is recorded in Previous names. |
| The starting inventory is missing after New Game | The Slot tables were cleared by hand instead of reset. | Call ResetScope(plDataStoreScope::Slot), which re-applies seed tables. |
| Store events arrive a frame late | By design: events are delivered once per frame, and inside a transaction only on commit. | Read the value directly after writing it if you need it in the same frame. |
| A write is logged as outside the range | DataStore.ValidateWrites found a value outside the column's range. | The value is still written. Fix the writer or the column's range. |
Current limitations
- There is no SQLite backend yet. The SQLite choice in the Backend field runs on the memory backend.
- C# gets the
DataTablesfunctions from the generated bindings, but there are no typed row classes for C# yet. The.schema.jsonmanifest that such a generator would read is already written. - Visual Script uses the
DataTablesfunctions with column names as text, and there is no node with a column drop-down. - Generated C++ headers expose Enumeration and Flags columns as integers.
- Curve, Array and Struct cells are edited as JSON in the inspector, not in the grid.
- Queries have no joins. Follow Row columns with
GetRefRowinstead. - Derived columns only see their own row.
- There is no XLSX import and no online spreadsheet connector. Export CSV from the spreadsheet and link the file.