Area: Ingestion Issues
Sub-Area: Cross-Platform Lineage (PowerBI + Databricks/dbt)
Applies to: OSS + Cloud
Issue
You ingest Power BI with admin_apis_only: true in the recipe. Lineage from Power BI tables to upstream Databricks or dbt tables is missing for many tables. The ingestion report shows high counts for m_query_resolver_errors and m_query_resolver_no_lineage.
A second problem looks the same: the Power BI ingestion emits upstream lineage, but the upstream URN does not match the URN of the Databricks or dbt table in DataHub. The edge then points to an asset that does not exist.
Error Messages
These are counters in the Power BI ingestion report, not error text:
m_query_resolver_errorsm_query_resolver_no_lineage
You Might Be Asking
- Why is lineage between Power BI and Databricks or dbt missing when I use
admin_apis_only: true? - If I turn off
admin_apis_only, can I also remove the Power BI admin API tenant settings? - Lineage still does not connect after I fixed
admin_apis_only. What do I check? - Does
admin_apis_only: falselet DataHub read the data in my Power BI datasets?
Cause
Power BI table lineage comes from the M-query expression of each table. Many M-queries use Power BI parameters for the server, catalog, schema or table name. To resolve those, the connector needs each dataset's current parameter values.
With admin_apis_only: true, the connector reads dataset parameters through the admin API resolver, which returns no parameter values. Any M-query part that references a parameter stays unresolved, so the connector cannot build the upstream table name and emits no lineage for that table. The Power BI source docs list this as a caveat of admin_apis_only: Power BI Parameters are not resolved to actual values while processing M-Query for table lineage. Report pages and dataset profiling are also unavailable in this mode.
With admin_apis_only: false (the default), the connector reads parameter values from the regular Power BI REST API (/groups/{workspace}/datasets/{dataset}/parameters). That call works only for workspaces where your Entra application is a member. If the call fails, the connector logs Unable to fetch dataset parameters for <dataset id> at info level and continues without parameter values.
The M-query expressions themselves always come from the admin workspace scan. The connector runs the scan with the admin API in both modes. Without admin API access, the scan fails and no M-query lineage is produced at all.
Solution
-
Set
admin_apis_only: falsein your Power BI recipe, or remove the key (false is the default).source: type: powerbi config: tenant_id: '${PBI_TENANT_ID}' client_id: '${PBI_APP_ID}' client_secret: '${PBI_SECRET}' admin_apis_only: false extract_lineage: true native_query_parsing: true enable_advance_lineage_sql_construct: true extract_column_level_lineage: true server_to_platform_instance: <your-databricks-workspace-hostname>: platform_instance: <your-databricks-platform-instance>extract_lineage,native_query_parsing,enable_advance_lineage_sql_constructandextract_column_level_lineagealready default totrue. They are shown so you can see what lineage needs. For Databricks, theserver_to_platform_instancekey is the Databricks workspace hostname as it appears in the M-query. -
Add your Entra application as a member of each Power BI workspace you ingest. The
Viewerrole is enough unless you turn on profiling, which needsContributor. See Public APIs ingestion. -
Keep admin API access for the Entra application. It is required for lineage in both modes, not only with
admin_apis_only: true. In Power BI or Fabric, go to Settings, then Admin portal, then Tenant settings. Turn on each of these and add your application's security group under Specific security groups:Service principals can access read-only admin APIsEnhance admin APIs responses with detailed metadataEnhance admin APIs responses with DAX and mashup expressions
See Admin APIs ingestion.
-
Make the upstream URNs match. Power BI builds the upstream Databricks URN from the
platform_instanceyou map inserver_to_platform_instancepluscatalog.schema.table.convert_lineage_urns_to_lowercasedefaults totruein the Power BI recipe. It lowercases the whole dataset name in the upstream URN, platform instance included. So a Databricks recipe withplatform_instance: DBX-ProdproducesDBX-Prod.catalog.schema.table, while Power BI points todbx-prod.catalog.schema.table. These do not match.Check these together:
- The Databricks recipe
platform_instance, the dbt recipetarget_platform_instance, and the Power BIserver_to_platform_instancevalue use the same name. A lowercase name avoids the case mismatch above. - dbt lowercases dataset names by default (
convert_urns_to_lowercase: true). The Databricks source (type: databricks) defaults toconvert_urns_to_lowercase: false.
# Databricks recipe source: type: databricks config: platform_instance: <your-databricks-platform-instance> # dbt recipe source: type: dbt config: target_platform: databricks target_platform_instance: <your-databricks-platform-instance> # Power BI recipe source: type: powerbi config: server_to_platform_instance: <your-databricks-workspace-hostname>: platform_instance: <your-databricks-platform-instance>Caution:
platform_instanceandconvert_urns_to_lowercaseare part of every dataset URN. If you already ingested Databricks, changing either one gives every Databricks dataset a new URN. With stateful ingestion, the next run soft deletes the old datasets as stale, unless more thanfail_safe_thresholdpercent (75 by default) of the URNs changed. In that case the run soft deletes nothing and you get duplicates. Without stateful ingestion, you get duplicates. Documentation, tags, owners and glossary terms added in the UI stay on the old datasets. Plan this before you change the value. Theconvert_urns_to_lowercasedescription in Databricks config details gives the same warning. - The Databricks recipe
-
Run the Databricks and dbt ingestions, then run the Power BI ingestion. Table lineage is stored by URN, so a table edge links up once the upstream table is ingested. Column lineage for native SQL queries is different: the connector reads the upstream table schemas from DataHub while it parses the SQL, so those tables must already be in DataHub when Power BI runs.
-
Check the result on a Power BI table's lineage graph. Turn on Show Hidden Edges in the lineage filters. It shows upstream assets that were deleted or do not exist in DataHub. An upstream node that only appears with this option on means the URN Power BI emitted does not match any ingested table. Compare its URN with the Databricks table URN.
Additional Notes
admin_apis_only: false makes the connector use the regular Power BI REST API for workspace metadata: workspaces, dashboards, tiles, reports, report pages and dataset parameter values. These are metadata calls. The connector queries dataset data only when you turn on profiling.enabled (default false), and profiling does not work with admin_apis_only: true.
If an M-query uses literal values instead of parameters, the connector can resolve it in either mode. Parameter resolution only matters for M-queries that reference Power BI parameters.
Related Documentation
- Power BI source
- Power BI Public APIs ingestion
- Power BI Admin APIs ingestion
- Databricks source
- dbt source
Tags: powerbi, lineage, admin_apis_only, databricks, dbt, cross-platform-lineage, urn-casing, m-query, platform-instance, ingestion-configuration