Area: Ingestion
Sub-Area: BI Tools
Applies to: OSS + Cloud
Issue
Power BI workspaces, datasets, tables, columns, or reports are missing in DataHub, or lineage to source systems is incomplete. Reports can appear while datasets, tables and columns are missing.
You Might Be Asking
- How do I set up Power BI ingestion?
- Why do I see reports but no datasets, tables or columns?
- Why is lineage, ownership or endorsement data missing?
- How do I map Power BI data sources to DataHub platform instances?
Cause
Missing datasets and lineage usually come from one of these:
-
No Admin API access. The config descriptions say Admin API access is required when
extract_ownership,extract_lineage,extract_endorsements_to_tagsoradmin_apis_onlyis enabled. Without it, the admin scan can't run and datasets, tables and columns are not built. - The app is not a member of the workspace. Add the Entra app to every workspace you want to ingest.
-
An invalid
server_to_platform_instanceordataset_type_mappingsetting. See step 5.
When the admin scan fails, the fallback is not silent. You can see it here:
- In the run log:
Unable to fetch get scan result.On HTTP 401 or 403 the log also shows the warningDataset lineage can not be ingestion because this user does not have access to the PowerBI Admin API. - In the ingestion report: an
Incomplete Scan Metadatawarning for each workspace, and aReport Scan Fallback Activeinfo entry. Reports then come from the per-workspace reports endpoint, so reports can appear while datasets, tables and columns are missing.
If the scan job does not finish within scan_timeout (default 60), the run fails with Workspace detail is not available. Please increase the scan_timeout configuration value to wait longer for the scan job to complete.
Solution
-
Register the app in Microsoft Entra and create a client secret. Follow the Power BI setup guide. DataHub's setup steps grant access through Power BI tenant settings, scoped to a Security group that contains the app, and through workspace membership. They include no step to add Entra API permissions (such as Dataset.Read.All) or grant admin consent, so don't add them.
-
Enable the tenant settings. In the Power BI Admin Portal, go to Tenant settings, then Developer settings, and enable
Service principals can call Fabric public APIsfor the Security group. Older tenants call this settingAllow service principals to use Power BI APIs. For lineage, ownership and endorsements, also enable the Admin API settings listed under Admin APIs ingestion. Public API access is covered under Public APIs ingestion. All prerequisites are on the Power BI source reference. -
Add the app to each workspace. Add the Entra app as a member of every workspace you want to ingest. Viewer is enough in most cases. Contributor is needed for profiling. With public API access plus workspace membership, the connector ingests Dashboards, Dashboard Tiles, Reports and Report Pages.
-
Configure the source.
source:
type: powerbi
config:
tenant_id: "${AZURE_TENANT_ID}"
client_id: "${AZURE_CLIENT_ID}"
client_secret: "${AZURE_CLIENT_SECRET}"
# Optional: limit which workspaces are ingested
workspace_id_pattern:
allow: ["^abc123workspaceid$"]
workspace_name_pattern:
allow: ["^Finance.*"]
extract_lineage: true
extract_reports: true
extract_ownership: true
extract_endorsements_to_tags: true
Defaults: extract_reports, extract_dashboards, extract_dataset_schema and extract_lineage are true. extract_ownership and extract_endorsements_to_tags are false. extract_workspaces_to_containers is true and extract_datasets_to_containers is false.
Set extract_datasets_to_containers: true to create one container per Power BI dataset (semantic model). Each table's browse path then becomes workspace container, then dataset container. When it is false, the dataset name appears in the browse path with no container behind it.
If you set admin_apis_only: true, Report Pages are not extracted, M-Query parameters are not resolved, and dataset profiling is unavailable.
For Power BI Government Community Cloud, set environment: GOVERNMENT. The default is COMMERCIAL.
-
Map data sources to platform instances. Use
server_to_platform_instance. The key is the server as it appears in the M-query (host[:port]). For BigQuery the key is the project name. For Databricks Unity Catalog it is the workspace FQDN. The value for each key must be an object withplatform_instanceand an optionalenv. A bare string value is not valid.
source:
type: powerbi
config:
server_to_platform_instance:
"my-sql-server.domain.com":
platform_instance: prod_sql_instance
env: PROD
Don't set dataset_type_mapping in the same recipe. It is deprecated, and a recipe that sets both fails with dataset_type_mapping is deprecated. Use server_to_platform_instance only.
-
Re-run ingestion and check the report. If
Unable to fetch get scan result.orIncomplete Scan Metadatastill appears, recheck the tenant settings in step 2. A 401 from the admin scan explains missing dataset tables and columns whether or notadmin_apis_onlyis set.
If you run ingestion from the UI on DataHub Cloud, you can set the CLI version under Advanced Settings. The latest release is acryl-datahub 1.7.0.20, which needs Python 3.10 or later.