cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Frequent Visitor

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

Accepted Solutions
Frequent Visitor

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
Super User II
Super User II
Frequent Visitor

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

Helpful resources

Announcements
November Update

Check it Out!

Click here to read more about the November 2020 Updates!

Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

secondImage

Power Platform October Community Highlights

Check out the top community contributors across all of the communities

secondImage

Create an end-to-end data and analytics solution

Learn how Power BI works with the latest Azure data and analytics innovations at the digital event with Microsoft CEO Satya Nadella.

Top Kudoed Authors