Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hi,
I try use this rest api command:
https://docs.microsoft.com/en-us/rest/api/power-bi/imports/post-import-in-group
To replace the report file ( pbix ).
If I use nameConflict = "CreateOrOverwrite" api create new file with same name. If I use "Overwrite" file doesn't change, but API response "OK".
Extra info:
New file has connection to other workspace, but next step i rebind to new workspace like previous file. Maybe this is problem?
Did you solve the case?
It seems that i have similar issue. Overwrite is not replacing report.
Best,
Jacek
Does it mean that If you have Pro licence and you publish a power bi report by API, it is impossible to overwrite the file in the previous version? Does anybody know any workaround? We want to overwrite the previous file just to retain user permissions, credentials, gateway configuration etc.
Any help will be appreciated.
Hi @Anonymous ,
First, please check if you hit any of following limitations:
Do you mean the new report file also be referenced by other workspace? If yes, you can view which workspace reference it by lineage view and delete them. Then try to call the rest api again and check if the report can be updated with latest info...
Best Regards
Thank for response.
Limitations is ok.
# Do you mean the new report file also be referenced by other workspace?
Yes and application (powerbi/azure) has admin too on other workspace.
I used API command to push new file. In my target workspace created second file with same name. Old file referenced to workspace in API command, but my new file referenced to other workspace. Next I used this:
https://api.powerbi.com/v1.0/myorg/groups/{groupId}/reports/{reportId}/Rebind
to connect right workspace. After this i had two files with same name connect inside workspace.
If I deleted file in target workspace I will lose roles for file I want to overwrite. I can't get roles from base file, becouse API response I don't had access for this. Moreover I need overwrite file, becouse if I delete and create new report its couse losing statistic about report.
If i use Microsoft Power BI page and try import file (referenced to other workspace) with same name all is good. Page show question about replace, I click ok and report replaced with delete old file and statistic is ok. I expected API to do exactly same job, when i use "Overwrite".
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |