> ## Documentation Index
> Fetch the complete documentation index at: https://zenskar.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Reference: Data sources

> This document presents the screens, fields, permissions, API operations, and troubleshooting of data sources.

## Data Sources screen: controls and columns

The **Data Sources** screen lists the [data sources](https://zenskar.com/docs/20260301/zenskar-modules/usage/glossary.md#data-source) of your [organization](https://zenskar.com/docs/20260301/zenskar-modules/settings/glossary.md#organization). To open it, go to **Usage** > **Data Sources**.

### Controls

| Control | Description |
| - | - |
| **Search Data Source** | Finds data sources whose name contains the text that you enter. Selecting a result opens the screen of the data source. |
| **ADD DATA SOURCE** | Opens the **Add New Data Source** screen. |

### Columns

| Column | Content | Sortable |
| - | - | - |
| **Name** | The name of the data source. Click the row to open the screen of the data source. | Yes |
| **Connector** | The [data-source connector](https://zenskar.com/docs/20260301/zenskar-modules/usage/glossary.md#data-source-connector). | Yes |
| **Status** | **Active**, **Failed**, or **Disabled**. **Failed** means that Zenskar cannot connect to the system. | No |
| **Connection Type** | **Sync** for a [synced data source](https://zenskar.com/docs/20260301/zenskar-modules/usage/glossary.md#synced-data-source), or **Remote** for a [remote data source](https://zenskar.com/docs/20260301/zenskar-modules/usage/glossary.md#remote-data-source). | No |

Click a sortable column header to sort in ascending order. Click it again to sort in descending order. Click it a third time to remove the sorting. The list has no filters.

## Add New Data Source screen: fields and their rules

**ADD DATA SOURCE** on the **Data Sources** screen opens the **Add New Data Source** screen. It creates a data source.

### Set Up Source

| Field | Required | Default | Details |
| - | - | - | - |
| **Source Name** | Yes | None | The name of the data source. |
| **Source Type** | Yes | None | The data-source connector. The list shows the 16 data-source connectors in alphabetical order. See [Data-source connectors: how Zenskar reads a data source](https://zenskar.com/docs/20260301/zenskar-modules/usage/concepts/data-sources.md#data-source-connectors-how-zenskar-reads-a-data-source). |

### Source Config

This area holds the connection settings of the selected data-source connector. The fields depend on the data-source connector. The form marks each required field. Until you select a **Source Type**, the area is empty. The document of each data-source connector explains its fields.

### Source Access

| Option | Details |
| - | - |
| **Directly from Source** | It creates a remote data source. It is available for Amazon Athena, Amazon Redshift, BigQuery, Databricks, MySQL, PostgreSQL, and Snowflake. It is the default when it is available. It is the only option for BigQuery. |
| **Sync to Zenskar** | It creates a synced data source. It is available for every data-source connector except BigQuery. It is the only option when **Directly from Source** is not available. |

### Actions

| Action | Description |
| - | - |
| **SAVE SOURCE** | Saves the data source. For a remote data source, the dashboard confirms the save and shows **BACK**. For a synced data source, the screen of the data source opens. |
| **CANCEL** | Returns to **Data Sources** without saving. |

### Constraints: what each field accepts

| Property | Constraint |
| - | - |
| **Source Name** | The name can contain letters, digits, underscores, hyphens, and spaces. |
| **Source Type** | The data-source connector cannot change after you save the data source. |
| **Source Config** | Each marked field needs a value. |
| | The connection settings cannot change after you save the data source. |
| **Source Access** | The access cannot change after you save the data source. |
| Data source | A data source cannot be deleted. |

## Data source screen: tables, columns, and syncs

Clicking a data source on the **Data Sources** screen opens the screen of the data source. The screen depends on the access of the data source.

### Remote data source

The screen shows that the data source is read-only. When Zenskar cannot connect to the system, the screen shows the reason instead.

### Synced data source

The screen has the title **Sync Required Tables & Columns**. While Zenskar reads the system, the screen shows that this can take a few minutes. When Zenskar cannot connect to the system, the screen shows the reason instead of the tables.

| Action | Description |
| - | - |
| **REFRESH SOURCE** | Reads the system again. New kinds of records and new fields show as new tables and columns. It does not change the connection settings. |
| **PAUSE SYNC** | Stops the scheduled syncs. It takes effect right away. While syncing is paused, the button shows **RESUME SYNC**. **RESUME SYNC** restarts the scheduled syncs. |
| **SYNC NOW** | Starts a sync right away, between the scheduled syncs. |
| **FINISH SETUP** | Saves the chosen tables and columns and the [sync frequency](https://zenskar.com/docs/20260301/zenskar-modules/usage/glossary.md#sync-frequency). The **Data Sources** list opens. |

#### Tables

| Column | Description |
| - | - |
| **Table Name** | The name of the table. The add icon next to it opens the **Edit Table** window. |
| Switch | The switch turns syncing of the table on or off. Turning on a table syncs all its columns. The switch in the column header turns all tables on or off. |

#### Edit Table window

| Column | Description |
| - | - |
| **Column Name** | The name of the column. |
| **Data Type** | The data type of the column. |
| **Cursor** | You can select one column as the [cursor column](https://zenskar.com/docs/20260301/zenskar-modules/usage/glossary.md#cursor-column). |
| **Primary Key** | You select one column as the primary key. |
| Switch | The switch turns syncing of the column on or off. The switch in the column header turns all columns on or off. |

**SAVE** keeps the choice for the table. **FINISH SETUP** on the screen saves it.

| Property | Constraint |
| - | - |
| **Cursor** | The cursor column must be a column that you sync. |
| | Without a cursor column, each sync replaces the whole table in the [synced usage data](https://zenskar.com/docs/20260301/zenskar-modules/usage/glossary.md#synced-usage-data). |
| **Primary Key** | When the columns of a table are chosen one by one, one of them must be the primary key. |

#### DATA SOURCE INFO and SYNC INFO

| Item | Description |
| - | - |
| **Source Type** | The data-source connector of the data source. |
| **Datasource Name** | The name of the data source. |
| **Last Synced** | The time of the latest sync. |
| **Select Frequency** | The sync frequency. The options are **Every 1 hours**, **Every 2 hours**, **Every 3 hours**, **Every 4 hours**, **Every 6 hours**, **Every 12 hours**, and **Every 24 hours**. The default is **Every 12 hours**. |

## Permissions

| Action | Required permission |
| - | - |
| View data sources and the screen of a data source | **Can Read Data Source**, in the **DATA\_SOURCE** group |
| Refresh a data source | **Can Read Data Source** |
| Sync now | **Can Read Data Source** |
| Add a data source | **Can Read Data Source** and **Can Create Data Source** |
| Choose the tables and columns to sync, or change the sync frequency | **Can Read Data Source** and **Can Update Data Source** |
| Pause or resume syncing | **Can Read Data Source** and **Can Update Data Source** |

The default **Owner** role has every permission. The default **User** role has read permissions only. With the default **User** role, you can start a sync. You cannot change what a data source syncs.

## API reference

| Operation | API reference |
| - | - |
| List data sources | [List data-source connectors](https://zenskar.com/docs/api-reference/data-sources/list-data-source-connectors.md) |
| Get a data source | [Get data-source connector](https://zenskar.com/docs/api-reference/data-sources/get-data-source-connector.md) |
| Create a data source | [Create data-source connector](https://zenskar.com/docs/api-reference/data-sources/create-data-source-connector.md) |
| Update a data source | [Update data-source connector](https://zenskar.com/docs/api-reference/data-sources/update-data-source-connector.md) |

The API reference names these operations "data-source connector". Each operation acts on a data source.

## Troubleshooting

| Problem | Cause | Solution |
| - | - | - |
| Zenskar does not save a new data source. | **Source Name** is empty or has other characters than letters, digits, underscores, hyphens, and spaces. | Correct the name. |
| Zenskar does not save a new data source. | A required connection setting is missing. | Fill in each marked field. |
| The screen of a data source shows a reason instead of the tables, or **Status** shows **Failed**. | Zenskar cannot connect to the system with the saved connection settings. | [Add a new data source](https://zenskar.com/docs/20260301/zenskar-modules/usage/how-to-guides/data-sources.md#add-a-data-source) with corrected settings, because the settings of a saved data source cannot change. |
| The **Edit Table** window does not save. | The columns of the table are chosen one by one. No column is the primary key. | Select one column under **Primary Key**. |
| A column cannot be selected as the cursor column. | The column is not synced. | Turn on the switch of the column first. |
| A table or column of the system is not listed. | The screen shows the tables and columns from the last time Zenskar read them. | [Refresh the data source](https://zenskar.com/docs/20260301/zenskar-modules/usage/how-to-guides/data-sources.md#refresh-a-data-source), and then choose the new table or column. |
| A [billable metric](https://zenskar.com/docs/20260301/zenskar-modules/usage/glossary.md#billable-metric) does not include recent [usage](https://zenskar.com/docs/20260301/zenskar-modules/usage/glossary.md#usage) from a synced data source. | The synced usage data is from the last sync, or syncing is paused. | [Sync now, or resume syncing](https://zenskar.com/docs/20260301/zenskar-modules/usage/how-to-guides/data-sources.md#sync-now-pause-or-resume-syncing). |
| Rows that are gone from the system also disappear from the synced usage data. | The table has no cursor column. Each sync then replaces the whole table. | Select a cursor column for the table. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.