When data changes shape
What happens when a file's structure changes, and how to put a model right.
QuackUI fingerprints each source’s structure: schemas, tables, columns, types, keys. New rows don’t change the fingerprint. A renamed column does.
Needs review
When a source’s fingerprint differs from the one a model was saved with, or the file is missing or broken, the model shows needs review. Queries on it are refused, because answering from a structure nobody has checked risks a wrong number. The refusal is model_needs_review, or source_not_ready while the source is missing, in error or pending.
New rows can cause the model_needs_review refusal too, if they put duplicates in a join key that QuackUI had found to be unique. The model’s status doesn’t change then.
The model document lists which sources changed and which items point at tables or columns that no longer exist.
Fix it
- Open the model and switch to Editing.
- Choose Re-infer changes. QuackUI proposes items for what is new and keeps what you decided before.
- Deal with the items to check and repair or remove anything broken.
- Save. The model gets a new version and goes back to working.
If row rules use a dimension you remove, the save is refused with row_rule_conflict and names the groups. It is also refused when a dimension gets another kind than the user attribute its rule uses. Change those rules first.
Calculations are never removed for you. A broken one is flagged until you change it.
Versions
Every save adds a version that can’t be changed afterwards. Open History on the model to read old ones. Runs record the version they used.
If two admins edit at once, the second to save is told the model has moved on.
Reports
Reports always use the current version. If an item they use has been removed, the affected block says which field is missing and the others carry on.
