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
I have the following settings going
- Tenant Developer Setting is enabled for Service Principal to access Admin APIs
- Service Principal is added as administrator to the workspace
- I am trying to upload a pbix to import as a report + dataset using the following
_ = await client
.Imports.PostImportWithFileAsync(
powerbiGroupId,
stream,
reportName,
ImportConflictHandlerMode.Overwrite,
skipReport: false);
- powerbiGroupId = workspace ID
- stream = stream from the file
- reportName = valid report name to be uploaded
I keep getting
System.Net.Http: The operation was canceled. System.Net.Http:
Error while copying content to a stream. System.Net.Sockets:
Unable to read data from the transport connection:
The I/O operation has been aborted because of either a thread exit or an application request..
The I/O operation has been aborted because of either a thread exit or an application request.
The file is between 1MB - 1.4 MB. How do I check what the underlying issue is. Is there a limit that I am hitting ?
Solved! Go to Solution.
Hi @akarkal ,
I check the limitation about Service principal. Service principal only support some read-only admin APIs. Post Import a pbix file to workspace needs Dataset.ReadWrite.All.
Here is the offical blog: Considerations and limitations
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @akarkal ,
I check the limitation about Service principal. Service principal only support some read-only admin APIs. Post Import a pbix file to workspace needs Dataset.ReadWrite.All.
Here is the offical blog: Considerations and limitations
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
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 |