---
metadata:
  - name: generator
    content: Diplodoc Platform v5.63.0
alternate:
  - en/troubleshooting/errors/ERR-DS_API-DB
  - ru/troubleshooting/errors/ERR-DS_API-DB
  - href: en/troubleshooting/errors/ERR-DS_API-DB.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.html
title: DataLens On-premises error ERR.DS_API.DB
description: >-
  This page describes the Error executing a query in the data source DataLens
  On-premises error.
vcsPath: en/troubleshooting/errors/ERR-DS_API-DB.md
---

# [DataLens On-premises] Error executing a query in the data source

`ERR.DS_API.DB`

This error occurs when the data source, such as a DB, returns an error while executing an SQL query. This is the data source error and not a DataLens error.

Some common and clear query execution errors (e.g., [ERR.DS_API.DB.ZERO_DIVISION](./ERR-DS_API-DB-ZERO_DIVISION.md)) are handled separately. All errors that were not processed fall into the `ERR.DS_API.DB` category.