powershell - Export-PowerBIReport 给出错误“Export-PowerBIReport:操作返回了无效的状态代码 'NotFound'”
问题描述
当我尝试访问 Export-PowerBIReport 以导出 .pbix 报告文件时,我收到错误“Export-PowerBIReport:操作返回无效状态代码 'NotFound'”。
我有 PowerBI PRO 帐户。我已经安装了所有 Power BI 模块。下面是我使用的代码。请建议。
Connect-PowerBIServiceAccount
$wrkSpace = Get-PowerBIWorkspace -Name 'xxxx'
$rep1 = Get-PowerBIReport -Name "Report Test1" -WorkspaceId $wrkSpace.id
$rep1
$rep1ID = [guid]$rep1.Id
$rep1GUID = $rep1ID.guid
$wrkSpace.id
$temp_path ='C:\test\test1.pbix'
Export-PowerBIReport -Id $rep1ID -WorkspaceId $wrkSpace.id -OutFile $temp_path
解决方案
在报告上设置了增量刷新,这就是它无法导出的原因。
推荐阅读
- heroku - 有没有办法防止从heroku骑自行车?
- javascript - 未捕获的类型错误:无法定义属性“x”:对象不可扩展
- java - Java Spark - 数据集/数据框中两列值的差异
- ios - 在本机应用程序中构建失败
- amazon-web-services - AWS CloudFormation - 忽略属性的变化 - Terraform等效的`ignore_changes`?
- async-await - Blazor webassembly 中的 Http 客户端成功发布,就像在 jQuery 中一样
- c# - 在 .Net MVC 上绘制画布或创建图像文件
- haskell - 无法写入标准输入
- reactjs - 如何在代码镜像编辑器中更改特定令牌样式?
- tsql - 按 ID 匹配记录并在 TSQL 中显示不匹配的列