microsoft / microsoft/powerbi-powershell
Report Overwrite issue
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 413
- Forks
- 134
- Avg merge
- 33m
- Merged PRs (30d)
- 1
Description
When I try to upload a report ".pbix" file it secceeds:
New-PowerBIReport -ConflictAction=Overwrite -Path './subscription.pbix' -Name 'subscription' -WorkspaceId xxxxxxx
But when i try to overwrite it using "-ConflictAction Overwrite"
New-PowerBIReport -ConflictAction 'Overwrite' -Path './subscription.pbix' -Name 'subscription' -WorkspaceId xxxxxxxx
I get the error:
New-PowerBIReport: Operation returned an invalid status code 'Conflict'
Not using the "-ConflictAction Overwrite" results in duplicated report. Any ideas how to resolve this?
I'm using the module from Azure powershell which I beleive should be the latest version, 1.0.840
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 by reproducing the two New-PowerBIReport commands with the reported module version and compare how each ConflictAction form is parsed. Trace the cmdlet's overwrite path and confirm the behavior against an existing report; done means the documented overwrite form updates the report without returning Conflict or creating a duplicate.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, powershell
- Domain
- cli, cloud
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100