---
metadata:
  - name: generator
    content: Diplodoc Platform v5.63.0
alternate:
  - >-
    en/datalens/troubleshooting/errors/ERR-DS_API-DB-COMMIT_OR_ROLLBACK_FAILED.md
  - en/troubleshooting/errors/ERR-DS_API-DB-COMMIT_OR_ROLLBACK_FAILED
  - ru/troubleshooting/errors/ERR-DS_API-DB-COMMIT_OR_ROLLBACK_FAILED
  - href: en/troubleshooting/errors/ERR-DS_API-DB-COMMIT_OR_ROLLBACK_FAILED.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-COMMIT_OR_ROLLBACK_FAILED.html
title: 'DataLens On-premises error: ERR.DS_API.DB.COMMIT_OR_ROLLBACK_FAILED'
description: >-
  This page describes the `Failed to COMMIT or ROLLBACK` DataLens On-premises
  error.
vcsPath: en/troubleshooting/errors/ERR-DS_API-DB-COMMIT_OR_ROLLBACK_FAILED.md
---

# [DataLens On-premises] Failed to COMMIT or ROLLBACK

`ERR.DS_API.DB.COMMIT_OR_ROLLBACK_FAILED`

This error occurs when the driver fails to complete the transaction with the `COMMIT` or `ROLLBACK` command. The error may be caused by a connection failure, server unavailability, or an issue with the transaction state.

To fix this error, try the following:

* Repeat the request.
* Make sure the server is available and check its logs, status of transactions, and connection settings.


* If the error persists, contact the database administrator or Yandex Cloud [support](https://center.yandex.cloud/support). In your message, describe when the error occurs.

