We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Solution has been found.
HI @SeSPowerBi,
Can you please share the solution that you find? I think it may should help others who faced a similar scenario.🙂
Regards,
Xiaoxin Sheng
The ExportTo documentation is for downloading the file on the server side; in the wwwroot virtual directory.
It was working on the local solution since the current directory of the app was inside the user---me drive already C:\Users\username\source\repos\app\...
Once its deployed, the server doesn't have access to the users hard drive
Since I was strictly following the documentation provided here Export Power BI embedded analytics reports API - Power BI | Microsoft Docs, I forgot to check the logic and confirm.
It was a mistake on my part, as to have access to the client-side directory and functionality, the file needs to be manipulated on the client-side not the server-side.
So I had to write code to send the export content as a Blob to then be downloaded on the client side by File-saver.
Hi @SeSPowerBi,
Thank for your sharing, they should help users with similar situations.😊
Regards,
Xiaoxin Sheng
Hi @SeSPowerBi,
>>succeeds with a valid signature in the Bearer token and the response body is null. However, once it executes the Power Bi REST API call ExportTo it has a "404", response not found.
Have you configured your application setting to allow power bi and azure requests? If not, I'd like to suggest you take a look following document about power bi URL lists:
Add Power BI URLs to your allow list
>>The response is 204, no content. So, the server is sucessfully processed the request but it is not returning any content.
AFAIK, the 'service principal' credential has been limited to used with power bi service rest API. Have you enabled it on the admin portal? In addition, please also take a look at the 'service principal' usage limitations with power bi rest API:
Regards,
Xiaoxin Sheng
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 |