Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
geekometer
Microsoft Employee
Microsoft Employee

Set-PowerBIDataset : Operation returned an invalid status code 'BadRequest'

Hello, I'm trying to set PowerBI datasets target storage mode to Premium files. I did a Get-PowerBIDataset and it worked and showed me the actual storage value 'abf' alongside datasetid. But its not letting me SET. 

 

Itried this by giving dataset name and dataset id but none worked.

 

WITH DATASETID

Set-PowerBIDataset -Id 506136cb-9f42-45ad-8201-9d103681a401 -TargetStorageMode PremiumFiles -WorkspaceId f04180c5-338f-4e53-b11d-7431fe220862
Set-PowerBIDataset : Operation returned an invalid status code 'BadRequest'
At line:1 char:1
+ Set-PowerBIDataset -Id 506136cb-9f42-45ad-8201-9d103681a401 -TargetSt ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : WriteError: (Microsoft.Power...tPowerBIDataset:SetPowerBIDataset) [Set-PowerBIDataset], HttpOperationException
+ FullyQualifiedErrorId : Operation returned an invalid status code 'BadRequest',Microsoft.PowerBI.Commands.Data.SetPowerBIDataset

1 REPLY 1
Anonymous
Not applicable

@geekometer 
I was not not reproduce this issue, so I would recommend you scroll down and create the support ticket.


Paul Zheng _ Community Support Team
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.