Backed Objects
A backed object reads its instances from a dataset or view you already have. Every row of the source is an instance. You pick the columns to expose, choose the primary key, and link the object to other objects. You can also add custom properties: editable fields that Datazone stores for each instance, next to the source data. Use a backed object when the data already lives in Datazone, for example customers loaded by an Extract or orders built by a Pipeline, and you want to:- give it a business name and a schema that other objects can reference,
- link it to other objects through relationships,
- let users or agents add notes, statuses, or tags to rows that come from somewhere else.
Create a backed object in the UI
Open Knowledge Objects in your project and click Create.1
Source
Choose Backed, then pick a Dataset or a View of the project.
You need read access to the source. Only datasets and views of the same project are listed.

2
Details
Give the object a name, a description, and the branch to deploy on.
3
Schema
The form lists every column of the source with its exact ClickHouse type.
- Untick a column to leave it out of the object.
- Rename a field in the text box. The source column keeps its name.
- Click the key icon to make a column part of the primary key.
- Click the tag icon to make a column the label column.
- Click the link icon to point the column at another object’s primary key. See Relationships.

Source fields and custom properties
A backed object has two kinds of fields. Source fields read a column of the source. They have asource_column and are always read-only. Their type comes from the column’s ClickHouse type, which you set in db_type:
- A
Nullable(...)column becomes an optional field.LowCardinality(...)is unwrapped. - An
otherfield is shown as is. It cannot be a primary key, haveoptions, or hold a relationship. - Source fields cannot have a
defaultor adb_column. - The primary key must be made of source fields.
source_column. They are stored by Datazone for each instance and are the only fields you can edit. Each custom property must be optional or have a default, because rows arrive from the source without a value. Until a row is edited, its custom properties are NULL (or their default).
Define it in YAML
objects/invoice.yaml
settings.source.typeisdatasetorview.settings.source.idis the id of the dataset or view.- Setting
sourceis enough.object_typebecomesBACKEDon its own. - For source fields, leave out
typeandoptional. They are derived fromdb_type. db_typemust match the source column’s type exactly, for exampleNullable(Int64), notInt64.
Relationships
A relationship field holds the primary key value of an instance of another object.CustomerID on Invoice holds a Customer’s CustomerID, so a source column that already contains the id is a relationship as is. No extra mapping is needed.
In the Schema step, click the link icon on a source column. The picker lists the primary key fields of every object in the project, with their types:


- The field type must be
str,int, ordate. Astrfield can hold any key type. Other types must match the related key’s type. - If the related object has one primary key field,
relationshiponly needsobject. - If it has a composite key, each field sets
relationship.fieldto the key field it holds. Each key field must be covered once. - When you create or edit an instance, Datazone checks that the value matches an existing instance of the related object. A composite link must be set completely or left empty.
Relationships hold primary key values for standalone objects too. Objects created before this change stored the related instance key (
_key). Those values were converted to primary key values.Edit instances
Open the object’s Instances tab and choose Edit on a row. Source fields are shown read-only. Custom properties can be changed. A custom relationship field opens a picker over the related object’s instances.


Keeping data fresh
- Dataset sources are copied into a table that belongs to the object. Each time the dataset gets a new transaction (an Extract or Pipeline run), the copy is refreshed. The object keeps serving the previous rows until the refresh completes.
- View sources are read live through the view.
- Custom properties stay attached to their row across refreshes. The instance key is computed from the primary key values, so a row with the same key keeps its custom values. This holds even if the source column changes from
Int32toInt64or becomesNullable. - Renaming the source dataset or view re-runs the object’s migration, so it follows the new name.
Source validation
Datazone validates the source when you create the object, on every deploy, and on every migration:- every
source_columnexists in the source, - every
db_typeequals the column’s ClickHouse type, - the primary key has no
NULLvalues, - the primary key is unique across the source rows.
400 with the reason, for example Primary key is not unique in the source: 1200 rows but 1000 distinct keys. If the source changes later and no longer passes, the object moves to ERROR. Fix the source, then click Retry next to the object’s status (or call retry-migration).
History
Withstore_versions on (the default), every edit to an instance’s custom properties is kept. The history endpoint returns those edits, newest first. Each entry holds the custom properties as they were at that edit. Source fields are not versioned, so every entry shows what the source holds now. An instance that was never edited has no history.
What you cannot change
These changes fail the deploy. Create a new object instead.- the object type (local ↔ backed),
- the source (
settings.source), - the primary key.
Next steps
- YAML Reference —
source,source_column, and relationship attributes. - Instance API — read and update backed instances, list source columns, retry a migration.