Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
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:
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?
Solved! Go to Solution.
Hello,
it doesnt matter.
I have done it within 2 different workspaces.
It was a matter of credentials for service principal.
Best,
Jacek
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