You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Power BI数据刷新失败求助:PostgreSQL流读取异常排查

问题:Power BI定时数据刷新失败(PostgreSQL数据源)

错误现象

  • 在app.powerbi.com上运行数周的定时数据刷新任务突然停止,Power BI Desktop本地刷新也出现相同错误
  • 进入Transform Data界面,仅能通过第一个名为Source的应用步骤查看数据库中的所有表和视图,后续步骤执行失败(需导入3个视图)
  • 执行视图查询耗时大幅增加,数据量无明显变化,但刷新时数据库服务器CPU占用率达100%

错误信息

云端Power BI返回的错误JSON

{
  "error": {
    "code": "DM_GWPipeline_Gateway_MashupDataAccessError",
    "pbi.error": {
      "code": "DM_GWPipeline_Gateway_MashupDataAccessError",
      "parameters": {},
      "details": [
        {
          "code": "DM_ErrorDetailNameCode_UnderlyingErrorCode",
          "detail": {
            "type": 1,
            "value": "-2147467259"
          }
        },
        {
          "code": "DM_ErrorDetailNameCode_UnderlyingErrorMessage",
          "detail": {
            "type": 1,
            "value": "PostgreSQL: Exception while reading from stream"
          }
        },
        {
          "code": "DM_ErrorDetailNameCode_UnderlyingHResult",
          "detail": {
            "type": 1,
            "value": "-2147467259"
          }
        },
        {
          "code": "Microsoft.Data.Mashup.ValueError.DataSourceKind",
          "detail": {
            "type": 1,
            "value": "PostgreSQL"
          }
        },
        {
          "code": "Microsoft.Data.Mashup.ValueError.DataSourcePath",
          "detail": {
            "type": 1,
            "value": "<ip>MY IP</ip>;MY DB"
          }
        },
        {
          "code": "Microsoft.Data.Mashup.ValueError.ErrorCode",
          "detail": {
            "type": 1,
            "value": "-2147467259"
          }
        },
        {
          "code": "Microsoft.Data.Mashup.ValueError.Message",
          "detail": {
            "type": 1,
            "value": "Exception while reading from stream"
          }
        },
        {
          "code": "Microsoft.Data.Mashup.ValueError.Reason",
          "detail": {
            "type": 1,
            "value": "DataSource.Error"
          }
        }
      ],
      "exceptionCulprit": 1
    }
  }
}

Power BI Desktop错误提示

[DataSource.Error] PostgreSQL: Exception while reading from stream

初步排查操作

  • 数据库部署在Azure虚拟机,已配置Data Gateway,防火墙入站IP已正确添加
  • 重启过数据库服务器,尝试过网络相关解决方案,均未解决问题

最终解决(更新)

经进一步排查,发现后台某预查询产生重复记录,导致性能严重下降,数据集更新耗时长达30分钟引发Power BI超时。修正该预查询后,刷新仅需半分钟即可完成。

内容的提问来源于stack exchange,提问作者andexte

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.17 09:03:13