Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
pennyhoho117
Helper IV
Helper IV

Error: {'error': {'code': 'PowerBINotAuthorizedException' when calling executeQueries API

Hi ,

i am now stuck in a error when calling power bi API: https://api.powerbi.com/v1.0/myorg/groups/xxxxx/datasets/xx/executeQueries.

i have two datasets A and B in same workspace.

i call the API ,

https://api.powerbi.com/v1.0/myorg/groups/xxxxx/datasets/A/executeQueries.

and https://api.powerbi.com/v1.0/myorg/groups/xxxxx/datasets/B/executeQueries.

with query: "EVALUATE ROW(\"currentDate\", TODAY())" respectively.

one success but one failed with error: 

{'error': {'code': 'PowerBINotAuthorizedException', 'pbi.error': {'code': 'PowerBINotAuthorizedException', 'parameters': {}, 'details': [], 'exceptionCulprit': 1}}}

 

Can anyone give me some suggestions for the root cause?

Thanks

 

1 REPLY 1
Anonymous
Not applicable

Hi @pennyhoho117 ,

Base on your description, it seems you got the error when calling executeQueries API for one of datasets in the same workspace. One can work, the other one get PowerBINotAuthorizedException error. The following thread is the one which has the similar problem as yours, hope its solution can help you solve the problem.

Solved: PowerBI API Returns "PowerBINotAuthorizedException... - Microsoft Fabric Community

When you use the admin api you need to grant access to this in the tenant admin. Because you use service principal this need to be added in a security group, and this group needs to be granted admin api access in the tenant admin portal.

When this is done, I,ve experienced it can take up to 20-30 min before it works.


Best Regards

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.