Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
I've created a paginated report by power bi report builder. Used power bi semantic model as data source then published it on power bi service. After that I cloned report by REST API.
Now I want to change the data source as another semantic model of cloned report. I also tried by this endpoint
POST https://api.powerbi.com/v1.0/myorg/reports/{reportId}/Default.UpdateDatasources
Payload :
Payload
{
"updateDetails": [
{
"datasourceName": "<dataSourceName>",
"connectionDetails": {
"workspaceId": "<workspaceId>",
"datasetId": "<datasetId>"
}
}
]
}
The request return success but actually the report doesn't show data from updated semantic model. I'm looking for an approach to update the data source as semantic model.
I read the Reports - Update Datasources documentation to update paginated repot's data source but there no example to upate semantic model as data source
Solved! Go to Solution.
Hi @v-aatheeque ,
First of all I am sorry that I could not response you.
I got the solution here I am going to describe about that.
There was a issue for payload structure. Actually I tried in this way
{
"updateDetails": [
{
"datasourceName": "<dataSourceName>",
"connectionDetails": {
"server": "Data Source=powerbi://api.powerbi.com/v1.0/myorg/<workspaceName>",
"database": "<datasetName>"
}
}
]
}
And report can pull data from specific dataset/semantic model. But arise problem while trying to export, it was showed me error :
exporting a paginated report requires permissions in both report and dataset workspaces
Then I compare with a main report's datasource by REST API where I connect a semantic model by power bi report builder which was able to export report. And I could identify the issue , I change the payload structure according the main report. Here the updated and working payload:
{
"updateDetails": [
{
"datasourceName": "<dataSourceName>",
"connectionDetails": {
"server": "pbiazure://api.powerbi.com/;",
"database": "sobe_wowvirtualserver-<datasetId>"
}
}
]
}
Then I can successfully export the report using REST API.
--------------------------------------------------------------------------------------------------------
As far as I know , paginated report have no feature to rebind with semantic model. Its possible to update data source
Hi @Mestu_Paul ,
Thanks for reaching out to Microsoft fabric Community Forum.
1. To update the data source of a paginated report using a new semantic model via the Power BI REST API,
2.Ensure the workspaceId and datasetId are correct in the API payload, and verify that the dataset schema is compatible with the report.
3.If issues persist, check for caching or schema mismatches. If the update is not reflected, try refreshing the dataset or manually reconfiguring the data source in the Power BI service.
If you encounter any issues, please share a screenshot of the error for better understanding.
Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.
@v-aatheeque thanks for your response.
I tried in different way and successfully updated report data source. But arise another problem after change the datasource as another semantic model, I can't export the report.
Api response error:
exporting a paginated report requires permissions in both report and dataset workspaces
I ensured the the report and dataset belong in same workspace and I could not find any solution to export this report.
Hi @Mestu_Paul ,
To export a paginated report in Power BI, you need the following permissions:
If this post helps then please consider Accept it as the solution to help the other members find it more quickly.
if still you have problems on it please feel free to let us know !
I've all permissions and the export functionality is working for power bi report even working for paginated report which are publish from power bi report builder.
But when I change the datasource as another semantic model, then the error occur. I ensure the all report and dataset in same workspace
Hi @Mestu_Paul ,
Thank you for reaching out regarding the export issue you're experiencing with your paginated report after changing the data source to a new semantic model.
Here are some steps you can take to troubleshoot the issue:
If you still encounter any issues, please share a screenshot of the error for better understanding.
If this post helps then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Mestu_Paul
we haven't heard back from you regarding our last response and wanted to check if your issue has been resolved.
If our response addressed your query, please mark it as Accept Answer and click Yes if you found it helpful.
Should you have any further questions, feel free to reach out.
Thank you for being a part of the Microsoft Fabric Community Forum!
Hi @v-aatheeque ,
First of all I am sorry that I could not response you.
I got the solution here I am going to describe about that.
There was a issue for payload structure. Actually I tried in this way
{
"updateDetails": [
{
"datasourceName": "<dataSourceName>",
"connectionDetails": {
"server": "Data Source=powerbi://api.powerbi.com/v1.0/myorg/<workspaceName>",
"database": "<datasetName>"
}
}
]
}
And report can pull data from specific dataset/semantic model. But arise problem while trying to export, it was showed me error :
exporting a paginated report requires permissions in both report and dataset workspaces
Then I compare with a main report's datasource by REST API where I connect a semantic model by power bi report builder which was able to export report. And I could identify the issue , I change the payload structure according the main report. Here the updated and working payload:
{
"updateDetails": [
{
"datasourceName": "<dataSourceName>",
"connectionDetails": {
"server": "pbiazure://api.powerbi.com/;",
"database": "sobe_wowvirtualserver-<datasetId>"
}
}
]
}
Then I can successfully export the report using REST API.
--------------------------------------------------------------------------------------------------------
As far as I know , paginated report have no feature to rebind with semantic model. Its possible to update data source
Hi @Mestu_Paul ,
Glad that your query got resolved and If our response addressed by the community member for your query,If this post helps then please consider Accept it as the solution to help the other members find it more quickly.
Thank you for being a part of the Microsoft Fabric Community Forum!
User | Count |
---|---|
64 | |
59 | |
47 | |
33 | |
32 |
User | Count |
---|---|
84 | |
75 | |
56 | |
50 | |
44 |