---
metadata:
  - name: generator
    content: Diplodoc Platform v5.63.0
alternate:
  - en/troubleshooting/errors/ERR-DS_API-CONNECTION_CONFIG-SUBSELECT_NOT_ALLOWED
  - ru/troubleshooting/errors/ERR-DS_API-CONNECTION_CONFIG-SUBSELECT_NOT_ALLOWED
  - href: >-
      en/troubleshooting/errors/ERR-DS_API-CONNECTION_CONFIG-SUBSELECT_NOT_ALLOWED.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-CONNECTION_CONFIG-SUBSELECT_NOT_ALLOWED.html
title: DataLens On-premises error ERR.DS_API.CONNECTION_CONFIG.SUBSELECT_NOT_ALLOWED
description: >-
  This page describes the Subquery source is disallowed in the connection
  settings DataLens On-premises error.
vcsPath: >-
  en/troubleshooting/errors/ERR-DS_API-CONNECTION_CONFIG-SUBSELECT_NOT_ALLOWED.md
---

# [DataLens On-premises] Subquery source is disallowed in the connection settings

`ERR.DS_API.CONNECTION_CONFIG.SUBSELECT_NOT_ALLOWED`

This error occurs when subqueries to the source are disabled in the connection settings.

To fix it, enable the **Raw SQL level** option in the connection settings.

{% note info %}

This option is available for some database [connections](../../concepts/connection/index.md). For more details, see the description of the specific connection type.

{% endnote %}