Skip to content

Tasks: export and import rules

Who does this: anyone who may see the rulesRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. exports them. Importing deploys, so it needs the right to deploy, which the quality-steward policyPolicy A set of permissions an administrator gives an account or a group. The product ships ready-made ones for the usual roles, such as quality-steward and quality-viewer. gives (Take a change to main).

Use it to keep a copy of a datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them.’s rules outside Quality Data, to carry them from one installation to another (a test one to the one in use), or to edit many files at once in your own editor.

  1. In the Explorer, choose ▤ beside the dataset to open its Rules page.
  2. Choose ⤓ Export .zip.

You should see a download named like customers-reglas-2026-11-12.zip: every rules file of the dataset as main has it, one file per field and the global rulesGlobal rules A dataset's file reglas_globales.yaml: what several fields share, such as lists, populations and named rules, declared once for every rules file of the dataset., reglas_globales.yaml, if it has them. It holds neither the mappingMapping How a dataset's table is read: which column each field reads and its type, the record key, each field's priority and the roles of some fields. nor any draftDraft A change to a dataset's rules kept apart from main, usually saved by an author who may edit rules but not approve them, until someone who may approve reviews it and approves or discards it..

  1. On the datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them.’s Rules page, choose ⤒ Import.
  2. Pick one or more .yaml files, or a .zip such as an export.
  3. For each file that would change main, one after another, a dialog Import Email.yaml (1 of 3) shows what a deploy shows: errors, warnings, which rules it adds, removes or changes, and the change line by line. Choose Deploy to take it, or Cancel to leave it out.

You should see at the end Import finished: 2 of 3 files deployed to main. Each file deployed is a change in its field’s history, which can be undone like any other (See a rule’s history and undo a change). The rules count from the next cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment..

What an import takes:

  • Files are taken by name. A file goes over the dataset’s file of the same name, inside a .zip too, whatever folder it is in. A name is letters, digits, _ and -, ending in .yaml; anything else, .yml included, is left aside and named in a notice.
  • A new file must be a field’s own or the global rules. WorkEmail.yaml can be added if the dataset has a field WorkEmail; a file named after no field is refused.
  • Files the same as on main are skipped, and a file main has but the upload lacks is left as it is: an import adds and replaces, never removes. To remove rules, delete them, or deploy their file without them.
  • Every file is checked against this dataset. Rules carried from another dataset or installation fail where they name a field this one lacks: fix the file and import it again.

An import always deploys: it cannot save a draftDraft A change to a dataset's rules kept apart from main, usually saved by an author who may edit rules but not approve them, until someone who may approve reviews it and approves or discards it..

What you see What it means and what to do
No ⤒ Import beside ⤓ Export .zip Your policyPolicy A set of permissions an administrator gives an account or a group. The product ships ready-made ones for the usual roles, such as quality-steward and quality-viewer. does not let you deploy.
Nothing to import: the files are the same as main. Every file uploaded is already on main as it is.
Left aside (not rules files): … Those files were not taken: rename them to <field>.yaml.
The uploaded file could not be read: is it a .zip or a .yaml? The .zip is damaged, or not a .zip.
2 errors: it cannot be deployed, in a file’s dialog Cancel it, fix the file, and import it again.
Email.yaml: The file changed on main since you opened it: open it again. Someone deployed that file during the import: import it again.
extra.yaml: Could not save. Try again. Usually a new file named after no field of the datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them.. Check the name against the fields in the Explorer.

Government Data · Guide v0.8.1