Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

Reply
kevinnmo
New Member

REST API - import .rdl file fails using .NET sdk

Hi

 

I have an A4 embedded instance set up using Service Principal.

 

I can import a paginated report .rdl file in a workspace using the PowerBI web ui.

 

However if I try to import the same .rdl file using the REST API via the .NET sdk using the PostImportWithFileAsyncInGroup it fails with "BadRequest" error with response 

{"error":{"code":"RequestedFileIsEncryptedOrCorrupted","pbi.error":{"code":"RequestedFileIsEncryptedOrCorrupted","parameters":{},"details":[],"exceptionCulprit":1}}}

 

I am able to import a .pbix successfully.

 

Does anyone have any ideas what may cause this?

 

Thanks

 

 

 

2 REPLIES 2
krishna_murthy
Helper II
Helper II

hi @kevinnmo ... you  can try this for 

What we know: official support + real-world problems

  • The official Power BI REST APIs documentation says that .rdl files are supported for import (via the imports or imports/inGroup endpoint). Microsoft Learn+2Microsoft Learn+2

  • For .rdl, the docs require that the datasetDisplayName query parameter include the .rdl extension (e.g. myReport.rdl). Microsoft Learn+1

  • The docs also recommend using the official C# SDK (Microsoft.PowerBI.Api) when uploading .rdl files. Microsoft Learn+1

phoenixdatawork
Regular Visitor

Did you ever resolve this issue? I am experiencing the same and can't find any docs or posts that help.

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.