Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin 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.
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.
Solved! Go to Solution.
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.
Try it in the sandbox and see if you can replicate the error. Which of these calls are you attempting?
https://docs.microsoft.com/en-us/rest/api/power-bi/admin/datasets_getdatasourcesasadmin
https://docs.microsoft.com/en-us/rest/api/power-bi/datasets/getdatasourcesingroup
https://docs.microsoft.com/en-us/rest/api/power-bi/datasets/getdatasources
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.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
9 | |
7 | |
2 | |
2 | |
2 |
User | Count |
---|---|
6 | |
5 | |
4 | |
4 | |
4 |