Area: Ingestion Issues
Sub-Area: Power BI Column-Level Lineage
Applies to: OSS + Cloud
Issue
Your Power BI ingestion runs without errors. Table lineage from Power BI datasets to the upstream warehouse tables (for example SQL Server) shows in the UI. Column lineage arrows do not show.
You Might Be Asking
- Why does table lineage work but column lineage is missing for my Power BI datasets?
- Which CLI version fixes the Power BI column name casing problem?
- I set
convert_column_urns_to_lowercase: trueon my SQL Server recipe as a workaround. Should I keep it after I upgrade? - Which recipe flags does Power BI column lineage need?
Cause
DataHub draws a column edge only when the field path in the lineage matches the field path in the upstream dataset's schema exactly. The match is case sensitive.
Before acryl-datahub CLI 1.6.0.16, the Power BI connector wrote the upstream column names in lowercase (for example orderid). Warehouses such as SQL Server keep the original casing in their schema (for example OrderId). The upstream column in the lineage pointed to a field that does not exist, so no column edge rendered. This happened for every Power BI table whose upstream columns are not all lowercase.
The Power BI side of the lineage was not the problem: the downstream columns kept the casing that Power BI reports.
The convert_lineage_urns_to_lowercase option (default true) did not help. In older versions it also lowercased the upstream column. Now it lowercases only the dataset part of the upstream URN, never the column. The convert_urns_to_lowercase option only changes the URNs of the Power BI assets themselves.
This fix applies to warehouses that keep the original column casing, such as SQL Server. The Snowflake source lowercases column field paths by default. When a Power BI table reads a Snowflake table directly, not through a native SQL query, the Power BI connector writes the upstream column names in the casing that Power BI reports. If those names are not all lowercase, the column edge does not show. Use the check in Step 2 to compare the two sides.
The Snowflake source has an opt-in option, preserve_column_case. Its default is false. When you set it to true, the Snowflake source keeps the native column casing in field paths and column lineage. This casing matches the casing that Power BI writes.
Warning: if you set preserve_column_case after ingestion, the Snowflake source re-keys every column. Tags, glossary terms, and documentation on those columns then lose their link to the columns. Use the same value in the snowflake recipe and the snowflake-queries recipe.
Solution
Step 1: Check the recipe flags
Column lineage needs these flags. All of them default to true, so you only need to make sure none of them is set to false:
source:
type: powerbi
config:
extract_lineage: true
extract_dataset_schema: true
native_query_parsing: true
enable_advance_lineage_sql_construct: true
extract_column_level_lineage: true
If extract_column_level_lineage is true and one of the other four is false, the recipe fails validation with Enable all these flags in recipe: ['native_query_parsing', 'enable_advance_lineage_sql_construct', 'extract_lineage', 'extract_dataset_schema'].
Lineage also needs admin API access. In the Power BI admin portal, under Tenant settings, enable these for the security group of your Entra application:
- Service principals can access read-only admin APIs
- Enhance admin APIs responses with detailed metadata
- Enhance admin APIs responses with DAX and mashup expressions
See the Power BI source docs for the full setup.
Step 2: Confirm the casing mismatch
Get the column lineage of an affected Power BI dataset:
query {
dataset(urn: "<power bi dataset urn>") {
fineGrainedLineages {
upstreams { urn path }
downstreams { urn path }
}
}
}
Then get the schema of the upstream warehouse dataset named in the upstreams URNs:
query {
dataset(urn: "<upstream warehouse dataset urn>") {
schemaMetadata {
fields { fieldPath }
}
}
}
Compare the upstream path values with the warehouse fieldPath values. If the upstream paths are lowercase (orderid) and the warehouse field paths are not (OrderId), this article's cause applies.
Step 3: Upgrade the CLI
The fix ships in acryl-datahub 1.6.0.16, the CLI released with DataHub Cloud v2.1.0. The v2.1.0 release notes list it. Later releases also match the downstream columns from native SQL queries to the casing Power BI reports. Use the latest release.
For CLI ingestion:
pip install --upgrade 'acryl-datahub[powerbi]'
For a source that runs from the DataHub UI, set the CLI Version field in the source's advanced settings to the latest acryl-datahub version.
Step 4: Remove the lowercase workaround on the upstream source
If you set convert_column_urns_to_lowercase: true on an upstream SQL Server recipe to work around this problem, remove it. That option lowercases the SQL Server schema field paths. After the fix, Power BI writes the upstream columns in their original casing. The option now causes the same mismatch in the other direction. Re-run the SQL Server ingestion after you remove it.
After you remove the option, the SQL Server ingestion report shows the warning 'Potential issue with column-level lineage'. The warning suggests that you set convert_column_urns_to_lowercase to true. The connector shows this warning on every run that has lineage turned on and the option turned off. The warning does not check your Power BI lineage.
Caution: column descriptions, tags and glossary terms added in the UI are stored by field path. When the SQL Server field paths change from orderid to OrderId, those edits stay on the old lowercase field paths and do not show on the new ones. Plan how to move them before you switch.
Step 5: Re-run the Power BI ingestion and check the UI
Re-run the Power BI ingestion. Then open an affected Power BI dataset, go to the Lineage tab, and expand the node's columns to see the column edges. Column lineage lives on datasets. A Power BI report has no columns of its own, so check the dataset that feeds the report. The lineage feature guide shows how to view column lineage.
Related Documentation
- Power BI source
- DataHub Cloud v2.1.0 release notes
- Automatic Lineage Extraction
- Lineage feature guide
Tags: powerbi, column-level-lineage, lineage, ingestion, casing-mismatch, mssql, finegrained-lineage, m-query