# Datastore FAQ

Source: https://userguide.qualytics.io/source-datastore/datastore/faq/

Answers to frequently asked questions about source datastores in Qualytics.

> **Info: Errors and how to fix them**
>
> A failing connection test, a red status dot, a Sync that misses tables, schemas that fail when several are created at once, a blocked deletion, and every Secrets Management error are covered on [Source Datastore Troubleshooting](https://userguide.qualytics.io/source-datastore/datastore/troubleshooting/).

## General

### What is a source datastore?

A source datastore is a connection to your data infrastructure (database, warehouse, or file storage) that Qualytics monitors for data quality. It represents a specific scope within a system: for example, a database + schema for JDBC or a root path for DFS.

### What is the difference between JDBC and DFS datastores?

|  | JDBC | DFS |
| --- | --- | --- |
| **Data sources** | Relational databases and SQL-based warehouses | Cloud object storage and distributed file systems |
| **Data model** | Tables and views | Files and file patterns |
| **Scope** | Database + Schema | Root path |
| **Examples** | PostgreSQL, Snowflake, BigQuery, MySQL, Oracle | Amazon S3, Azure Data Lake Storage, Google Cloud Storage |

### What connectors are supported?

**JDBC** (20 connectors): Athena, BigQuery, Databricks, DB2, Dremio, Fabric, Hive, MariaDB, MySQL, Oracle, PostgreSQL, Presto, Redshift, SAP HANA, Snowflake, SQL Server, Synapse, Teradata, TimescaleDB, Trino.

**DFS** (3 connectors): Amazon S3, Azure Data Lake Storage (ABFS), Google Cloud Storage.

**Native**: AWS Glue Native, Hive Native, MongoDB, Salesforce, Unity Catalog Native, plus Databricks Native on Databricks-based deployments. Availability depends on the deployment.

### Is there a limit on the number of datastores I can create?

There is no programmatic limit on the number of datastores. You can create as many as your deployment supports.

### What file formats does DFS support?

DFS datastores support **Parquet**, **AVRO**, **CSV**, **JSON**, **Delta**, **Iceberg**, **ORC**, and more. CSV files support configurable options such as header detection, escape characters, and empty-as-null treatment.

---

## Connections

### Can multiple datastores share the same connection?

Yes. A connection stores credentials and endpoint information, while a datastore represents a specific data scope. One Snowflake connection (host, role, warehouse, credentials) can serve multiple datastores, each pointing to a different schema (e.g., `production.public`, `production.sales`, `production.finance`).

### Can I change the connection of an existing datastore?

Yes, but the new connection must be the **same connector type** as the current one. For example, you can switch a PostgreSQL datastore from one PostgreSQL connection to another, but you cannot change it to a Snowflake connection. Changing the connection triggers a re-verification of the datastore.

### What happens if the connection credentials change?

When you update a connection's credentials (password, access keys) in Qualytics, the new credentials are verified against the source system before they are saved. If verification fails, the update is rejected and the previous credentials stay in place. If the credentials change on the source system side (for example, a password changed outside Qualytics), operations against the affected datastores start failing, and a datastore whose Sync fails shows a red status dot. Update the connection with working credentials; the dot turns green after the next Sync that succeeds. See [Source Datastore Troubleshooting](https://userguide.qualytics.io/source-datastore/datastore/troubleshooting/#signing-in).

### Can I use secrets management (HashiCorp Vault) with any connector?

Yes. Secrets management is available for all connector types, and it is not limited to HashiCorp Vault: any secrets manager that exposes a REST API with a login endpoint and token-based secret retrieval works. You can use `${key}` syntax in any connection property to reference secrets from your vault. Secrets are retrieved dynamically each time the connection is used, so password changes in your vault are picked up automatically. See [HashiCorp Vault](https://userguide.qualytics.io/source-datastore/datastore/deep-dive/hashicorp-vault/) for the setup steps, the KV version 1 vs 2 JSONPath rule, and namespaces, and [Source Datastore Troubleshooting](https://userguide.qualytics.io/source-datastore/datastore/troubleshooting/#secrets-management-reaching-vault) for the errors it can produce.

### What happens to the datastores if the connection is deleted?

A connection can only be deleted if it has **no datastores associated** with it. If datastores still use the connection, the deletion will fail with a `409 Conflict` error. You must delete or reassign those datastores first.

---

## Creating Datastores

### What does the "Initiate Sync" checkbox do?

When enabled, a sync operation is automatically triggered after the datastore is created. The sync detects all containers (tables, views, or file patterns) in the datastore. If disabled, you will need to manually trigger a sync operation before profiling or scanning.

### Can I create multiple datastores at once?

Yes. The [Multi-Schema Creation](https://userguide.qualytics.io/source-datastore/datastore/deep-dive/multiple-schema/) feature allows you to select multiple schemas from a single connection and create a datastore for each one in a single operation. This is also available via the [Datastore API](https://userguide.qualytics.io/source-datastore/datastore/api/#multi-schema-creation) for automation.

### What is the Name Template in multi-schema creation?

The Name Template defines the naming pattern for each datastore created in a multi-schema flow. On a JDBC or Native connector, use `{{schema}}` as a placeholder that gets replaced with the actual schema name. For example, `prod_{{schema}}` produces `prod_public`, `prod_sales`, `prod_finance`. On a DFS connector, use `{{path}}` or `{{path_segment}}` instead, such as `prod_{{path_segment}}`.

### Can I duplicate a datastore?

There is no built-in duplication feature. To create a similar datastore, use the same connection and configure the new datastore with the desired properties. For bulk creation, use the [Multi-Schema Creation](https://userguide.qualytics.io/source-datastore/datastore/deep-dive/multiple-schema/) feature or the [Datastore API](https://userguide.qualytics.io/source-datastore/datastore/api/#create-a-datastore).

---

## Managing Datastores

### Can I rename a datastore?

Yes. You can rename a datastore through the [Edit Datastore](https://userguide.qualytics.io/source-datastore/datastore/how-tos/edit-datastore/) option in the Settings menu or via the [API](https://userguide.qualytics.io/source-datastore/datastore/api/#update-a-datastore). Datastore names must be unique within your deployment (max 255 characters).

### How does the Datastores list search box work?

The search box matches partial names (case-insensitive) and exact IDs. Typing part of a datastore's name returns every datastore whose name contains those characters. If the input is a number, the box also returns the datastore whose ID equals that number. The [`search` API parameter](https://userguide.qualytics.io/source-datastore/datastore/api/#list-datastores) exposes the same behavior.

### Can I move a datastore between teams?

Yes. You can reassign teams through the update endpoint or the Edit Datastore settings. Changing teams requires the **Manager** or **Admin** role; a Manager also needs the **Editor** team permission on the datastore. Note that updating teams **replaces** the entire team list, so include all desired teams in the update.

### What happens when I delete a datastore?

Deletion is **permanent and cascading within Qualytics**. It does not delete physical tables or files in your infrastructure:

- Qualytics records for the datastore's containers and fields are deleted.
- All quality checks associated with the datastore are removed.
- All anomalies and scan results are permanently deleted.
- All scheduled operations are cancelled, and any operation still queued or running is asked to abort before the records are removed. The deletion does not wait for that abort to be confirmed.
- If the datastore writes to an enrichment destination, the link is removed (the destination itself is not deleted).
- If it is an enrichment datastore, its linked sources are unlinked and their remediation strategies reset to **None**. Data already written remains in storage.

> **Warning**
>
> Remove flow and dependent computed-join references before deleting. For an enrichment destination, linked sources must also have no scheduled or flow-based Export or Materialize operations that depend on it. See [Delete Datastore](https://userguide.qualytics.io/source-datastore/datastore/how-tos/delete-datastore/).

### What permissions are needed to manage datastores?

| Action | Minimum Permission |
| --- | --- |
| View datastores | Member role with team access |
| Create a datastore | Manager role and the Editor team permission in at least one assigned team |
| Edit a datastore | Member role and Editor team permission |
| Delete a datastore | Admin |
| Assign tags | Member role and Editor team permission |
| Assign teams | Manager role and Editor team permission |
| Toggle favorite | Member |
| Link enrichment | Member role and Editor team permission on the source |
| Unlink enrichment | Admin |

In this table, **Member**, **Manager**, and **Admin** are platform roles; **Editor** is a team permission granted on the datastore through its teams. Admins bypass team-permission restrictions.

---

## Enrichment

### Can I use a datastore without an enrichment destination?

Yes. Enrichment is optional. Without a destination, Qualytics still tracks anomalies and checks internally. However, scan results, source record examples, and remediation data are **not** written to your own infrastructure, and Export and Materialize are unavailable.

### Can I link a destination after creating the datastore?

Yes. You can link one at any time through the [Link an Enrichment Destination](https://userguide.qualytics.io/source-datastore/enrichment-datastore/how-tos/link-enrichment/) flow or via the [API](https://userguide.qualytics.io/source-datastore/datastore/api/#link-an-enrichment-destination).

### Which connectors support enrichment datastores?

Any connector Qualytics can write to. For the list, see [Supported Connectors](https://userguide.qualytics.io/source-datastore/datastore/deep-dive/supported-connectors/). A datastore on any connector can still be linked to a destination on another.

---

## Operations

### What is the correct order of operations?

The recommended order is **Sync → Profile → Scan**:

1. **Sync** detects containers (tables, views, files) in the datastore.
2. **Profile** analyzes the data to generate metadata and infer quality checks.
3. **Scan** executes the quality checks and identifies anomalies.

### What happens if a sync operation fails?

Containers are assigned a status based on the sync result:

| Status | Description |
| --- | --- |
| **Available** | Container was found and successfully analyzed. |
| **Changed** | Container fields changed since the last sync. A re-profile is recommended. |
| **Inaccessible** | Container was not found. It may have been removed or the credentials lack permission. |
| **Unloadable** | Container appears in the listing but could not be analyzed (e.g., corrupt data, unsupported format). |

Hover over a container's status in the app to see what it means, why the container is in that state, and, when action is needed, how to restore it.

### Can I run operations on specific tables only?

Yes. When initiating a Profile or Scan operation, you can select **All**, **Specific** tables/file patterns, or filter by **Tag**. This allows you to target specific datasets without scanning the entire datastore.

---

## Multi-Schema: General

### What is multi-schema source datastore creation?

It is a feature that allows you to discover and select multiple schemas from a single connection and create all corresponding source datastores in one step, instead of adding each schema individually.

### Which connectors support multi-schema creation?

JDBC-based connectors with a schema field support multi-schema creation, as do the AWS Glue Native, Hive Native, Unity Catalog Native, and MongoDB connectors. DFS-based datastores (Amazon S3, Azure Datalake Storage, Google Cloud Storage) have no catalog/schema hierarchy, so they support bulk creation from several root paths instead, with the `{{path}}` or `{{path_segment}}` placeholders in the name template. See the full list in [Supported Connectors](https://userguide.qualytics.io/source-datastore/datastore/deep-dive/supported-connectors/).

### Can I use multi-schema creation with an existing connection?

Yes. You can either create a new connection or reuse an existing one. When using an existing connection, you can only configure the datastore-specific properties (catalog, schemas, name template, teams, group, and initiate sync).

### Is there a limit on how many schemas I can select at once?

There is no hard limit on the number of schemas you can select for creation. However, the validation endpoint accepts a maximum of **50 schemas per request**. If you have more than 50 schemas, validate them in batches. The creation endpoint itself has no such limit.

### Can I edit the datastores created in bulk after creation?

Yes. Each datastore created through the multi-schema flow is a regular source datastore. You can edit, delete, or reconfigure them individually through the [Edit Datastore](https://userguide.qualytics.io/source-datastore/datastore/how-tos/edit-datastore/) just like any other datastore.

### Can I delete all datastores created in bulk at once?

No. There is no bulk delete option tied to the multi-schema creation. Each datastore must be deleted individually through the [Delete Datastore](https://userguide.qualytics.io/source-datastore/datastore/how-tos/delete-datastore/) settings.

### Can I use multi-schema creation for enrichment datastores?

Yes, through the API. Set `enrichment_only: true` in the bulk creation request and every datastore in the batch is created as an enrichment datastore. This option is not available in the UI, only via the [Datastore API](https://userguide.qualytics.io/source-datastore/datastore/api/#multi-schema-creation).

### A new schema was added to my database. How do I add it to Qualytics?

Run the multi-schema flow again using the same connection. The schema discovery will show all available schemas, including the new one. Schemas that already have a datastore will display a warning icon, so you can easily identify and select only the new schema.

Alternatively, you can use the [Datastore API](https://userguide.qualytics.io/source-datastore/datastore/api/) to discover and create the datastore for the new schema programmatically.

### How do I know which datastores were created by multi-schema vs. individually?

There is no visual indicator that distinguishes them. Once created, a datastore from multi-schema is identical to one created individually. If you need to track this, use a consistent naming convention through the name template (e.g., `batch_{{schema}}`) or apply a specific tag during creation.

## Multi-Schema: Permissions

### Who can use multi-schema creation?

Users with the **Manager** or **Admin** role can use multi-schema creation. This is the same permission required to create a single datastore.

### Are there different permissions for discovery, validation, and creation?

No. All operations in the multi-schema flow - catalog discovery, schema discovery, validation, and bulk creation - require the same **Manager** role.

> **Info: Full Permission Matrix**
>
> For a complete overview of all permissions across all features, see the [Team Permissions](https://userguide.qualytics.io/settings/access/teams/team-permissions/overview/) page.

### Can I assign different teams to different schemas?

No. In the multi-schema flow, all source datastores created in the batch are assigned to the same teams. If you need different team assignments, you can change them individually after creation through the [Edit Datastore](https://userguide.qualytics.io/source-datastore/datastore/how-tos/edit-datastore/) settings.

## Multi-Schema: Schema Discovery

### How are schemas discovered?

When you provide connection credentials and select a catalog (if applicable), Qualytics queries the database's information schema to retrieve the list of available schemas. This happens in real-time during the creation flow.

### What does the warning icon next to a schema mean?

The warning icon indicates that the schema already has one or more existing datastores in Qualytics. A tooltip shows which datastores are associated. You can still select it, but this will create a duplicate datastore for that schema.

### Can I refresh the list of available schemas?

Yes. Click the **refresh** button next to the catalog or schema dropdown to re-query the connection and reload the available options.

### Does discovery show system schemas (e.g., information_schema, pg_catalog)?

Yes - discovery returns all schemas visible to the database user, including system schemas. You can simply skip selecting them. Only the schemas you explicitly select will have datastores created.

## Multi-Schema: Name Templates

### What is a name template?

A name template is a naming pattern applied to every datastore in the batch. For schema-based connectors it uses the `{{schema}}` placeholder, replaced with each schema name: `production_{{schema}}` with schema `public` becomes `production_public`. For DFS connectors it uses `{{path}}` (the whole root path, with slashes turned into underscores) or `{{path_segment}}` (the last part of the path).

### Is `{{schema}}` the only placeholder available?

For schema-based connectors, yes. DFS connectors use `{{path}}` or `{{path_segment}}` instead, since their datastores are created from root paths rather than schemas.

### Can I use the name template without the `{{schema}}` placeholder?

Not for schema-based connectors: `{{schema}}` is required so that each datastore gets a unique name. For DFS connectors a placeholder is optional. Without one, the last segment of each root path is appended to the template, separated by an underscore, or by a hyphen when the template contains spaces.

### Can a datastore name contain curly braces?

No. A new datastore's name cannot contain `{` or `}`. With one schema selected, the **Name** field shows **Remove { and }. A name template only applies with two or more selected** and clicking **Finish** does not create the datastore until you remove them. In a batch, a generated name that keeps braces, for example from an unsupported placeholder such as `{{foo}}`, is not created and is reported as an error, while the other datastores are still created.

### What happens to the template if I narrow the selection to one schema?

The **Name Template** field becomes **Name**, and the `{{schema}}` placeholder is filled in with the schema that is left: `production_{{schema}}` with only `public` selected becomes `production_public`. For DFS connectors, `{{path}}` and `{{path_segment}}` are filled in from the remaining root path the same way.

### Can I preview the generated names before creating?

Yes. A preview is displayed below the name template field showing how the first few datastores will be named based on your selected schemas.

### What happens if the generated name conflicts with an existing datastore?

That datastore is not created. Qualytics rejects a generated name that already exists and reports it as an error ("Datastore '' already exists with id: "), while the other datastores in the batch are still created. Use a name template that produces names not already in use.

### Can I rename a datastore after it was created by multi-schema?

Yes. You can rename any datastore through the [Edit Datastore](https://userguide.qualytics.io/source-datastore/datastore/how-tos/edit-datastore/) settings, regardless of how it was created.

## Multi-Schema: Enrichment

### Is linking an enrichment destination required?

No. The step is optional. You can click **Finish** after the datastore configuration to skip it. However, linking a destination is recommended for full data quality visibility.

### Can I link different destinations to different schemas?

No. In the multi-schema flow, all datastores created in the batch are linked to the same destination. If you need different destinations for different schemas, change the link individually after creation through [Link an Enrichment Destination](https://userguide.qualytics.io/source-datastore/enrichment-datastore/how-tos/link-enrichment/).

### Can I change the destination after creation?

Yes. Open the datastore's enrichment settings and pick another destination; there is no need to unlink first. See [Link an Enrichment Destination](https://userguide.qualytics.io/source-datastore/enrichment-datastore/how-tos/link-enrichment/#change-the-destination).

### What is the enrichment prefix?

The prefix is a string prepended to table names when Qualytics writes metadata to the enrichment destination. It helps uniquely identify which source datastore the enrichment data belongs to. It is generated from the name template and can be changed in the **Enrichment Destination** step.

### Is the enrichment prefix the same for all datastores created in the batch?

No. Each datastore in the batch gets its own prefix, derived from its name, which comes from the name template and the schema name. You can change any of them with **Edit prefixes** in the **Prefix** section before you click **Finish**.

## Multi-Schema: Integration with Other Features

### Can I use multi-schema creation together with datastore grouping?

Yes. You can assign all newly created datastores to a [datastore group](https://userguide.qualytics.io/source-datastore/grouping/getting-started/) during the creation flow by selecting a group in the form. All datastores in the batch will be assigned to the same group.

### Can I add tags during multi-schema creation?

Yes, through the API. The bulk creation request accepts a `tags` field that applies the specified tags to all created datastores. The UI form does not include a tags field during creation, but you can add tags to individual datastores after creation.

### Do the created datastores automatically appear in my team's view?

Yes. The datastores are assigned to the teams you select during creation and will be visible to all users in those teams according to their permission level.

### Does multi-schema creation work with Secrets Management?

Yes. If your connection uses Secrets Management, you can use `${key}` references in connection properties. The secrets are resolved dynamically each time the connection is used, including during schema discovery and datastore creation.

## Multi-Schema: Operations

### What happens when I enable "Initiate Sync"?

When enabled, a sync operation is automatically triggered on each newly created source datastore after creation. The sync operations run independently and detect containers and fields within each schema.

### Do all sync operations run at the same time?

The sync operations are triggered sequentially as each datastore is created, but they run independently and may execute in parallel depending on system capacity.

### Can I schedule operations in bulk for the datastores created?

There is no bulk scheduling option tied to multi-schema creation. Operations (sync, profile, scan) must be scheduled individually for each datastore. However, you can use the [Datastore API](https://userguide.qualytics.io/source-datastore/datastore/api/) to automate scheduling across multiple datastores programmatically.

## Multi-Schema: Performance

### Does multi-schema creation take longer with many schemas?

Yes. Each schema is validated and created individually within the bulk operation. More schemas means more validation and creation steps. For very large numbers of schemas (50+), consider breaking the operation into smaller batches.

### Is there a validation limit?

Yes. The validation endpoint accepts a maximum of **50 schemas per request**. If you need to validate more, split them into multiple validation requests. The creation endpoint itself has no such limit.

### Can I run multi-schema creation while other operations are running?

Yes. Multi-schema creation does not block other operations. However, if you enable "Initiate Sync", the sync operations that start after creation will compete for system resources with any other running operations.

---

## HashiCorp Vault: How it behaves

#### Does Qualytics cache the secret?

No. The login and the fetch happen every time the connection is opened, including connection tests, syncs, profiles, and scans. This is what makes a credential changed in Vault take effect automatically, and it is also why Vault must stay reachable for as long as the datastore is in use. Only a failure to reach Vault is remembered: for five minutes after one, tests and operations fail right away without contacting Vault, and the message says when the next try happens. See [How It Works](https://userguide.qualytics.io/source-datastore/datastore/deep-dive/hashicorp-vault/#the-four-steps).

#### What happens if Vault is down?

Every operation on datastores using that connection fails until Vault answers again, with a connection-test message that names the stage that failed. Nothing is stored in Qualytics to fall back on, by design. See [Troubleshooting](https://userguide.qualytics.io/source-datastore/datastore/deep-dive/hashicorp-vault/).

#### Do I need to re-enter anything when a credential changes?

Only if the credential that changed is the one Qualytics logs in to Vault with. A changed database password or access key inside the secret is picked up on the next use. A rotated AppRole secret ID must be updated in the **Credentials Payload**.

---

## HashiCorp Vault: Setup choices

#### Which Vault auth method should I use?

Any method that returns a token from a `POST` works, and all of them return it at `$.auth.client_token`. AppRole is the usual choice for a service like Qualytics because it is not tied to a person's account and its secret ID can be rotated independently. See [Prepare Vault](https://userguide.qualytics.io/source-datastore/datastore/how-tos/prepare-vault/).

#### Why does the form pre-fill `$.data` when my secret needs `$.data.data`?

`$.data` is correct for KV version 1 and for the database secrets engine. KV version 2, the default for new mounts, nests the key/value pairs one level deeper. Check the secret's API path: if it contains `/data/`, use `$.data.data`. See [Choosing the Data JSONPath](https://userguide.qualytics.io/source-datastore/datastore/deep-dive/hashicorp-vault/#choosing-the-data-jsonpath).

#### Can one secret serve several connections?

Yes. Any number of connections can point at the same **Secret URL**, each referencing the keys it needs. A separate role per team or per environment keeps the policies narrow.

#### Can a file, such as a keytab or a service account key, come from Vault?

Yes. Next to any connection file field, click **Type a value instead**  and enter `${key}` for the key that holds the file's contents, instead of uploading the file. The reference is checked when you save, and an unknown key is rejected with the keys the secret does hold. Store a keytab as its base64 form, since a reference is used exactly as stored. See [File fields](https://userguide.qualytics.io/source-datastore/datastore/deep-dive/hashicorp-vault/#file-fields).

#### Can I reference a secret inside the Secrets Management fields themselves?

No. Substitution applies to the connection's own fields, such as host, username, password, access keys, and role ARN. The six Secrets Management fields are used as typed.

#### Does updating a connection through the API keep its secrets manager?

Yes. `PUT /api/connections/{id}` keeps the saved Secrets Management setup when the request leaves `secrets_manager` out, so the connection's secret references keep resolving. To remove the secrets manager from the connection, send `"secrets_manager": null`.

---

## HashiCorp Vault: Other secrets managers

#### Which products besides Vault work?

Any product whose REST API can be driven with the six fields: a login `POST` that returns a token in a JSON body, and a `GET` that returns the secret as a JSON object. Examples include CyberArk Conjur, Azure Key Vault behind a REST gateway, and AWS Secrets Manager exposed through an API Gateway. Adjust the **Token JSONPath**, **Data JSONPath**, and **Token Header Name** to the product's responses. One limit to plan for: the extracted token is sent as the header value with nothing added, so a product that expects `Authorization: Bearer <token>` must return the token with the `Bearer` prefix already in it, which usually means a gateway in front of it. See [How It Works](https://userguide.qualytics.io/source-datastore/datastore/deep-dive/hashicorp-vault/#the-six-fields).

#### Does Qualytics support a namespace header?

No. Namespaces are expressed in the URL paths, right after `/v1/`, which Vault accepts everywhere. See [Namespaces](https://userguide.qualytics.io/source-datastore/datastore/deep-dive/hashicorp-vault/#namespaces).

**Still have questions?**
Contact the Qualytics support team at
[support@qualytics.ai](mailto:support@qualytics.ai).

*Last updated: November 17, 2026.*
