--- title: "Tableau Cloud and Server Data Source Template" slug: "tableau-cloud-and-server-data-source-template" description: "Connects Validatar to Tableau Cloud and Tableau Server: catalog, profiling and 50 macros labelled by the site role each one needs." updated: 2026-11-22T12:13:44Z published: 2026-11-22T12:13:44Z canonical: "docs.validatar.com/tableau-cloud-and-server-data-source-template" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.validatar.com/llms.txt > Use this file to discover all available pages before exploring further. # Tableau Cloud and Server Data Source Template ## Overview The Tableau Cloud and Server data source template connects Validatar to Tableau through the REST API, the Metadata API and VizQL Data Service, signed in through a connected app or a personal access token. It catalogs projects, published data sources with their logical tables, fields and calculations, and workbooks with their views. Its 50 macros cover what usually breaks a Tableau dashboard: an extract that stopped refreshing, totals that disagree with the warehouse, sheets that use a field the data source no longer has, relationship keys with no match, calculations that fail, filters nobody can see, and user filters that show someone the wrong rows. This is a Python (Script) template. Every call to Tableau is made by Python running wherever the data source's scripts run. **Platform:** Tableau Cloud and Tableau Server **Connection Category:** Script (`PythonScript`) **Template version:** 3.0 **Marketplace:** [Tableau Cloud and Server - Data Source Template](https://admin.cloud.validatar.com/marketplace/8) Validatar proved this version on Tableau Cloud (REST API 3.30) against a test site with planted defects: a relationship key with no match, a duplicate dimension key, broken calculations, a sheet whose fields were removed, a hidden filter, a dead database connection and a failing extract refresh. Tableau Server offers the same APIs, and VizQL Data Service needs Tableau Server 2025.1 or later. > **Note:** Version 3.0 replaces the Tableau Server/Online template (1.x) on the marketplace. Its engine name is new, "Tableau Cloud and Server", so it installs beside the 1.x engine ("Tableau Server/Online Client") and leaves data sources built on 1.x as they are. Test scripts written for 1.x call `get_view_data_as_df`, `remove_formatting_from_numeric_columns` and `TSC.CSVRequestOptions`. Version 3.0 keeps all three without Tableau Server Client, so those scripts also run on a 3.0 data source. ## What works on which site role Which checks run depends on what the signed-in user may do on the site. Every macro's first parameter starts its help text with **Requires:** and one of these tiers. For a one-page version to send to a Tableau administrator, see [Testing Tableau with Validatar: What Works on Which Site Role](/docs/testing-tableau-what-works-on-which-site-role). | Tier | Works on | What it unlocks | What the signed-in user needs | | --- | --- | --- | --- | | **Any site role** | Tableau Cloud, Tableau Server | Catalog ingestion; extract refresh times; data quality warnings; field lists and calculation formulas from the Metadata API; view data as CSV, view images, PDFs and crosstabs, with filters; view health | View on the content, plus Download Summary Data and Download Image/PDF on workbooks | | **API Access** | Tableau Cloud; Tableau Server 2025.1 and later | VizQL Data Service queries: measure totals and breakdowns, distinct and null counts, field statistics, row counts per logical table, relationship orphans and duplicate keys, calculation errors, data source profiling | The API Access capability on each published data source. Tableau turns it off by default | | **Download** | Tableau Cloud, Tableau Server | Data source and workbook definitions: relationships, data source and extract filters, connection details, the fields each sheet uses, missing fields, hidden filters, sheet fingerprints, user filter calculations, revisions | Download Data Source on data sources and Download/Save As on workbooks. Revisions also need version history on, and Explorer (can publish) or above with Overwrite | | **Site Administrator** | Tableau Cloud, Tableau Server | Refresh jobs, extract refresh tasks and schedules, users and groups | Site Administrator Explorer or Site Administrator Creator | | **Connected app** | Tableau Cloud, Tableau Server | View data and queries as a named user, for row-level security tests | Authentication set to Connected App. The named user must exist on the site and hold a license; it needs no password | This article recommends a Site Administrator Creator as the user the tests run as. It sees everything the macros check. Below Site Administrator, the Metadata API filters what it returns by the user's permissions, so lineage such as upstream tables can come back partial. ## The VizQL Data Service allowance VizQL Data Service (VDS) is how the API Access macros query a published data source. Tableau limits VDS queries per site per hour. The documented allowance is 100 queries an hour for each Creator license on the site, shared by everything that uses VDS there. On a Tableau Cloud developer site with one Creator license, Validatar measured about 28 queries per clock hour: queries were refused at 00:36 and answered again at 01:00. Past the allowance, Tableau answers HTTP 429 with "API usage limit reached" and gives no time to wait. The template keeps a run inside the allowance: - **Budget.** Each data source counts its VDS queries on the Data Agent against **VDS Hourly Budget** (default 100). A query past the budget fails with a plain message before it reaches Tableau. Set the budget below the site's allowance when other tools on the site use VDS too. - **Pause.** When Tableau answers 429, the template stops at once and pauses VDS on that Data Agent for 15 minutes. The rest of the run fails fast with a message that says why, instead of spending more queries. - **Cache.** Field lists are shared on the Data Agent's disk for 15 minutes by every test on the same data source, keyed by the data source's last update. - **Ingestion.** Catalog ingestion spends no VDS queries. What each macro costs: Query and Source Table macros spend one query each. Calculation Errors spends one on a healthy data source. Relationship Orphans and Relationship Duplicate Keys spend a pair per relationship. Profile Data Source Tables spends one per logical table, and RLS: Table Coverage for a User spends two per logical table. The View macros spend none, except View Data for Each Filter Value with **Values** left blank, which spends one to list the values. Plan large runs in separate clock hours. ## How It Works - **Catalog.** Ingestion builds the schemas described under [Metadata Ingestion](/docs/tableau-cloud-and-server-data-source-template#metadata-ingestion). Each published data source's logical tables become catalog tables in their own `Data Source: <project> / <data source>` schema, so template tests and profile sets work over them the way they work over database tables. - **Structure without VDS.** Lists come from the REST API, and extract state, owners, certification and upstream tables come from the Metadata API in bulk. Logical tables come from the data source's definition, or from the Metadata API's upstream tables when the definition cannot be downloaded. - **Queries through VDS.** The Query, Source Table and integrity macros send VizQL Data Service queries to the published data source, which answers from its extract or its live connection. VDS cannot query a data source embedded in a workbook, so embedded data sources are cataloged for structure only. - **Definitions.** The Download macros read the data source's `.tds` and the workbook's `.twb` XML: relationships, filters, connections and the fields each sheet uses. - **What a viewer sees.** View Data reads a sheet's summary data as CSV, with filters applied the way a viewer applies them. View images and PDFs come from the same views, and OCR is the fallback for dashboards and images whose numbers are not in the data. - **Sign-in.** In Connected App mode the template signs a short-lived token (HS256, at most 10 minutes) for each sign-in with the Python standard library, so every test has its own session and a test can act as any user on the site. A personal access token holds one session at a time; the template signs in again once when a request answers 401. - **Name lookups.** Macros take catalog pickers. Choose a project by its `Data Sources:` or `Workbooks:` schema and the data source or workbook as a table under it. A bare project name or path also works. ## Prerequisites ### On the Tableau site 1. **Create a connected app.** Select **Settings** > **Connected Apps**, open the arrow on **New Connected App** and choose **Direct Trust**. Name it, leave **Applies to** and **Domain allowlist** at their defaults (they only affect embedding), and select **Create**. 2. **Enable it.** Tableau creates connected apps disabled. In the app's actions menu, select **Enable**. 3. **Generate a secret.** Open the app and select **Generate New Secret**. Note the **Client ID**, the **Secret ID** and the secret value. The secret stays valid until you delete it. 4. **Choose the user the tests run as.** A Site Administrator Creator sees everything the macros check. [What works on which site role](/docs/tableau-cloud-and-server-data-source-template#what-works-on-which-site-role) lists what a lower role loses. 5. **Grant permissions** to that user, or to a group it belongs to. On published data sources: View, Connect, Download Data Source and API Access. On workbooks: View, Download Image/PDF, Download Summary Data and Download/Save As. 6. **Turn on version history** under **Settings** > **General** > **Revision History** if you want Workbook: Revisions. The template puts the scopes it needs into every token, so the connected app has no scope settings to change. A token carries `tableau:content:read`, `tableau:viz_data_service:read`, `tableau:views:download`, `tableau:workbooks:download`, `tableau:datasources:download`, `tableau:sites:read`, `tableau:users:read`, `tableau:groups:read`, `tableau:jobs:read`, `tableau:tasks:read` and `tableau:labels:read`. Users, groups, jobs, refresh tasks, data quality warnings and workbook downloads each need their own scope; `tableau:content:read` does not reach them. The refresh action adds `tableau:tasks:run` to its own token only. > **Warning:** The connected app's secret can sign in as any user on its site, administrators included. Keep it only in the data source's Secret parameter. If it leaves there, delete the secret in the connected app and generate a new one. ### A personal access token instead Select your profile picture > **My Account Settings**, and under **Personal Access Tokens** create a token. Copy its name and secret; the secret is shown once. A token holds one session at a time. Another sign-in with the same token ends the earlier session, and Validatar runs tests in parallel, so give each data source a token of its own. Tableau Cloud expires a token that goes unused for 15 days in a row. Token mode cannot act as another user, so the row-level security macros need Connected App. Username and password sign-in is not offered. Tableau Cloud requires a token sign-in when multi-factor authentication is on. ### On the Python runtime - **Every macro:** `requests`, `pandas` and `numpy`. The template signs connected-app tokens with the standard library, so PyJWT and Tableau Server Client are not needed. - **View Image, View PDF Text, View Fingerprint, Color Share, Region Value by Coordinates and the image checks of View Health:** `pillow`, `pymupdf` and `pytesseract`, and the Tesseract binary on the same host, which means a Data Agent you control. On Windows the template finds Tesseract in `C:\Program Files\Tesseract-OCR` when it is not on `PATH`. - **View: Crosstab:** `openpyxl`, which pandas uses to read the crosstab's Excel file. ``` pip install requests pandas numpy pillow pymupdf pytesseract openpyxl ``` ## Connection Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | Server URL | String | Yes | `https://<pod>.online.tableau.com` for Tableau Cloud, or your Tableau Server address. Scheme and host only, no trailing slash | | Site ID | String | No | The site's content URL: on Tableau Cloud, the text after `/site/` in the address bar. Blank for the Default site on Tableau Server | | Authentication | Dropdown | Yes, default Connected App | Connected App or Personal Access Token | | Connected App Client ID | String | Connected App | The app's Client ID | | Connected App Secret ID | String | Connected App | The app's Secret ID | | Connected App Secret Value | Secret | Connected App | The app's secret value | | Run As User | String | Connected App | The Tableau username the tests act as. On Tableau Cloud this is the email address | | Token Name | String | Personal Access Token | The token's name | | Token Value | Secret | Personal Access Token | The token's secret | | Project Filter | String | No | Comma-separated project names or paths (`Parent / Child`) to ingest, sub-projects included. Blank ingests every project the user can see | | Include Data Source Contents | Dropdown (Yes/No) | No, default Yes | Yes ingests each published data source's logical tables and fields into a `Data Source:` schema. No ingests only the lists of data sources and workbooks | | Include Site Objects | Dropdown (Yes/No) | No, default No | Yes adds `Users` and `Groups` schemas. Needs a Site Administrator | | VDS Hourly Budget | String | No, default 100 | VizQL Data Service queries this data source may spend per hour. See [The VizQL Data Service allowance](/docs/tableau-cloud-and-server-data-source-template#the-vizql-data-service-allowance) | ## Capabilities ### Metadata Ingestion | Schema | Tables | Columns | | --- | --- | --- | | `Projects` | One per project | None | | `Data Sources: <project>` | One per published data source | None | | `Data Source: <project> / <data source>` | One per logical table, plus a `(Calculations)` table | The table's fields with their data types; every calculated field is a column of `(Calculations)` | | `Workbooks: <project>` | One per workbook | The workbook's views (sheets, dashboards and stories) | | `Embedded: <project> / <workbook>` | One per data source embedded in the workbook | Its fields. Structure only, because VDS cannot query embedded data sources | | `Users`, `Groups` | One per user and per group, when **Include Site Objects** is Yes | A group's members | Nested projects are named by path, `Parent / Child`. Project, data source and workbook descriptions land in Validatar's own Description field. A data source whose contents cannot be read is listed, the reason is printed, and ingestion moves on. Object details land in the [Tableau Catalog Custom Fields](/docs/tableau-catalog-custom-fields) set: item type and ID, project, link, owner, certification, extract state and last refresh, connection type, upstream tables, data quality warnings, field roles and formulas, and view types and view counts. Import that set after the template and before the first ingestion. Values whose field does not exist are dropped without an error. ### Profiling The template ships two profile scripts. A profile set runs one of them. | Profile script | Runs on | Produces | Requires | | --- | --- | --- | --- | | **Profile Data Source Tables** | Tables in `Data Source:` schemas | Table: `record_count`, `column_count`. Fields: `null_count`, `null_percent`, `distinct_count`, `distinct_percent`, and by data type `min_numeric` and `max_numeric`, or `min_date` and `max_date` | API Access | | **Profile Tableau Items** | Tables in `Data Sources:` and `Workbooks:` schemas | Data sources: `hours_since_refresh` (extracts), `active_warning` (1 or 0), `field_count`, `calculation_count`, and with API Access `calculation_error_count`. Workbooks: `view_count`, `dashboard_count`, `total_views`, `view_total_views` per view, and with Download `missing_field_count` and `hidden_filter_count` | Any site role | Profile Data Source Tables carries every aggregation for a logical table in one VDS query, which keeps profiling inside the hourly allowance. The values land in Validatar's profile history, so a profile-based test can watch a table's row count, a field's null count or a workbook's missing-field count over time. ### Macros Display names carry a prefix so the macro picker groups them. **Requires** is the tier from [What works on which site role](/docs/tableau-cloud-and-server-data-source-template#what-works-on-which-site-role). Project, data source, workbook and view parameters are catalog pickers; the rest are free text. **Query.** The project is a `Data Sources:` schema and the data source a table under it. **Filters** takes one filter per line or separated by semicolons: `Region = East`, `Region != East`, `Region in East|West`, `Amount between 0 and 100`. | Macro | Requires | Returns | | --- | --- | --- | | Query: Query Data Source | API Access | Any VDS query: fields grouped and aggregated, with filters. Fields go one per line or comma-separated (`Region, SUM(Amount), COUNTD(Customer Key)`); a line starting `=` is a calculation (`=SUM([Amount])/COUNT([Sales Key]) AS Avg Line`). Inside a calculation, a name shared by a field and its logical table (`[Region]` in the table Region) means the table, which only `COUNT` accepts; write such a field as `COUNTD(Region)` on its own line instead | | Query: Measure by Dimension | API Access | Measures grouped by dimensions: the shape of most sheets and of the GROUP BY it is reconciled against. A measure written without a function uses the field's default aggregation | | Query: Measure Value | API Access | One measure's total, optionally filtered | | Query: Distinct Count | API Access | Distinct values of a field, nulls not counted | | Query: Distinct Values | API Access | Each value of a field with the rows that hold it, nulls included | | Query: Null Count | API Access | Rows whose field is null | | Query: Rows Matching a Value | API Access | Row-level data where a field equals a value, with optional return fields | | Query: Field Statistics | API Access | Count, nulls, distinct count, minimum and maximum of every field, or of the fields listed, in one query | **Source Table.** Built for template tests over `Data Source:` schemas: bind **Source Schema** to `{{schema.name}}`, **Logical Table** to `{{table.name}}` and **Field** to `{{column.name}}`. | Macro | Requires | Returns | | --- | --- | --- | | Source Table: Row Count | API Access | Rows in one logical table | | Source Table: Field Null Count | API Access | Null rows of one field | | Source Table: Field Distinct Count | API Access | Distinct values of one field | | Source Table: Field Value Counts | API Access | Each value of one field with its row count | | Source Table: Field Statistics | API Access | Statistics of every field of one logical table, in one query | **Source.** The project is a `Data Sources:` schema and the data source a table under it. | Macro | Requires | Returns | | --- | --- | --- | | Source: Fields | Any site role | Every field with its logical table, kind, data type and role. With API Access it adds default aggregations | | Source: Calculations | Any site role | Every calculated field with its formula, from the Metadata API, or from the definition (Download) when the Metadata API is unavailable. Compare with the previous run to catch a changed formula | | Source: Relationships | Download | The logical-layer relationships, one row per pair of joined fields | | Source: Relationship Orphans | API Access and Download | Keys on the many side of a relationship with no row on the other side. Tableau shows those rows under Null instead of failing. No rows means every key matches. **Relationship** narrows it to the relationships at either end of one logical table | | Source: Relationship Duplicate Keys | API Access and Download | Keys that repeat on the dimension side of a relationship, which multiplies the rows they join to. No rows means every dimension key is unique | | Source: Calculation Errors | API Access | Every calculated field that fails or returns only nulls. No rows means every calculation evaluates | | Source: Data Source Filters | Download | Data source and extract filters: rows every sheet on the data source loses without showing a filter | | Source: Connection Details | Download | Where the data source connects: class, server, database, schema, warehouse, user and authentication, with extract state and last refresh. Catches production content pointed at a development server | | Source: Data Source Answers | API Access | One small query, timed. Status is Failed when a live connection's credentials expired or its database is unreachable | Two behaviours of Tableau shape these results. VDS leaves a calculation out of its field list when the calculation cannot be evaluated, so Calculation Errors reports those from the definition without querying them; a healthy data source costs one query. And when an extract was built with a key Tableau was told is unique, Hyper returns a duplicated key as two rows of one, so Relationship Duplicate Keys adds those rows up and the duplicate still shows. **Freshness.** | Macro | Requires | Returns | | --- | --- | --- | | Freshness: Extract Last Refresh | Any site role | When the extract last refreshed and the hours since | | Freshness: Refresh Jobs | Site Administrator | Extract refresh jobs of the data source, newest first, with status, start, end, duration and Tableau's notes. **Days** defaults to 7; Tableau Cloud keeps about 30 days of jobs | | Freshness: Refresh Tasks and Schedules | Site Administrator | The data source's extract refresh tasks: refresh type, frequency, start time, intervals, next run and consecutive failures | | Freshness: Data Quality Warnings | Any site role | Warnings on the data source with type, message and whether each is active and severe. No rows means none | Tableau Cloud lists jobs without their data source's name, so Refresh Jobs reads each job in the window once to find its data source. On a busy site, keep **Days** short. **Workbook.** The project is a `Workbooks:` schema and the workbook a table under it. | Macro | Requires | Returns | | --- | --- | --- | | Workbook: Views | Any site role | The workbook's views with type and view counts | | Workbook: Fields Used by Sheet | Download | Every field each sheet uses. **Sheet** narrows it to one | | Workbook: Missing Fields | Download | Fields a sheet uses that its published data source no longer has. No rows means every sheet's fields resolve | | Workbook: Bound Data Sources | Any site role | The data sources the workbook connects to, with connection type, server and username | | Workbook: Hidden Filters | Download | Filters that remove rows with no filter card: sheet filters nobody can see, and with **Include Data Source Filters** set to Yes (the default) the data source and extract filters of every published data source the workbook uses | | Workbook: Sheet Filters | Download | Every filter on every sheet, and whether a filter card shows it | | Workbook: Sheet Fingerprints | Download | A hash of each sheet's and dashboard's definition, for change control | | Workbook: Revisions | Download, version history, Explorer (can publish) with Overwrite | Published revisions, newest first | **View.** The workbook is chosen as above and the view as a column of it. **View Filters** takes `Region = West; Category = Bikes,Clothing`; a line starting `param:` sets a parameter instead, for example `param:Top N = 5`. | Macro | Requires | Returns | | --- | --- | --- | | View: View Data | Any site role | The sheet's summary data as a viewer sees it | | View: View Value | Any site role | One cell of a sheet, such as a KPI. **Row** picks the row by its labels (`Region = East`); **Column** picks the value column, blank for the last | | View: View Data for Each Filter Value | Any site role; API Access when Values is blank | The sheet's data once per value of a filter field, stacked with a Filter Value column. **Values** takes `a\|b\|c`; blank reads every value from the workbook's first published data source | | View: View Image | Any site role, Pillow | The rendered view attached to the result, with its size, dominant colour and whether it is blank | | View: View PDF Text | Any site role, PyMuPDF | The text of the view's PDF, line by line | | View: Crosstab | Any site role, openpyxl | The sheet as an Excel crosstab, read into rows | | View: View Health | Any site role | One row per view: whether data comes back, its row count, a blank image, Tableau's error text and OCR confidence. Status, worst first: Error, Error text, No data, Blank, OK. The image checks run when Pillow, pytesseract and Tesseract are on the Data Agent | | View: View Fingerprint | Any site role, Pillow | Numbers that move when a view changes: the share of pixels in eight luminance bands and the mean luminance of a 4 x 4 grid. Compare them with the average of the test's previous runs | | View: Color Share | Any site role, Pillow | Percentage of the view within a tolerance of a colour, such as a brand or alert colour. **Tolerance** defaults to 30 per RGB channel | | View: Region Value by Coordinates | Any site role, Pillow, pytesseract and Tesseract | OCR of one rectangle of the rendered view, for dashboards and images whose numbers are not in View Data. Run once with **Coordinates** blank, read the box off the attached `View.png`, then enter `(left, top, right, bottom)` | View Data on a dashboard returns only the dashboard's first sheet, so point data tests at sheets. A sheet whose fields no longer exist comes back from Tableau Cloud as a CSV with headers and no rows, and a blank image, rather than as an error; View Health reports it as No data. **RLS and Action.** | Macro | Requires | Returns | | --- | --- | --- | | RLS: User Filter Definitions | Download | Calculations that depend on who is signed in (`USERNAME()`, `ISMEMBEROF()` and the like) and whether a data source filter applies them | | RLS: View Data as User | Connected app | A sheet's data as a named user sees it, user filters applied | | RLS: Query as User | Connected app and API Access | Measures by dimensions as a named user sees them | | RLS: Table Coverage for a User | Connected app and API Access | Each logical table's rows for the Run As user and for a named user. Filtered For User is False where the counts match | | RLS: Users and Groups | Site Administrator | Every user with site role, last sign-in and groups | | Action: Run Extract Refresh and Wait | The data source owner or a Site Administrator | A test action that starts an extract refresh of a published data source and waits for its job (**Timeout Minutes** defaults to 30). It returns the result (Succeeded, Failed or Cancelled), the job ID, start and end times and Tableau's notes. It writes to Tableau | ## Row-Level Security A connected app can sign its token as any user on the site, so the RLS macros run as a named user without that user's password. The user must exist on the site and hold a license. On Tableau Cloud, users who had never accepted their invitation worked. 1. **Definitions (Download).** RLS: User Filter Definitions lists the calculations that depend on the signed-in user and whether a data source filter applies them. Compare the list with the approved one from run to run. 2. **Data as the user (Connected app).** RLS: View Data as User and RLS: Query as User return what the user sees, to compare with that user's entitlement in the warehouse. RLS: Table Coverage for a User counts each logical table's rows for the Run As user and for the named user. A user filter on a data source with relationships reaches every logical table related to the filtered one. On Validatar's test site, the user filtered to the East region saw Sales go from 240 rows to 60, Date from 90 to 45, Customer from 12 to 3, Store from 7 to 3 and Region from 4 to 1. Product stayed at 8 because East sold all eight products, which is why Filtered For User is False there: matching counts mean either the user may see every row or the filter does not reach the table. Personal Access Token mode cannot act as another user, and the RLS macros say so when they run in it. ## Installation 1. **Import the template.** Open **Marketplace** in Validatar, find **Tableau Cloud and Server - Data Source Template** and choose **Get**, then **Import Directly**. Validatar adds it under **Settings > Data Source Templates**. 2. **Import the custom fields.** In **Marketplace**, import **Tableau - Catalog Custom Fields**. Its sections show only on data sources built from this template, and the rule that hides them names the template, so import the template first. 3. **Create a data source** from the template. Fill in Server URL, Site ID, the connected app's three values and Run As User, and Project Filter if you want only some projects. Assign a Data Agent group if you will use the image, PDF or OCR macros. 4. **Run metadata ingestion** and check the catalog: one `Data Sources:` and `Workbooks:` schema per project, and one `Data Source:` schema per published data source. 5. **Add profile sets** if you want profiling: one on **Profile Data Source Tables** scoped to the `Data Source:` schemas, one on **Profile Tableau Items** scoped to the `Data Sources:` and `Workbooks:` schemas. 6. **Optional:** import the [Tableau Sample Tests](/docs/tableau-sample-tests) pack for working examples of every tier, and [Tableau Site Health Checks](/docs/tableau-site-health-checks) for template tests that run unedited against your own site. To install from a file instead, download the template from the marketplace listing and import it under **Settings > Data Source Templates > Import**. After importing a newer version of the template, open each Tableau data source, re-select the template, confirm the parameters and save. A data source keeps its own copy of the template's pre-execution script until it is saved. ## Troubleshooting | Symptom | Cause | Fix | | --- | --- | --- | | `Tableau sign-in (connected_app) failed with 401 401001` | The connected app is disabled, a Client ID, Secret ID or Secret Value does not match it, or Run As User is not a user on this site | Enable the app, copy the three values again, and check the username (the email address on Tableau Cloud) | | `Tableau sign-in (pat) failed with 401 401001` | The token name or secret is wrong, or Tableau Cloud expired the token after 15 days unused | Create a new token and update both values | | A personal access token run fails at random with 401 | Another sign-in with the same token ended the session | Give each data source its own token, or use Connected App | | A VDS macro answers 403 with `VizQL Data Service needs Tableau Cloud or Tableau Server 2025.1 or later, and the API Access capability` | The user lacks API Access on the data source, or the server is older than 2025.1 | Grant API Access on the data source to the user or its group | | `VizQL Data Service read-metadata returned 401: 401001 Unable to authenticate. One or more connections in this datasource contain invalid connection information.` | The data source is a live connection whose database sign-in fails | Edit the data source's connection on Tableau and embed working credentials, or reconnect its OAuth account | | `Tableau answered "API usage limit reached" (HTTP 429)`, or VDS queries `are paused` | The site's VDS allowance for this hour is used up | Wait for the next clock hour, and spread large runs across hours | | `VizQL Data Service budget reached` | This data source reached its VDS Hourly Budget | Wait, or raise the budget, keeping it within 100 per Creator license on the site | | `Refresh jobs need a Site Administrator sign-in (403).` | Run As User is not a Site Administrator | Run the Site Administrator macros as a Site Administrator | | Extract Last Refresh shows no time, and Run Extract Refresh answers HTTP 400 with code 403180, "Full refresh extract operation for the datasource is not allowed" | The data source was published from a `.hyper` file. Tableau Cloud treats it as a live connection to that file, and it cannot refresh | Publish an extract over a database connection, from Tableau Desktop or by creating the extract on Tableau | | A refresh job fails with "Incoming request with IP/Token ... is not allowed to access Snowflake" | A Snowflake network policy does not admit Tableau Cloud | Add Tableau Cloud's address range for your site's pod to the Snowflake user's network policy. Tableau lists the ranges in [Authorize Access to Data Published to Tableau Cloud](https://help.tableau.com/current/pro/desktop/en-us/publish_tableau_online_ip_authorization.htm) | | A refresh job fails with "Could not find the private key for Snowflake KeyPair Auth" | The data source uses Snowflake key-pair authentication with no embedded key | Publish it again from Tableau Desktop with the embedded key-pair credential. Tableau publishes key-pair data sources only from Tableau Desktop or Tableau Prep Builder, after the publisher saves the key under **My Account Settings** > **Saved Credentials for Data Sources** | | View Data returns headers and no rows, and View Health says No data | The sheet uses fields its data source no longer has | Run Workbook: Missing Fields on the workbook | | View Data on a dashboard shows one sheet | Tableau returns only a dashboard's first sheet | Point the test at the sheet | | `The image and OCR macros need Pillow, pytesseract and PyMuPDF` | The packages or Tesseract are missing where the script ran | Install them on the Data Agent and assign the data source to that agent's group | | `View '...' not found in workbook '...'` | The name differs from the one the workbook uses | The error lists the views that exist; Workbook: Views lists them too | | `Acting as another user needs the connected_app authentication mode` | An RLS macro ran on a data source in Personal Access Token mode | Switch the data source to Connected App | ## Related Articles - [Testing Tableau with Validatar: What Works on Which Site Role](/docs/testing-tableau-what-works-on-which-site-role) - [Tableau Catalog Custom Fields](/docs/tableau-catalog-custom-fields) - [Tableau Sample Tests](/docs/tableau-sample-tests) - [Tableau Site Health Checks](/docs/tableau-site-health-checks) - [Profiling configuration: Python templates](/docs/profiling-configuration-python-templates) - [What Is a Data Source Template?](/docs/what-is-a-data-source-template-overview) ## Related - [Testing Tableau with Validatar: What Works on Which Site Role](/testing-tableau-what-works-on-which-site-role.md) - [Tableau Catalog Custom Fields](/tableau-catalog-custom-fields.md) - [Tableau Sample Tests](/tableau-sample-tests.md) - [Tableau Site Health Checks](/tableau-site-health-checks.md) - [Profiling configuration: Python templates](/profiling-configuration-python-templates.md)