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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Regular Visitor

Can refresh dataset in but cannot execute queries against it


I am trying to execute a query to get a table out of a dataset using Azure Data Factory web activity. I am using the following documentation:


The following API call:




Body: {
"queries": [
"query": "EVALUATE VALUES('{table name}')"
"serializerSettings": {
"includeNulls": true
"impersonatedUserName": {}

Authentication: System Assigned Managed Identity





Returns the following error: {"error":{"code":"PowerBINotAuthorizedException","pbi.error":{"code":"PowerBINotAuthorizedException","parameters":{},"details":[],"exceptionCulprit":1}}}


However, the API call below does execute successfully:





body: {
"retryCount": 0

Authentication: System Assigned Managed Identity





As far as I am aware, I have enabled all necessary permissions in the admin portal of If the POST call to refresh a dataset is working, I do not know why the executeQueries API call is not working.


Is there something I am missing about permissions in the workspace in




Super User
Super User

Do you have "Build"  permissions against the semantic model?

Yes. Both the Data Factory and the impersonatedUserName have Workspace Admin and All Permissions Granted.

Helpful resources

Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City


Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.