简体   繁体   English

来自 Power Automate (Microsoft Flow) 的 Power Bi 中的计划刷新数据集

[英]Scheduled refresh dataset in Power Bi from Power Automate (Microsoft Flow)

I have a Power BI project where the data is stored in sql server through DirectQuery.我有一个 Power BI 项目,其中数据通过 DirectQuery 存储在 sql 服务器中。 I would like to schedule the update of the report and therefore of the data, through Microsoft Automate (Flow).我想通过 Microsoft Automate (Flow) 安排更新报告和数据。

Flow scheduling流调度

When I run the schedule, however, I get this error message "Invalid dataset. This API can only be called on a Model-based dataset power bi".但是,当我运行计划时,我收到此错误消息“数据集无效。此 API 只能在基于模型的数据集 power bi 上调用”。

{
  "error": {
    "code": "InvalidRequest",
    "message": "Invalid dataset. This API can only be called on a Model-based dataset"
  }
}

Immage Error图像错误

Why?为什么?

When you publish Direct Query report to PBI Service, there is no need in scheduled refresh, the service is able to query the data directly.当您将 Direct Query 报表发布到 PBI Service 时,无需定期刷新,该服务可以直接查询数据。 Only import datasets require refresh when published to PBI service.仅导入数据集在发布到 PBI 服务时需要刷新。 That is the reason of the error - there is basically nothing to refresh.这就是错误的原因——基本上没有什么可刷新的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM