will azure purview fetch the lineage if system.access.table_lineage in Untiy catalog have NULL entity run id

Priya Yadav 20 Reputation points
2025-04-23T10:17:00.7+00:00

Hi All ,

We have a job in Azure databricks and we are using dbutils.notebook.run to execute the notebooks. Post to that we have observed that the system.access.table_lineage table will have the lineage entry but the entity_run_id is NULL.

And I understand Purview reads these to fetch lineage.

Please help me understanding whether Purview will fetch the lineage from Azure databricks Unity catalog if system.access.table_lineage tables has entity_run_id as NULL.

Microsoft Purview
Microsoft Purview
A Microsoft data governance service that helps manage and govern on-premises, multicloud, and software-as-a-service data. Previously known as Azure Purview.
1,532 questions
0 comments No comments
{count} votes

Accepted answer
  1. Smaran Thoomu 22,505 Reputation points Microsoft External Staff
    2025-04-23T11:31:46.05+00:00

    Hi @Priya Yadav

    Thanks for bringing this up. You’re right - Azure Purview relies on the entity_run_id in the system.access.table_lineage table to properly trace data lineage from Databricks notebooks.

    If entity_run_id is NULL, Purview won't be able to associate that lineage information with a specific run, which means the lineage graph in Purview may be incomplete or not show up at all. This is a known limitation when using dbutils.notebook.run, as it doesn’t always pass the execution context fully, especially in chained notebook scenarios.

    To capture complete lineage, it's generally recommended to use Databricks Jobs with task-based orchestration instead. This ensures that the lineage metadata is recorded properly, including the entity_run_id, and improves the visibility in Purview.

    Hope this helps clarify things - happy to dive deeper into your setup if needed.


    Kindly consider upvoting the comment if the information provided is helpful. This can assist other community members in resolving similar issues.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.