Area: Ingestion Issues
Sub-Area: Tableau Source Configuration
Applies to: OSS + Cloud
Issue
You set ingest_hidden_assets: false in your Tableau recipe so that draft or unpublished content stays out of DataHub. The draft workbooks, dashboards and charts still show up after the next run.
You Might Be Asking
- Why does
ingest_hidden_assets: falsestill ingest draft workbooks? - Can the Tableau connector ingest only published content?
- How do I keep a sandbox or draft project out of DataHub?
- What does
ingest_hidden_assetsactually filter?
Cause
ingest_hidden_assets does not know about draft or published status. It only decides whether DataHub ingests hidden worksheets and dashboards. A view that is hidden inside a Tableau workbook has a blank LUID, and that blank LUID is what the connector checks.
- The default is
["worksheet", "dashboard"], so hidden views are ingested unless you change it. -
falseskips hidden worksheets and hidden dashboards. A list with one value (for example["dashboard"]) ingests hidden assets of that type only. - It never filters workbooks. A workbook is ingested whenever its project is selected.
- Worksheets and dashboards with a LUID are ingested whatever this setting is.
The Tableau connector has no setting that filters by draft or published status. It selects content by project. A workbook is ingested when its project passes the project filters, so the way to exclude draft content is to exclude the projects that hold it.
Solution
Step 1: Find the exact project paths
The connector matches project_path_pattern against each project's full path, with project names joined by / (for example Sales and Sales/EMEA). It does not match the bare project name.
To list every project path the connector sees, including projects your recipe excludes, run this with the current acryl-datahub CLI:
datahub recipe probe run projects --recipe recipe.yml
Use these paths in your patterns. The connector has no special handling for Tableau Personal Space, so check this list before you write a pattern for it. See Probing a Tableau recipe.
Step 2: Add a deny rule for the draft projects
Deny the projects that hold draft content. Deny rules always win over allow rules.
source:
type: tableau
config:
connect_uri: https://<your-tableau-server>
site: "<your-site-content-url>"
username: "<your-username>"
password: "<your-password>"
project_path_pattern:
deny:
- "^Sandbox(/|$)"
- "^Finance/Drafts(/|$)"
Each pattern is a regular expression that matches from the start of the path, and matching ignores case by default. ^Sandbox(/|$) excludes the Sandbox project and every project under it, but not a project named Sandbox Archive. A plain ^Sandbox would also exclude Sandbox Archive.
Step 3 (optional): Allow only the projects you want
If draft content sits in many places, allow only your published projects instead:
project_path_pattern:
allow:
- "^Finance$"
- "^Marketing$"
deny:
- "^Finance/Drafts(/|$)"
With extract_project_hierarchy (default true), the connector also ingests every child of an allowed project unless a deny rule matches it. So ^Finance$ brings in Finance and all its subprojects. Don't write ^Finance/.*: it matches only the subprojects, so Finance itself is excluded and the workbooks that sit directly in it are skipped.
Step 4: Check the result before you run ingestion
probe filter gives the same verdict ingestion makes, without running ingestion:
datahub recipe probe filter --recipe recipe.yml --kind Project --name "Finance/Drafts"
You can test a pattern before you change the recipe with --try-allow and --try-deny.
Don't mix the deprecated project filters
projects and project_pattern are both deprecated. Use project_path_pattern only. If you set projects together with either of the other two, or project_pattern together with project_path_pattern, the recipe fails validation with one of these errors:
projects is deprecated. Please use project_path_pattern only.project_pattern is deprecated. Please use project_path_pattern only.