microsoft / microsoft/powerbi-powershell

Get-PowerBIDataset returns empty DefaultMode for datasets

Open
#271 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

I've created some streaming datasets via Power BI in a browser and they appear with an empty DefaultMode when I list them with Get-PowerBIDataset. So I can't see which datasets are classic Push and which are Streaming.

If I try to create a new dataset via this code:

$dataset= New-PowerBIDataset -Name "RealtimeData From REST API Streaming" -Tables $table1
$dataset.DefaultMode="Streaming"

Add-PowerBIDataset -Dataset $dataset -WorkspaceId $workspace.Id

It just gives a Push dataset and not a Streaming dataset.

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 tracing the Get-PowerBIDataset, New-PowerBIDataset, and Add-PowerBIDataset entry points involved in the report. Reproduce the streaming-dataset case and inspect how DefaultMode is handled; done means existing streaming datasets identify their mode and creating one with DefaultMode set to Streaming produces a Streaming dataset rather than a Push dataset.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, powershell
Domain
data
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.