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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
rxt
Helper I
Helper I

Powershell cmdlet Get-PowerBIDatasource

Get-PowerBIDatasource -DatasetId 00ce0e46-11a1-4075-8e56-a9c1a9980808 returns following error

Get-PowerBIDatasource : Operation returned an invalid status code 'NotFound'
At line:2 char:1
+ Get-PowerBIDatasource -DatasetId 00ce0e46-11a1-4075-8e56-a9c1a9980808
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : WriteError: (Microsoft.Power...werBIDatasource:GetPowerBIDatasource) [Get-PowerBIDatasource], HttpOperationException
+ FullyQualifiedErrorId : Operation returned an invalid status code 'NotFound',Microsoft.PowerBI.Commands.Data.GetPowerBIDatasource

as an admin, I am able to get full datasets, workspaces list but for Datasource some datasetID return value correctly and some returns the error message. I would be greatful if some one enlighten me what is a reason behind this.

 

1 ACCEPTED SOLUTION

Thanks for the Response @lbendlin . I am novice user with admin rights. I found out an article that mentioned as below

rxt_0-1598031491679.png

That may be the real cause behind, I am testing if that is the case. 

PS:

Just added myself as an admin on the workspace which I didn't have access before and was able to get the data source Information. Thanks to sqlchick  writer. 

View solution in original post

2 REPLIES 2
lbendlin
Super User
Super User

Thanks for the Response @lbendlin . I am novice user with admin rights. I found out an article that mentioned as below

rxt_0-1598031491679.png

That may be the real cause behind, I am testing if that is the case. 

PS:

Just added myself as an admin on the workspace which I didn't have access before and was able to get the data source Information. Thanks to sqlchick  writer. 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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