Forum Discussion

rxt's avatar
rxt
Helper I
5 years ago
Solved

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.

 

  • rxt's avatar
    rxt
    5 years ago

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

    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. 

2 Replies