microsoft / microsoft/powerbi-powershell

New-PowerBIReport mistakenly treats Name as a filename

Open
#272 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

New-PowerBIReport somehow mistakenly treats Name argument as a filename and strips anything following a dot from it.

Examples:

PS /home/ubuntu> New-PowerBIReport -Path "$($targetReportName).pbix" -WorkspaceId $targetWs.Id -Timeout 3600 -Name "NewReport_1.5.18"

Id        : 17f2eb7e-6477-4d80-928f-01fdecea1349
Name      : NewReport_1.5
WebUrl    : https://app.powerbi.com/groups/cd883b0b-03ed-4eb4-8a8b-e71fc882ce71/reports/17f2eb7e-6477-4d80-928f-01fdecea1349
EmbedUrl  : https://app.powerbi.com/reportEmbed?reportId=17f2eb7e-6477-4d80-928f-01fdecea1349&config=eyJjbHVzdGVyVXJsIjoiaHR0cHM6Ly9XQUJJLUFVU1RSQUxJQS1FQVNULUEtUFJJTUFSWS1yZWRpcmVjdC5hbmFseXNpcy53aW5kb3dzLm5ldCIsImVtYmVkRmVhdHVyZXMiOn
            sibW9kZXJuRW1iZWQiOnRydWV9fQ%3d%3d
DatasetId : 


PS /home/ubuntu> New-PowerBIReport -Path "$($targetReportName).pbix" -WorkspaceId $targetWs.Id -Timeout 3600 -Name "NewReport_1.5_18"

Id        : 92518e0b-462d-4081-8057-2390e406415f
Name      : NewReport_1
WebUrl    : https://app.powerbi.com/groups/cd883b0b-03ed-4eb4-8a8b-e71fc882ce71/reports/92518e0b-462d-4081-8057-2390e406415f
EmbedUrl  : https://app.powerbi.com/reportEmbed?reportId=92518e0b-462d-4081-8057-2390e406415f&config=eyJjbHVzdGVyVXJsIjoiaHR0cHM6Ly9XQUJJLUFVU1RSQUxJQS1FQVNULUEtUFJJTUFSWS1yZWRpcmVjdC5hbmFseXNpcy53aW5kb3dzLm5ldCIsImVtYmVkRmVhdHVyZXMiOn
            sibW9kZXJuRW1iZWQiOnRydWV9fQ%3d%3d
DatasetId : 

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 with the New-PowerBIReport command and reproduce the issue using the two provided -Name values, especially names containing a dot or underscore. Trace how -Name is handled relative to -Path. Done means report names such as NewReport_1.5.18 and NewReport_1.5_18 are preserved in full.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.