microsoft / microsoft/powerbi-powershell
A Task Was Cancelled Error
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 413
- Forks
- 134
- Avg merge
- 33m
- Merged PRs (30d)
- 1
Description
Using the PowerShell cmdlet, I'm trying to retrieve the workspace list from the tenant but I'm getting below error randomly. I'm trying to find out the exception type so that I can implement the error handling. Please advise the exception type that can be used in the exception handling.
Thanks a lot and looking forward for the response.
Error Message:
GET-POWERBIWORKSPACE : A task was canceled.
At D:\PowerBI\1.ps1:16 char:20
- ... $WORKSPACEID = GET-POWERBIWORKSPACE -Scope Organization -ALL | WHERE ...
-
- CategoryInfo : WriteError: (Microsoft.Power...owerBIWorkspace:GetPowerBIWorkspace) [Get-PowerBIWorkspace], TaskCanceledException
- FullyQualifiedErrorId : A task was canceled.,Microsoft.PowerBI.Commands.Workspaces.GetPowerBIWorkspace
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the PowerShell command in D:\PowerBI\1.ps1 and trace the Get-PowerBIWorkspace entry point that produces TaskCanceledException. The issue names no repository file or test; done would require identifying the relevant exception behavior and documenting the handling guidance or a reproducible fix.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, powershell
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100