An Apache Spark-based analytics platform optimized for Azure.
Hi @Anonymous
Based on the behavior you've described, this matches a documented limitation when using Microsoft Entra ID-managed service principals for Power BI authentication with Azure Databricks.
The Azure Databricks documentation states that M2M OAuth with a Microsoft Entra ID-managed service principal has a 1-hour limit. If a Power BI workflow runs longer than one hour, it fails because the Power BI connector cannot refresh the OAuth access token during the operation. This aligns with the error you're seeing:
ERROR [HY000] [Microsoft][Hardy] (35)
Unable to continue fetch after reconnect. Retry limit exceeded.
This also explains why the refresh succeeds when using a Personal Access Token (PAT)—PAT authentication is not subject to this specific OAuth token refresh limitation.
If you would like to continue using service-principal authentication, the documentation recommends using an Azure Databricks-managed service principal for M2M OAuth. Unlike Microsoft Entra ID-managed service principals, the connector automatically refreshes the access token for Azure Databricks-managed service principals, so the 1-hour limitation does not apply.
Therefore, your available options are:
Continue using a PAT, which is a supported workaround for long-running refreshes.
Migrate to an Azure Databricks-managed service principal for M2M OAuth if you want to retain service-principal authentication without the 1-hour limitation.
References:
https://learn.microsoft.com/en-us/azure/databricks/partners/bi/power-bi-m2m
https://learn.microsoft.com/en-us/azure/databricks/partners/bi/power-bi-desktop
If this solution helped resolve your issue, please consider clicking ‘Accept Answer’ or giving it an upvote to help others find it easily.