Skip to main content

尝试缓解Power BI报表数据源为Azure Databricks在代理服务器环境中刷新出错的问题

分类:  PowerBI 标签:  #BI #报表 #大数据 发布于: 2025-02-20 16:31:31

Power BI报表数据源是Azure Databricks或者Databricks,网络环境使用代理服务器的时候,有可能会遇到类似的刷新错误:

Error
[Microsoft][DriverSupport] (1120) verification failed because the server host name specified for the connection does not match the "CN" entry in the "Subject" field or any of the "DNS Name" entries of the "Subject Alternative Name" field in the server certificate.. Since the connection has been configured to consider all result file download as retriable errors, we will attempt to retry the download

虽然Databricks的官方文档有提及类似的问题,并且给出的缓解方案:https://kb.databricks.com/bi/powerbi-proxy-ssl-configuration, 但是Databricks官方的文档操作性上可能会对很多用户有难度,同时我自己测试下来,看上去也不能缓解一些问题,至少没有解决我遇到的问题。

为了缓解类似的问题,我测试了一个可行的方案:利用Power BI针对Azure Databricks自己的特性来缓解类似的问题:启用特性EnableAutomaticProxyDiscovery

启用该特性有两种方式:

已有的模型上设置数据源的特性

假设您已经有了一个现有的模型,通过调整数据源的设置:

let
    源 = Databricks.Catalogs("adb-xxxxxx.databricks.azure.cn", "/sql/1.0/warehouses/xxxxx", [Catalog=null, Database=null, EnableAutomaticProxyDiscovery="enabled"]),

需要注意属性的配置[Catalog=null, Database=null, EnableAutomaticProxyDiscovery="enabled"] 中配置: EnableAutomaticProxyDiscovery="enabled" 即表示启用了该特性。

新建报表配置数据源

如果时新建报表的时候,引入Azure Databricks数据源时,直接使用下图的配置: