首页 > 解决方案 > 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  

标签: powershellpowerbi

解决方案


在报告上设置了增量刷新,这就是它无法导出的原因。


推荐阅读