---
metadata:
  - name: generator
    content: Diplodoc Platform v5.63.0
alternate:
  - en/troubleshooting/errors/ERR-DS_API-ACTION_NOT_ALLOWED
  - ru/troubleshooting/errors/ERR-DS_API-ACTION_NOT_ALLOWED
  - href: en/troubleshooting/errors/ERR-DS_API-ACTION_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-ACTION_NOT_ALLOWED.html
title: DataLens On-premises error ERR.DS_API.ACTION_NOT_ALLOWED
description: This page describes the Internal Server Error DataLens On-premises error.
vcsPath: en/troubleshooting/errors/ERR-DS_API-ACTION_NOT_ALLOWED.md
---

# [DataLens On-premises] Internal Server Error

`ERR.DS_API.ACTION_NOT_ALLOWED`

You may get this error when trying to retrieve data via the API.

The error means the specified dataset action is not allowed in this scenario. For example, when querying dataset data, you are only allowed to add or edit fields, but you cannot change the connection or add a new table to the query.

To avoid this error, when querying dataset data, use only actions related to fields: `add_field`, `update_field`, or `delete_field`.
