The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
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
User | Count |
---|---|
3 | |
3 | |
3 | |
2 | |
2 |
User | Count |
---|---|
9 | |
7 | |
7 | |
5 | |
4 |