Area: Ingestion
Sub-Area: Tableau
Applies to: OSS + Cloud
Issue
You have one or more of these problems with the Tableau connector:
- Tables that are not part of Tableau show up as entities, or data sources show up that you did not expect.
- You need the URNs of Tableau charts and data sources.
- You moved ownership of Tableau assets from individual users to groups in DataHub, and the owners change back.
You Might Be Asking
- Which setting controls whether tables external to Tableau are ingested?
- Which setting controls how many data sources are ingested?
- Can I build a Tableau chart or data source URN from the workbook, view or data source name?
- Why does the next ingestion run overwrite the owners I set in DataHub?
Cause
-
ingest_tables_externaldefaults tofalse. Withfalse, tables that are not embedded in Tableau are skipped and not emitted as entities. If they appear, check that your recipe does not set it totrue. -
emit_all_published_datasourcesandemit_all_embedded_datasourcesdefault tofalse, so only data sources that belong to an ingested workbook are ingested. If you set either totrue, the connector ingests all of them. - Tableau chart (sheet) URNs and data source URNs are built from Tableau's internal ids, not from workbook, view or data source names. Chart URNs carry no env. Data source URNs include the platform instance and env. A URN you build from names does not match the real entity.
-
ingest_ownerdefaults tofalse. When you set it totrue, ownership from Tableau overrides owner information entered in the DataHub UI, so the next run can overwrite manual ownership changes.
Solution
-
Check the external source and data source settings. Use
usernameandpassword, or usetoken_nameandtoken_value. They are alternatives. If you set both pairs, the connector usesusernameandpasswordand ignores the token.
source:
type: tableau
config:
connect_uri: "https://tableau.company.com"
username: "${TABLEAU_USER}"
password: "${TABLEAU_PASSWORD}"
site: "YourSite"
# Default is false. Tables not embedded in Tableau are skipped.
ingest_tables_external: false
# Defaults are false. Only data sources in ingested workbooks are ingested.
emit_all_published_datasources: false
emit_all_embedded_datasources: false
Leave site empty for the Default site on Tableau Server. Always set it for Tableau Online. Set ingest_tables_external: true only if you want tables external to Tableau emitted as entities.
-
Get Tableau entity URNs from DataHub. Copy the URN of the chart or data source from DataHub. Do not build it from workbook, view or data source names.
-
Keep group ownership. If you move Tableau asset ownership to groups in DataHub, set
ingest_owner: falsein the recipe first. If you leave ittrue, the next run can overwrite your changes. -
Change owners with the ownership API. The ownership tutorial shows how to add owners, remove owners with
removeOwner, and remove owners from many resources withbatchRemoveOwners. Use the examples there, including theownerEntityTypefield in the add owners example: Ownership API tutorial.
Test recipe changes in a development environment before you apply them to production.