# Data Repository

> Keep account-wide datasets in the DDL Data Repository: upload CSV, Excel, JSON or Parquet files, save project nodes, share tables and import them into projects.

Source: https://dev.delman-guide.pages.dev/data-repository

The Data Repository (`/data-repository`) holds datasets that do not belong to a single project. Put a table there once, by uploading a file or by saving a project node, and import it as a node into any project you can edit. Use it for reference tables that several projects need, for files you want to inspect before you build a pipeline, and for handing a finished table to colleagues.

<Tour id="data-repository" />

> Screenshot: The Data Repository page in table view with orders_enriched, added from Demo Project, and the uploaded datasets crm_customers, demo_orders_archive, demo_products, demo_customers and demo_orders, each with owner, origin and last update. The Data Repository in table view. Added From tells you whether a dataset was uploaded or comes from a project.

## Where datasets come from

| How | Where you do it | **Added From** shows | The data afterwards |
|---|---|---|---|
| Upload a file to the repository | Data Repository › **Upload File Data** | **File Upload** | Stays as uploaded |
| Upload a file into a project with **Save to Data Repository** on | Pipeline › **Add data** › **Upload File** | The project's name | Follows the uploaded node |
| Save an existing project node | Node side panel › **Data Repository** | The project's name | Follows the node: updated every time the node gets new data |

