microsoft / microsoft/powerbi-powershell

Wrong Variable Type from cmdlet Get-PowerBIDataFlow

Open
#280 0 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

cmdlet call:

$result = Get-PowerBIDataFlow -WorkspaceId $workSpace.Id -ErrorVariable Check3

Expected: Array that has a count property so the result can be collected in a variable for a common output to excel. Like @allResults= @allResults + $result

Reality: It works fine, when 2 and more results are returned. When only one resultset is returned no array is return (no .Count property) and the collecting of results is not working.

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-PowerBIDataFlow with a workspace returning one result and then multiple results. Locate the cmdlet implementation and its existing tests, then verify that both cases produce a collectable result with a Count property and that the reported aggregation scenario works.

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
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.