Understand Tableau Hyper: handle .hyper files and the API safely
Hyper is Tableau’s analytics engine. The Hyper API is a developer tool for creating, reading, or changing local .hyper database files. It helps automate Tableau extracts, but the .hyper file alone does not necessarily preserve the original Tableau connection and full data model. A file also cannot be opened by the API while Tableau Desktop has it open; some creation modes can replace an existing file with an empty database. Work on a copy and choose file modes deliberately.
Hyper is Tableau’s analytics engine. The Hyper API is a developer tool for creating, reading, or changing local .hyper database files. It helps automate Tableau extracts, but the .hyper file alone does not necessarily preserve the original Tableau connection and full data model. A file also cannot be opened by the API while Tableau Desktop has it open; some creation modes can replace an existing file with an empty database. Work on a copy and choose file modes deliberately.
This guide reflects Tableau Hyper API and Tableau Desktop Help reviewed on 19 November 2026. Examples follow the Python documentation; lifecycle concepts apply across documented client languages. Check API, file-format, and Tableau-product compatibility in your target environment. Hyper API documentation · Tableau Help: Hyper API
Distinguish the terms
**Hyper engine:** relational SQL engine supporting Tableau analysis and Prep.
**Hyper API:** libraries that start the engine process and interact with local .hyper files through SQL and insertion utilities. Official documentation lists Python, C++, and Java; Tableau Desktop Help also lists C#/.NET.
**.hyper file:** database file containing tables and rows. Tableau Desktop, Cloud, and Prep can use it as a data source.
**Tableau data source:** a separate layer that can include connection details, logical/physical table structure, and Tableau metadata. Opening only the .hyper file does not restore all of it. Share a .tds/.tdsx or workbook when the model and connection matter.
Needing extract data and needing the complete Tableau semantic model are different requirements. Tableau file types · Create and update Hyper files
Decide whether to use the API
| Situation | First option | Why and caveat |
|---|---|---|
| One-time extract or filter/aggregation setup | Tableau Desktop | Easier to inspect scope and model; no code deployment |
| Repeated conversion, custom ETL, automated bulk insert/update | Hyper API | Programmatically create and edit local .hyper files; you must design process handling, failure recovery, logs, and file replacement |
| Publish to Server/Cloud or manage site content | Hyper API plus Tableau REST API or Server Client | Hyper API works with local files; site publishing and permissions require separate Tableau APIs and authentication |
For a simple extract, Desktop or web authoring may be enough. Use the API when code provides a real benefit, such as a repeatable pipeline. Tableau documents a path from local file work with Hyper API to publication through REST API or Server Client; file creation alone does not publish content or set permissions.
Safe file lifecycle
**Prepare the runtime.** Follow the official install guide for the target OS and language. Start with read-only work on a copy. Apply local storage and access rules for sensitive data.
**Give one process exclusive access.** Ensure Desktop and other jobs have closed the file. One .hyper file can be open by only one Hyper process at a time. Multiple connections can share one HyperProcess, but each Connection object is not thread-safe and must be used on one thread.
**Choose a creation mode intentionally.** CREATE errors if the file already exists. CREATE_AND_REPLACE can replace it with an empty database. NONE opens an existing file and errors if absent; CREATE_IF_NOT_EXISTS connects if it exists or creates it. For automation, build to a temporary path, validate, then explicitly replace the operational artifact.
**Define schema and types.** Specify table, column, schema, and data types. Check nulls, date parsing, and numeric/text conversions. The API can create tables and load data with INSERT, COPY, or Inserter utilities, then use SQL to read or change records.
**Finish and verify.** Confirm inserts completed, run queries for row count and key totals, and do not publish partial files after errors. Close Connection and HyperProcess cleanly.
**Inspect in Tableau.** Open the result in Desktop and confirm expected tables and values. Check the .tds/.tdsx or workbook context for connection details, relationships, aliases, and calculations that the data file may not carry.
Connection and file modes · Create/update guide
Recover from common problems
File-in-use error: close Desktop or other jobs normally, or work at a new path; do not forcibly remove an active file.
Existing contents disappeared: check whether CREATE_AND_REPLACE was used. Restore from backup and change automation to build and validate a temporary file before replacement.
Tables appear but the Tableau model differs: the .hyper data file does not necessarily carry the .tds connection description and logical model. Use the appropriate workbook/package or published data source.
Row count or totals differ: inspect schema, conversions, duplicate insertion, filters, and time-zone handling. Record input counts and output query results.
Publish fails: separate local file success from site publication. Check authentication, project permissions, REST API or Server Client configuration independently.
Connection will not close: use structured resource management so errors still close Connection and HyperProcess, then confirm the file lock is gone.
Publishing and security
Hyper API is for local files; it does not replace Tableau Cloud or Server content permissions. Publishing requires a separate site API and authentication, plus checks for destination project and user access. A .hyper file is a copy of extracted rows and may have a broader security footprint than the source. Include only necessary data, restrict filesystem access, keep sensitive values out of temporary files and logs, and remove files when retention ends.
A safe Hyper artifact is more than a file that exists: validate schema and row counts, open it in Tableau to inspect the model, and manage local-file and site permissions separately.
Sources
[Tableau Hyper API](https://tableau.github.io/hyper-db/docs/)
[Client-side API](https://tableau.github.io/hyper-db/docs/hyper-api/)
[Create and Update Hyper Files](https://tableau.github.io/hyper-db/docs/guides/hyper_file/create_update/)
[The Connection](https://tableau.github.io/hyper-db/docs/hyper-api/connection/)
[Tableau Help: Hyper API](https://help.tableau.com/current/pro/desktop/en-us/extracting_TDE_API.htm)
[Tableau Help: File types](https://help.tableau.com/current/pro/desktop/en-us/environ_filesandfolders.htm)
[Tableau Help: Extract upgrade](https://help.tableau.com/current/pro/desktop/en-us/extracting_upgrade.htm)