---
metadata:
  - name: generator
    content: Diplodoc Platform v5.63.0
alternate:
  - en/troubleshooting/errors/ERR-DS_API-DB-SOURCE_ERROR-TIMEOUT
  - ru/troubleshooting/errors/ERR-DS_API-DB-SOURCE_ERROR-TIMEOUT
  - href: en/troubleshooting/errors/ERR-DS_API-DB-SOURCE_ERROR-TIMEOUT.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-SOURCE_ERROR-TIMEOUT.html
title: DataLens On-premises error ERR.DS_API.DB.SOURCE_ERROR.TIMEOUT
description: This page describes the Data source timed out DataLens On-premises error.
vcsPath: en/troubleshooting/errors/ERR-DS_API-DB-SOURCE_ERROR-TIMEOUT.md
---

# [DataLens On-premises] Data source timed out

`ERR.DS_API.DB.SOURCE_ERROR.TIMEOUT`

Query execution time exceeded for the data source.


<!-- source: en/_includes/datalens/datalens-dataset-timeout-note.md -->
{% note info %}

DataLens limits the query execution time on the source to 80 seconds.

{% endnote %}
<!-- endsource: en/_includes/datalens/datalens-dataset-timeout-note.md -->

<!-- source: en/_includes/datalens/datalens-dataset-timeout-recommendations.md -->
To fix this error:

* Optimize the data in the source.
* Reduce the number of complex expressions with nested aggregations.
* Reduce the number of fields in the dataset.
* Create calculated fields at the dataset level instead of fields at the chart level.
<!-- endsource: en/_includes/datalens/datalens-dataset-timeout-recommendations.md -->
