What this pack contains
15 checks for a Tableau site, built on the Tableau Cloud and Server Data Source Template version 3.0. They are for the Tableau administrator who wants to point Validatar at a site and learn something on the first run: which extracts are stale or failing, which data sources cannot refresh because no credential is embedded, which sheets are broken, which filters viewers cannot see, which connections still point at a development server, and which content nobody uses or nobody owns.
Every check is a template test. It creates one child test for each published data source or workbook in the data source's catalog, so the pack needs no fixture, no warehouse and no editing. None of the checks queries VizQL Data Service, so the pack spends none of the site's hourly VDS allowance however many data sources the site has.
| Folder | Checks | Needs |
|---|---|---|
| 1 Any site role | 7 | Any site role with View and Export Data; Export Image and the image libraries for the render check |
| 3 Download | 3 | Download Data Source or Download Workbook/Save As |
| 4 Site Administrator | 5 | Site Administrator |
The folder numbers match the tiers of the Tableau Sample Tests. There is no 2 API Access or 5 Connected app folder, because no health check needs them. Testing Tableau with Validatar: What Works on Which Site Role explains the tiers. Each check's description starts with a Requires: line naming its tier.
Each folder has its own job: [Health] Tableau - 1 Any site role, [Health] Tableau - 3 Download and [Health] Tableau - 4 Site Administrator. Run the folders your sign-in can reach.
Marketplace: Tableau Site Health Checks
How the checks work
Each template test has a metadata filter on the catalog schema: SchemaName starts with Data Sources: for the data source checks, and with Workbooks: for the workbook checks. Materializing it creates one child test per published data source or workbook, named after it, in a subfolder named after the template test. The child's script receives the object through {{schema.name}} and {{table.name}}.
Every child counts the problems it finds, returns the count, and passes at zero. The run log prints what it found: the job that failed with Tableau's message, the connection without a credential, the sheet and the missing field. A new data source or workbook gets its own child test after the next metadata ingestion, because the jobs materialize the template tests before they run them.
The checks
The On the fixture column is the outcome on the Validatar Tableau Fixture, the test site the pack was built on, which carries planted defects. The fixture describes it.
1 Any site role
| Check | One child per | Fails when | On the fixture |
|---|---|---|---|
| Health - Extracts refreshed within the last two days | data source | The extract was last refreshed more than MAX_DAYS days ago, or never. Live connections, and data sources published from a .hyper or other file, pass: there is nothing to refresh. Reads the Metadata API |
Fixture Refresh Failure fails |
| Health - No active data quality warnings | data source | The data source carries an active data quality warning, so the warnings stewards set in Tableau also count in Validatar's results | Fixture Budget fails |
| Health - Database credentials are embedded | data source | A database connection needs credentials and has none embedded. Tableau cannot refresh such an extract on a schedule, and a live connection prompts every viewer. File connections and connections that need no sign-in pass | Fixture Refresh Failure fails (a key-pair connection published without its key) |
| Health - Data sources used by several workbooks are certified | data source | The data source is uncertified and more than MAX_WORKBOOKS workbooks use it. A widely used source is where an unreviewed change does the most damage. Reads the Metadata API |
Passes: Fixture Sales, used by three workbooks, is certified |
| Health - Every view returns data and renders without errors | workbook | A sheet or dashboard's data request fails or returns no rows, its image is blank, or the image shows Tableau's error wording | Fixture Broken Workbook fails |
| Health - Workbooks have been viewed | workbook | No view of the workbook has ever been opened, from Tableau's usage statistics. Tableau reports total views only, not views in a period | Depends on what has been opened on the fixture |
| Health - Workbooks use published data sources | workbook | The workbook connects to data through an embedded connection instead of a published data source. Embedded connections escape certification, data quality warnings and the data source checks above | Passes |
3 Download
| Check | One child per | Fails when | On the fixture |
|---|---|---|---|
| Health - Connections do not point at development servers | data source | A connection's server, database, schema or warehouse matches DEV_PATTERN, the usual sign of content published while it still points at a development or test system |
Passes |
| Health - Every sheet's fields exist in its data source | workbook | A sheet uses a field that was renamed or removed upstream. Tableau Cloud returns no rows and a blank image for such a sheet, not an error | Fixture Broken Workbook fails |
| Health - No sheet has a filter its viewers cannot see | workbook | A sheet filter has no filter card anywhere in the workbook, so viewers cannot tell the numbers are filtered. Data source filters, row-level security among them, are not counted | Fixture Hidden Filter fails |
4 Site Administrator
| Check | One child per | Fails when | On the fixture |
|---|---|---|---|
| Health - Latest extract refresh did not fail | data source | The most recent refresh job in the last DAYS days failed. The run log has Tableau's message. Data sources with no job pass |
Fixture Refresh Failure fails |
| Health - Every extract has a refresh schedule | data source | An extract that can be refreshed has no refresh task, so it changes only when someone republishes it | Passes |
| Health - Refresh tasks are not failing repeatedly | data source | A refresh task has failed MAX_FAILURES or more times in a row. Tableau may suspend such a task, and then the extract stops changing without anyone being told |
Depends on how often Fixture Refresh Failure's weekly task has run |
| Health - Data source owners are licensed | data source | The owner is unlicensed or no longer on the site. Embedded credentials and refresh schedules belong to the owner, so refreshes stop when the owner leaves | Passes |
| Health - Workbook owners are licensed | workbook | The owner is unlicensed or no longer on the site, which leaves the workbook's subscriptions and embedded credentials with nobody to fix them | Passes |
Prerequisites
- A data source built from the Tableau Cloud and Server Data Source Template 3.0, with metadata ingestion run and the Tableau - Catalog Custom Fields imported.
- The site role and capabilities for the folders you run (see the folder table).
- For the image part of the render check:
pillow,pymupdfandpytesseracton the Data Agent, and the Tesseract binary. Without them the check still reads each view's data, so a sheet that returns no rows still fails.
Import
- In Validatar, open Marketplace from the main navigation.
- Find Tableau Site Health Checks and choose Import.
- Pick the target project. Validatar opens that project's import screen with the pack loaded.
- Map the pack's data source, Tableau Cloud and Server, to your Tableau data source.
- Choose a target folder and commit.
- Run the jobs for the folders your sign-in can reach. Each job materializes its template tests from the current catalog, then runs the child tests.
To import from a downloaded file instead, take the pack XML from the marketplace listing, open Import in the target project, select the file, map the data source and commit.
Checking some projects only
There are two places to narrow the checks:
- On the data source. Set Project Filter to the projects to ingest, as names or paths (
Finance, Sales / Regional). Sub-projects are included. Everything outside the filter stays out of the catalog, so no check sees it. - On a template test. Edit its metadata filter. The catalog names schemas after the project path, with nested projects joined by
/:Data Sources: Finance,Data Sources: Finance / Reports,Workbooks: Finance.SchemaNamestarts withData Sources: Financecovers Finance and its sub-projects, and any other project whose name starts with "Finance".SchemaNameequalsData Sources: Financecovers that one project.
Tuning the checks
Each template test keeps its thresholds in the PARAMETERS block at the top of its script. Edit the template test, and the next run's materialize step carries the change to every child test.
| Parameter | Check | Default | What it sets |
|---|---|---|---|
MAX_DAYS |
Extracts refreshed within the last two days | 2 | Oldest acceptable extract refresh, in days. The test's name says two days; rename it if you change the value |
DAYS |
Latest extract refresh did not fail | 14 | Days of job history to read. Tableau Cloud keeps about 30 days |
MAX_FAILURES |
Refresh tasks are not failing repeatedly | 3 | Consecutive failures that count as a problem |
MAX_WORKBOOKS |
Data sources used by several workbooks are certified | 1 | How many workbooks may use an uncertified data source |
DEV_PATTERN |
Connections do not point at development servers | See below | A regular expression for names that mean development or test |
USE_OCR |
Every view returns data and renders without errors | True | Read each view's image for Tableau's error text. Set it to False to skip the images and check only each view's data |
The default DEV_PATTERN matches dev, test, qa, uat, sandbox, stg and staging as whole words, in any case, so dev-sql01 and SALES_TEST match while device and latest do not:
DEV_PATTERN = '(?i)(^|[^a-z])(dev|test|qa|uat|sandbox|stg|staging)([^a-z]|$)'
Add your own environment names to the list inside the second pair of parentheses.
Troubleshooting
Template tests have no child tests. Run metadata ingestion on the Tableau data source, then run the job again. A template test's filter matches catalog schema names, so it finds nothing before ingestion.
The Site Administrator checks error, or fail with HTTP 403 in the run log. The data source signs in below Site Administrator. Refresh jobs, refresh tasks and other users' site roles need a Site Administrator.
The Download checks error with a 403. The signed-in user lacks Download Data Source or Download Workbook/Save As on that content.
The render check passes views that look broken. Without pillow, pymupdf, pytesseract and the Tesseract binary on the Data Agent, it checks only each view's data. A view that returns rows but renders an error is then missed.
Every data source fails the development server check. DEV_PATTERN matches part of a name all your connections share. Edit the pattern.