Area: Ingestion Issues
Sub-Area: Tableau Connector, Column-Level Lineage
Applies to: OSS + Cloud
Issue
A Tableau ingestion run fails while it writes column-level lineage. DataHub rejects the lineage because one upstream schemaField URN has an empty column name. The log shows an error like this:
Unable to emit metadata to DataHub GMS: Failed to validate record with class com.linkedin.dataset.UpstreamLineage: ERROR :: /fineGrainedLineages/15/upstreams/0 :: "Provided urn urn:li:schemaField:(urn:li:dataset:(urn:li:dataPlatform:<platform>,<dataset-path>,PROD),)" is invalid
The URN ends in ,). Nothing follows the last comma, so the column name is empty. The index after /fineGrainedLineages/ changes from run to run.
You Might Be Asking
- Why does my Tableau ingestion fail with an invalid
schemaFieldURN error? - Why does the URN end with a trailing comma and no column name?
- How do I unblock Tableau ingestion now?
- Which version fixes this?
Cause
This is a bug in the DataHub CLI, not a recipe problem. The Tableau connector parses Custom SQL with DataHub's own SQL parser. By default it does this when Tableau's metadata returns no upstream tables for the Custom SQL. It always does it when you set force_extraction_of_lineage_from_custom_sql_queries: true. In some queries the parser can't resolve an upstream column, and older CLI versions kept that column with an empty name. The connector built a schemaField URN from it without checking the name. DataHub then rejected the URN when it validated the UpstreamLineage aspect.
acryl-datahub 1.7.0 fixed this. The parser and the Tableau connector now drop upstream columns with an empty name before they build any schemaField URN. The connector drops them without a log message.
Solution
Fix: upgrade the CLI
Run Tableau ingestion with acryl-datahub 1.7.0 or later. The latest release is the best choice.
- CLI ingestion: upgrade the package with
pip install --upgrade 'acryl-datahub[tableau]', then run the recipe again. - UI ingestion: open the Tableau source, go to Advanced settings, and set CLI Version to 1.7.0 or later. See UI Ingestion.
If you turned off column-level lineage as a workaround, turn it back on after the upgrade.
Workaround: turn off Tableau column-level lineage
If you can't upgrade yet, set extract_column_level_lineage: false in the Tableau recipe:
source:
type: tableau
config:
# ... your existing connection settings ...
extract_column_level_lineage: false
This setting applies to the whole source. It turns off column-level lineage for every Tableau datasource, including Custom SQL and virtual connections, not only for the Custom SQL that fails. Table-level lineage still gets ingested. The default is true. See the Tableau source docs.
The Tableau connector has no workbook filter. workbook_pattern and tableau_project_pattern are not Tableau config keys, and a recipe that contains an unknown key fails validation. To exclude content, the connector filters whole projects with project_path_pattern. That drops every asset in the denied projects from ingestion, not just their column lineage:
source:
type: tableau
config:
# ... your existing connection settings ...
project_path_pattern:
deny:
- "^My Project/Nested Project$"