microsoft / microsoft/powerbi-powershell

Get-PowerBIWorkspace : Attempted to access an element as a type incompatible with the array

Open
#261 18 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
413
Forks
134
Avg merge
33m
Merged PRs (30d)
1

Description

i have upgraded to latest version, but i recevie the error :
image

`PS C:> $allWS=Get-PowerBIWorkspace -Scope Organization -All
Get-PowerBIWorkspace : Attempted to access an element as a type incompatible with the array.
At line:1 char:8

  • $allWS=Get-PowerBIWorkspace -Scope Organization -All
  •    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : WriteError: (Microsoft.Power...owerBIWorkspace:GetPowerBIWorkspace) [Get-PowerBIWorkspace], ArrayTypeMismatchException
    • FullyQualifiedErrorId : Attempted to access an element as a type incompatible with the array.,Microsoft.PowerBI.Commands.Workspaces.GetPowerBIWorkspace`

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing Get-PowerBIWorkspace -Scope Organization -All in the PowerBI PowerShell module and inspect the GetPowerBIWorkspace implementation. The report identifies an ArrayTypeMismatchException, but does not name a source file, test, module version, Power BI response, or expected result. Done means the command completes successfully for the reported scope and the regression is covered by a test if the repository provides one.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.