<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: REST API - import .rdl file fails using .NET sdk in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/REST-API-import-rdl-file-fails-using-NET-sdk/m-p/4881109#M63863</link>
    <description>&lt;P&gt;Did you ever resolve this issue? I am experiencing the same and can't find any docs or posts that help.&lt;/P&gt;</description>
    <pubDate>Thu, 20 Nov 2025 13:56:50 GMT</pubDate>
    <dc:creator>phoenixdatawork</dc:creator>
    <dc:date>2025-11-20T13:56:50Z</dc:date>
    <item>
      <title>REST API - import .rdl file fails using .NET sdk</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/REST-API-import-rdl-file-fails-using-NET-sdk/m-p/966211#M22634</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an A4 embedded instance set up using Service Principal.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can import a paginated report .rdl file in a workspace using the PowerBI web ui.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However if I try to import the same .rdl file using the REST API via the .NET sdk using the&amp;nbsp;PostImportWithFileAsyncInGroup it fails with "BadRequest" error with response&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;{"error":{"code":"RequestedFileIsEncryptedOrCorrupted","pbi.error":{"code":"RequestedFileIsEncryptedOrCorrupted","parameters":{},"details":[],"exceptionCulprit":1}}}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am able to import a .pbix successfully.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have any ideas what may cause this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="ics-element-donot-delete 1001_CC@"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2020 06:58:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/REST-API-import-rdl-file-fails-using-NET-sdk/m-p/966211#M22634</guid>
      <dc:creator>kevinnmo</dc:creator>
      <dc:date>2020-03-10T06:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: REST API - import .rdl file fails using .NET sdk</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/REST-API-import-rdl-file-fails-using-NET-sdk/m-p/4881109#M63863</link>
      <description>&lt;P&gt;Did you ever resolve this issue? I am experiencing the same and can't find any docs or posts that help.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Nov 2025 13:56:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/REST-API-import-rdl-file-fails-using-NET-sdk/m-p/4881109#M63863</guid>
      <dc:creator>phoenixdatawork</dc:creator>
      <dc:date>2025-11-20T13:56:50Z</dc:date>
    </item>
    <item>
      <title>Re: REST API - import .rdl file fails using .NET sdk</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/REST-API-import-rdl-file-fails-using-NET-sdk/m-p/4887560#M63944</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/214060"&gt;@kevinnmo&lt;/a&gt;&amp;nbsp;... you&amp;nbsp; can try this for&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;H2&gt;What we know: official support + real-world problems&lt;/H2&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;The official Power BI REST APIs documentation says that .rdl files &lt;EM&gt;are&lt;/EM&gt; supported for import (via the imports or imports/inGroup endpoint). &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;A href="https://learn.microsoft.com/en-us/rest/api/power-bi/imports/post-import-in-group?utm_source=chatgpt.com" target="_blank" rel="noopener"&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Microsoft Learn&lt;/SPAN&gt;&lt;SPAN class=""&gt;+2&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Microsoft Learn&lt;/SPAN&gt;&lt;SPAN class=""&gt;+2&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;For .rdl, the docs require that the datasetDisplayName query parameter include the .rdl extension (e.g. myReport.rdl). &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;A href="https://learn.microsoft.com/en-us/rest/api/power-bi/imports/post-import-in-group?utm_source=chatgpt.com" target="_blank" rel="noopener"&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Microsoft Learn&lt;/SPAN&gt;&lt;SPAN class=""&gt;+1&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;The docs also recommend using the official C# SDK (Microsoft.PowerBI.Api) when uploading .rdl files. &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;A href="https://learn.microsoft.com/en-us/rest/api/power-bi/imports/post-import-in-group?utm_source=chatgpt.com" target="_blank" rel="noopener"&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Microsoft Learn&lt;/SPAN&gt;&lt;SPAN class=""&gt;+1&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Thu, 27 Nov 2025 10:43:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/REST-API-import-rdl-file-fails-using-NET-sdk/m-p/4887560#M63944</guid>
      <dc:creator>krishna_murthy</dc:creator>
      <dc:date>2025-11-27T10:43:17Z</dc:date>
    </item>
  </channel>
</rss>

