Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
Hello,
I try to update RDL report data source via API (using service principal).
{
"updateDetails": [
{
"datasourceName": "JIRADB",
"connectionDetails": {
"server": "SQLBIP1DP1",
"database": "COGNOS_REPORTING"
}
}
]
}
And I receive this return message:
{
"error": {
"code": "Unauthorized",
"message": "Update datasource JIRADB is unauthorized"
}
}
I can not find solution. Service principal is admin in workspace.
But I can not set service principal as owner on data gateway data source (error msg no email address) - is this the problem?
Solved! Go to Solution.
I found the solution - You first need to call take over API - Reports - Take Over In Group - REST API (Power BI Power BI REST APIs) | Microsoft Learn. Then You can call API to change data source.
Our paginated reports are directly from Oracle (through data gateway). Maybe this API can be used to rebind dataset - Reports - Rebind Report In Group - REST API (Power BI Power BI REST APIs) | Microsoft Learn.
But we didn"t test this.
Hi @DavidPi,
AFAIK, update dataset should work for power bi reports. If you are work with RDL files, please try to use the update data source API if helps:
Reports - Update Datasources In Group - REST API (Power BI Power BI REST APIs) | Microsoft Learn
Regards,
Xiaoxin Sheng
I found the solution - You first need to call take over API - Reports - Take Over In Group - REST API (Power BI Power BI REST APIs) | Microsoft Learn. Then You can call API to change data source.
thanks - I'll give it a try
hello @DavidPi Thanks for these great info'! Does this also work for a paginated report that point to a PBI dataset - assuming old and new pbi dataset are in different workspace?
Yes, I use this API, but receive message - Update datasource JIRADB is unauthorized.
I do not know which permision I should have more. In Doc I see -
What does this mean? How to set owner of data source in RDL? I am confused.
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
9 | |
6 | |
3 | |
3 | |
2 |