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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
jaryszek
Memorable Member
Memorable Member

Trying to make a call for REST API for rebinding report

Hello, 

I am trying to rebind import mode report to onelake using Visual Code REST API extension.

 

#  rebindReport
POST https://api.powerbi.com/v1.0/myorg/groups/{{groupId}}/reports/ee0ec30b-1111-4912-9b26-c24903f4dad8/Rebind
Authorization: Bearer {{$aadV2Token appOnly}}
Content-Type: application/json

{
  "datasetId": "4a25cc9d-c0ee-42bf-1111-a3c7cac3f780"
}

 

 

I tried to use this like that where:

groupId is a source report group id created within app.powerbi service workspace. 

reportId is report id taken from url from the same workspace. 

 

datasetId: datasetID created on fabric workspace on Datalake on OneLake and 

and getting answer:

jaryszek_0-1756995444551.png


what I am missing? Using service principal in both workspases as admin. 
To get groupID within first workspace i am using: 

 

#  getGroupId
GET https://api.powerbi.com/v1.0/myorg/groups?$filter=name%20eq%20'{{groupName}}'
Authorization: Bearer {{$aadV2Token appOnly}}<div><span>which is working without any issues<br /><br />

 

What I am missing?

 

 

1 ACCEPTED SOLUTION

Hello,
it doesnt matter.

I have done it within 2 different workspaces.
It was a matter of credentials for service principal. 

Best,
Jacek


View solution in original post

2 REPLIES 2
v-pgoloju
Community Support
Community Support

Hi @jaryszek,

 

Thank you for reaching out to the Microsoft Fabric Forum Community.

If your report is in one workspace (classic Power BI cluster) and your dataset is in another (Fabric/OneLake), then the Rebind API will fail with PowerBIEntityNotFound. In that case, you should move or publish the dataset into the same workspace where the report is stored and then run the Rebind API using that workspace’s groupId, reportId, and datasetId.

 

Thanks & Regards,

Prasanna Kumar

Hello,
it doesnt matter.

I have done it within 2 different workspaces.
It was a matter of credentials for service principal. 

Best,
Jacek


Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.