Forum Discussion
Error running Powershell Get-PowerBITable
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
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
- Jayendran6 years agoSolution Sage
Hi Anonymous ,
Ah now it's Forbidden error which means like you are not allowed. Can you try the same script in a new powershell session or window
- Anonymous6 years agoNot applicable
- Anonymous6 years agoNot applicable
Seeing the same behaviour here - did you ever find a solution?