---
metadata:
  - name: generator
    content: Diplodoc Platform v5.63.0
alternate:
  - en/troubleshooting/errors/ERR-DS_API-DB-COLUMN_DOES_NOT_EXIST
  - ru/troubleshooting/errors/ERR-DS_API-DB-COLUMN_DOES_NOT_EXIST
  - href: en/troubleshooting/errors/ERR-DS_API-DB-COLUMN_DOES_NOT_EXIST.md
    type: text/markdown
    title: Markdown version
csp:
  - script-src:
      - https://mc.yandex.ru
    img-src:
      - https://mc.yandex.ru
    connect-src:
      - https://mc.yandex.ru
      - wss://mc.yandex.ru
    child-src:
      - 'blob:'
      - https://mc.yandex.ru
    frame-src:
      - 'blob:'
      - https://mc.yandex.ru
    frame-ancestors:
      - 'blob:'
      - https://mc.yandex.ru
canonical: en/troubleshooting/errors/ERR-DS_API-DB-COLUMN_DOES_NOT_EXIST.html
title: DataLens On-premises error ERR.DS_API.DB.COLUMN_DOES_NOT_EXIST
description: >-
  This page describes the Requested database column does not exist DataLens
  On-premises error.
vcsPath: en/troubleshooting/errors/ERR-DS_API-DB-COLUMN_DOES_NOT_EXIST.md
---

# [DataLens On-premises] Requested database column does not exist

`ERR.DS_API.DB.COLUMN_DOES_NOT_EXIST`

Nonexistent field used.

Possible causes:

* A new field was added to the data source but the dataset has not been updated. To update the dataset, click [Update fields](../../dataset/create-dataset.md#update-fields).

* When building a dataset from a ClickHouse® connection, an SQL subquery is used. If this is the case, set an alias for the selected fields.

   Here is an example:

   ```sql
   SELECT DISTINCT
     id as offer_id,
     upper(proposed_meta)
     FROM
   ```

   DataLens may incorrectly identify the `upper(proposed_meta)` field, so you need to set an alias for it:

   ```sql
   SELECT DISTINCT
     id as offer_id,
     upper(proposed_meta) as upper_proposed_meta
     FROM
   ```

* When building a dataset, the SQL subquery makes an implicit reference to the selected fields (`SELECT * FROM`). To avoid an error, explicitly list the required fields in the `SELECT` clause.

<!-- source: en/_includes/clickhouse-disclaimer.md -->
_ClickHouse® is a registered trademark of [ClickHouse, Inc](https://clickhouse.com)._
<!-- endsource: en/_includes/clickhouse-disclaimer.md -->
