Forum Discussion
Anonymous
6 years agoNot applicable
Error running Powershell Get-PowerBITable
Hello, I've experienced an error while running the following command: Get-PowerBITable -DatasetId [My Dataset ID Here] -WorkspaceId [My Workspace ID here] . Error is as follows: Get-PowerBITable...
Jayendran
6 years agoSolution Sage
Hi Anonymous
As the error mentioned the Script couldn't able to find it the one which you are looking
Possible reason:
- Either your datasetid/workspace id is wrong
- The logged in user (from the powershell session) is not having permission to the workspace/dataset
~Jay
Pls join my upcoming webinar
- Anonymous6 years agoNot applicable
Hi Jayendran,
It is strange, because I am setup as the Power BI Service Admin of our tenant.
I am confident that my datasetid/workspace id are correct (I got it by reading from url or running Get-PowerBIDataset -Scope Organization)
I am able to run the following and get data without issues:
Get-PowerBIDataset -Scope Organization
Get-PowerBIWorkspace -All
By removing the workspace id, error is : Get-PowerBITable : Operation returned an invalid status code 'Forbidden'.
Really need help from someone to understand what is happening.
Regards,
Joe