Forum Discussion

Dhruvin27's avatar
Dhruvin27
New Member
4 years ago

Power BI PowerShell - A task was canceled.,Microsoft.PowerBI.Commands.Reports.GetPowerBIReport

I have 1500+ Workspaces in my Power BI Tenant. When I loop through the Workspaces and try to Get Reports using the following code snippet, it is working for few workspaces. Around (30 Workspace).

 

 

$report = Get-PowerBIReport -Scope Organization -WorkspaceId $WS.Id 

 

 

After that it started propmpting the following error!

 

+ CategoryInfo : WriteError: (Microsoft.Power...etPowerBIReport:GetPowerBIRep
ort) [Get-PowerBIReport], TaskCanceledException
+ FullyQualifiedErrorId : A task was canceled.,Microsoft.PowerBI.Commands.Reports.GetP
owerBIReport

 

 

Then, any script execution is failing. Is there any Limit to call PowerShell command ? Is there any Timeout Problem with Power BI PowerShell? Any solution for this problem? 

 

2 Replies