The first way is described in [Upload a file](#upload-a-file), the third in [Save a project node](#save-a-project-node). Uploading into a project is part of [Pipeline canvas](/pipelines).

## Browse the repository

The list holds the datasets you own and the datasets shared with you, directly or through one of your roles. The most recently updated come first.

| Control | What it does |
|---|---|
| **Upload File Data** | Opens the upload panel. The address gets `?create_new=true`, so the panel can be bookmarked. |
| Table / grid switch | Shows datasets as a table (tooltip **Table**) or as cards (tooltip **Grid**). |
| **Search Dataset** | Filters by name. Any part of the name matches, in upper or lower case. <kbd>Ctrl</kbd>+<kbd>K</kbd> (<kbd>⌘</kbd>+<kbd>K</kbd> on a Mac) focuses this field. |
| **Reset Filter** | Clears the search. |
| **See Details** | Opens the dataset page. |
| Trash button | Removes the dataset. Table view only. See [Remove a dataset](#remove-a-dataset). |

The table columns are **Dataset Name**, **Owner** (the owner's name), **Added From** and **Last Updated**. **Last Updated** is relative; hover its info icon for the exact date and time.

**Added From** reads **File Upload** for a file uploaded straight into the repository. For a dataset saved from a project node it shows the project's name, which follows a rename of the project and stays after the node or the project is deleted.

The grid shows one card per dataset with **Last update** and **Owner**; click a card to open it. An empty repository shows **There is no data to show**. On a phone, the table becomes one card per dataset.

:::tip[From the Home page]
The **Data Repository** section of the Home page shows your three most recent datasets and a **Create New Dataset** tile that opens the upload panel. **View All** opens the full list.
:::

## Upload a file

| Format | Extensions | How DDL reads it |
|---|---|---|
| CSV | `.csv` | The delimiter (comma, semicolon and so on) is detected. The first row holds the column names; an empty header becomes **Unnamed column 1** and so on. |
| Excel | `.xlsx`, `.xls` | You pick one sheet in **Select Sheet**. Upload the file again for another sheet. |
| JSON | `.json` | One JSON array of objects. Every key becomes a column. JSON Lines files are not supported. |
| Parquet | `.parquet` | Column names come from the file. |

One upload can be at most 20 MB; a larger file is refused with "File is too large, limit is 20.0MB".

1. Click **Upload File Data**. The **Upload File** panel opens on the right: "Please select a file from your computer".
2. Choose the file. DDL reads its first 25 rows and shows them on the page under **Previewing data** and the file name, so you can check the columns before you commit. For an Excel file, choose the sheet in **Select Sheet**.
3. Check **Name** ("Write a name for this Dataset"). Once a file is chosen, the field is enabled and DDL fills it from the file name up to the first dot: `demo_orders.csv` becomes `demo_orders`. It does not overwrite a name you already typed.
4. Click **Add to Data Repository**.

> Screenshot: The Upload File panel with demo_orders.csv chosen and demo_orders in Name, next to the preview of the file's first rows under Previewing data demo_orders. Choose the file, check the preview and the pre-filled Name, then Add to Data Repository.

DDL shows an upload message, closes the panel and lists the dataset at the top. The rest of the file is loaded in the background, and DDL detects a type for every column while it loads.

Dataset names are unique among your own uploads; a second dataset with the same name fails with "Dataset with the same name already exists".

:::tip[Name the dataset for SQL]
When a project imports the dataset, the node gets the dataset's name by default, and SQL refers to nodes by name in backticks, for example `` `demo_orders` ``. Short lower-case names without spaces are the easiest to work with. See [SQL Query](/sql).
:::

:::caution[Keep one dot in the file name]
Give the file a lower-case extension and no other dots, for example `demo_orders.csv`. A name such as `orders.2026.csv` or `ORDERS.CSV` previews but is not recognised when you click **Add to Data Repository**.
:::

## Open a dataset

**See Details** in the table, or a card in the grid, opens the dataset page (`/data-repository/<id>`). **Back** returns to the list.

> Screenshot: The page of the dataset demo_orders on the Data tab: numbered rows, a type icon in every column header and the row and column count below. The Data tab. The icon in each column header is the detected type; more rows load as you scroll.

- **Data** shows the rows with row numbers and a type icon per column. Rows load in batches of 50 as you scroll. The footer shows the number of rows and columns.
- **AI Context** describes the table for the AI. It is shown only when the AI Assistant is available on your DDL; without it, the page shows the data without tabs.

The dataset page has no rename, share or delete action. Remove a dataset from the list; share it from the node it was saved from.

:::caution[Check the detected types]
DDL guesses each column's type from the data. A column of numbers stored as text, for example, can stay text. Check the type icons before you aggregate, and cast the column in SQL when needed.
:::

### AI Context

:::note[Availability]
The **AI Context** tab appears only when the AI Assistant is set up and switched on for your DDL. See [AI settings and data policy](/ai-settings).
:::

The **AI Context** tab holds "what Ask Data knows about this table. The AI reads it before it writes a query." A good context makes the answers of [Ask Data](/ai-assistant) more accurate. You can open the tab directly by adding `?tab=ai-context` to the dataset's address.

> Screenshot: The AI Context tab of demo_orders with the toolbar Suggest descriptions, Discard and Save, and the sections Sensitive data, About this table and Columns. AI Context. Text changes wait for Save; approvals, the sensitive switch, glossary terms and Verified SQL are saved at once.

| Section | What you add | Limits |
|---|---|---|
| **Sensitive data** | A switch that keeps the table's data away from outside AI models. A table that comes from a sensitive project is sensitive automatically. | Saved at once |
| **About this table** | **Description** of the table, and **Instructions for the AI**: rules to follow, for example "amounts are in rupiah". | 2,000 characters each |
| **Columns** | A description per column, with a filter box. Descriptions of columns that left the table are marked **Column no longer in the table** and can be removed. | 500 characters per column |
| **Glossary** | Business terms and their meaning in this table, with **Add term**. | Term 100, definition 1,000 characters |
| **Verified SQL** | Trusted queries for typical questions, with **Add Verified SQL**: a question, the SQL (write the table as `` `demo_orders` ``) and an optional **Bar**, **Line** or **Table** chart. DDL runs the query once to check it before saving. | Question 500, SQL 20,000 characters |

The toolbar at the top:

- **Suggest descriptions** lets the AI write a table description and the missing column descriptions. Its progress shows as "Suggesting… 3 of 6" with **Stop**. Suggestions carry an **AI suggestion** badge until you **Approve** them, one by one or with **Approve all suggestions**. It needs an AI model connected in [AI settings](/ai-settings); without one, it shows an error instead of suggestions.
- **Save** stores text you typed; **Discard** throws it away. Edited text shows **Not saved** until you save, and is stored as approved.

Only the owner of the table, or a superadmin, can change the AI Context. Everyone else who can see the table reads it, with the note "Only the owner of this table … can change it." The sensitive-data policy and the company model are described in [AI settings and data policy](/ai-settings).

## Use a dataset in a project

Importing a dataset adds it as a node to a project's pipeline. You need **Modify Project** permission on that project.

You can also chart a dataset directly, without importing it: in the [chart builder](/charts), **Data › Datasets** lists up to 500 datasets you own or that were shared with you. Creating the chart still needs **Modify Project** on its project.

1. Open the project's **Pipeline** and click **Add data**.
2. Choose the **Data Repository (Internal)** tab. The panel reads "Select Dataset: Choose dataset you want to use from data repository".
3. Find the dataset with the search box and click it. The eye icon (**Preview Dataset**) shows its rows first.
4. Click **Continue**.
5. The **Import this dataset** step opens. In **Save As**, keep the dataset's name or type another node name. It must be unique in the project.
6. Switch on **Auto Sync from dataset source** if the node should follow changes of the dataset (see below).
7. Click **Import Dataset**.

> Screenshot: The Add data panel of Marketing Sandbox on the Data Repository (Internal) tab with a numbered list of datasets and orders_enriched selected. Add data › Data Repository (Internal): pick a dataset, Continue, name the node and import it.

DDL confirms that the dataset was imported as a node, and the node appears on the canvas.

**Auto Sync from dataset source** matters for datasets that come from a project node:

- **On**: whenever the source node gets new data, DDL syncs this node and the nodes downstream of it. If the source node fails, this node is marked failed as well.
- **Off**: the node keeps the data it had when you imported or last synced it. Its side panel then says "Sync to use the most updated data"; click **Sync** to update it. You can change the switch later in the node's side panel.

Working with the node on the canvas is described in [Pipeline canvas](/pipelines).

## Save a project node

Any uploaded-file node or derived node (for example a SQL node or an imported table) can be saved to the repository, so other projects can import it. You need **Modify Project** permission, and the node must not be running or failed.

1. On the project's Pipeline canvas, click the node, for example `orders_enriched`.
2. In the side panel, click **Data Repository**.
3. In the **Data Repository** dialog, switch on **Save orders_enriched to Data Repository:**.

> Screenshot: The Data Repository dialog for the node orders_enriched with the save switch on and the Share Data Repository section, whose Members tab lists Dana Analyst. The Data Repository dialog of a node: save it to the repository, then share it from the same dialog.

DDL confirms that the dataset was added, and the **Data Repository** button gets a green check. The dataset gets the node's name and the project's name in **Added From**.

A saved dataset follows its node. Every time the node gets new data, the dataset is updated, and nodes that import it with Auto Sync on are synced. If the node is later deleted from its project, the dataset keeps its last data.

To take the dataset out of the repository, switch the same toggle off. That is refused while a project imports the dataset: "One or more projects are using this Dataset as Connection Nodes. Please delete those nodes first."

:::tip[Data that changes]
For a file you will replace from time to time, upload it into a project with **Save to Data Repository** on. Later, replace the file with **Update File** in the node's menu: the dataset, and every Auto Sync node that imports it, follow.
:::

## Share a dataset

The owner of a dataset can share it with people or roles. They then see it in their Data Repository and can import it into their own projects.

1. Open the **Data Repository** dialog of the node the dataset was saved from, as in [Save a project node](#save-a-project-node). Sharing is available once the save switch is on; before that the dialog says "Please enable "save to data repository" to be able to share."
2. Under **Share Data Repository**, click **Add New Access**.
3. In **Add Members or Roles**, search **Select Members or Roles** and pick one or more entries.
4. Click **Save**.

The **Members** and **Roles** tabs list who has access. To take access away, open the ⋮ menu of an entry and click **Delete**, then confirm. Whether you may share depends on your account type; if you may not, the dialog shows a warning at the top. Datasets uploaded straight into the repository have no node, so this dialog is not available for them.

## Remove a dataset

1. In the table view, click the trash button of the dataset.
2. Confirm in **Remove Dataset** ("Are you sure want to remove … dataset from your data repository?") with **Delete**.

A dataset that is imported as a node in any project cannot be removed: **Remove Error** says "One or more projects are using this Dataset as Connection Nodes. Please delete those nodes first." Delete those dataset nodes, then remove the dataset.

There is no way to replace the contents of an uploaded dataset. Upload the new file under a new name, or remove the old dataset first and upload it again under the same name.

## Troubleshooting

| Symptom | Cause | What to do |
|---|---|---|
| "File is too large, limit is 20.0MB" | The upload is over 20 MB | Split the file, or load the data through a [connection](/connections). |
| **Add to Data Repository** fails right after a good preview | The file name has an upper-case extension or an extra dot | Rename the file, for example to `demo_orders.csv`, and choose it again. |
| "Dataset with the same name already exists" | You already have a dataset with that name | Pick another **Name**. |
| A dataset is missing from **Add data** › **Data Repository (Internal)** | It is neither yours nor shared with you | Ask its owner to share it with you. |
| "Node with the name '…' already exist, please use another name" | The project already has a node with that name | Change **Save As**. |
| An imported node shows old data | **Auto Sync** is off | Click **Sync** in the node's side panel, or switch Auto Sync on. |
| The **AI Context** tab is missing | The AI Assistant is not available on your DDL | Ask your administrator; see [AI settings and data policy](/ai-settings). |
| The trash button gives **Remove Error** | A project imports the dataset | Delete the dataset nodes that use it, then remove it. |

## Related pages

  - [Pipeline canvas](/pipelines): Add data to a project and work with dataset nodes.
  - [Projects](/projects): Create projects and share them.
  - [AI Assistant](/ai-assistant): Ask questions about Data Repository tables with Ask Data.
  - [SQL Query](/sql): Query the nodes of a project, including imported datasets.
