Forum Discussion
Unable to Refresh Dataset in Power BI Service_PowerBINotAuthorizedException
- 2 years ago
Hi Anonymous ,
Thank you for your suggested solution. Currently, I have all the access to the data source and thus the premission to the data source was not the issue.
Right now, my issue had resolved. It was the workspace license that was not assigned correctly. Since I am using AI function (Text Analytics) in my Power BI report, my workspace settings should be assigned to Trial version of Microsoft Fabric so that I am able to use AI function when refreshing the dataset via Power BI Service.
Appreciate your kind feedback again mate and hope this solution will help the others.
Thank you and have a good day ahead!
Hi AizatHashim ,
The error “PowerBINotAuthorizedException” usually occurs if you don’t have proper permissions to perform the action. As you are trying to refresh your dataset in Power BI Service, make sure to grant the appropriate permissions to your data source and your service principal.
Some of the steps you can try are:
Share the dashboard with yourself in Power BI Service. This is assuming you have the access to share the dashboard within Power BI.
Check the regional settings of your system and make sure they match with the Power BI Service.
Use the Power BI REST API or PowerShell cmdlets to create, update, or delete deployment pipelines and workspaces.
Use Azure DevOps to automate the deployment of Power BI content using pipelines and tasks.
.net - PowerBI not authorized exception - Stack Overflow
powerbi - Unauthorized (401) Power BI Embedded using the samples Node and .NET - Stack Overflow
Solved: PowerBINotAuthorizedException error - Power Platform Community (microsoft.com)
How to Get Your Question Answered Quickly
If it does not help, please provide more details
Best Regards
Community Support Team _ Rongtie
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Anonymous ,
Thank you for your suggested solution. Currently, I have all the access to the data source and thus the premission to the data source was not the issue.
Right now, my issue had resolved. It was the workspace license that was not assigned correctly. Since I am using AI function (Text Analytics) in my Power BI report, my workspace settings should be assigned to Trial version of Microsoft Fabric so that I am able to use AI function when refreshing the dataset via Power BI Service.
Appreciate your kind feedback again mate and hope this solution will help the others.
Thank you and have a good day ahead!
- nikolaeff222 years agoFrequent Visitor
Hi AizatHashim
I was experiencing the same issue and I followed your advice to update the workspace to the trial version of fabric and it worked. Thank you for your recommendation.Best wishes,
N