<?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: Create a Report using JSON, CSV or Excel File with Power Bi Rest API in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Create-a-Report-using-JSON-CSV-or-Excel-File-with-Power-Bi-Rest/m-p/2993010#M40504</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/403972"&gt;@v-jianboli-msft&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for responding, I tried your solution but now I get the following error:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
    "error": {
        "code": "InvalidRequest",
        "message": "Invalid dataflow structure. Exception details: &amp;lt;pi&amp;gt;Cannot populate JSON array onto type 'Microsoft.Cdsa.ObjectModel.Model'. Path '', line 1, position 1.&amp;lt;/pi&amp;gt;"
    }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's a glimpse of my data:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;[{"vin":"1VWAH7A38CC981838","make":"GMC","model":"Yukon XL 2500","year":2008},
{"vin":"WAUAF78E28A028588","make":"Pontiac","model":"Bonneville","year":1997},
{"vin":"WA1WYAFE9AD228868","make":"Hummer","model":"H3","year":2008},
{"vin":"WA1CFAFP1EA504218","make":"Oldsmobile","model":"Aurora","year":2003},
{"vin":"WAUFFAFL1CN972498","make":"Nissan","model":"Murano","year":2005}]&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 29 Dec 2022 09:12:31 GMT</pubDate>
    <dc:creator>keshavram-kudwa</dc:creator>
    <dc:date>2022-12-29T09:12:31Z</dc:date>
    <item>
      <title>Create a Report using JSON, CSV or Excel File with Power Bi Rest API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Create-a-Report-using-JSON-CSV-or-Excel-File-with-Power-Bi-Rest/m-p/2992106#M40490</link>
      <description>&lt;P&gt;I can have my data in three different file formats i.e. JSON, CSV or Excel. I want to create a report using Power Bi Rest API. I tried to use the&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/rest/api/power-bi/imports/post-import" target="_blank" rel="noopener"&gt;https://learn.microsoft.com/en-us/rest/api/power-bi/imports/post-import&lt;/A&gt;&amp;nbsp;API but I'm getting the following errors:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
    "error": {
        "code": "RequestedFileIsEncryptedOrCorrupted",
        "pbi.error": {
            "code": "RequestedFileIsEncryptedOrCorrupted",
            "parameters": {},
            "details": [],
            "exceptionCulprit": 1
        }
    }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I have used OAuth Authentication here. What is the proper way to create a report with raw data using Power Bi Rest API? If there is one, is there a step-by-step guide anywhere.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Dec 2022 17:41:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Create-a-Report-using-JSON-CSV-or-Excel-File-with-Power-Bi-Rest/m-p/2992106#M40490</guid>
      <dc:creator>keshavram-kudwa</dc:creator>
      <dc:date>2022-12-28T17:41:27Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Report using JSON, CSV or Excel File with Power Bi Rest API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Create-a-Report-using-JSON-CSV-or-Excel-File-with-Power-Bi-Rest/m-p/2992509#M40492</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/490768"&gt;@keshavram-kudwa&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT&gt;This API is used to create new content in My Workspace.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Please check the limitations of this API:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Dataflows with service principal aren't supported.&lt;/LI&gt;
&lt;LI&gt;Importing a Power BI .pbix file from OneDrive isn't supported.&lt;/LI&gt;
&lt;LI&gt;&lt;FONT&gt;Importing a file that has a&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;protected&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;sensitivity label isn't supported for service principals.&lt;/FONT&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;FONT&gt;Moreover&amp;nbsp;&lt;/FONT&gt;&lt;SPAN&gt;you need to ensure that the&amp;nbsp;datasetDisplayName property/argument ends with .json/.csv/.xlsx&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Jianbo Li&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2022 02:28:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Create-a-Report-using-JSON-CSV-or-Excel-File-with-Power-Bi-Rest/m-p/2992509#M40492</guid>
      <dc:creator>v-jianboli-msft</dc:creator>
      <dc:date>2022-12-29T02:28:42Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Report using JSON, CSV or Excel File with Power Bi Rest API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Create-a-Report-using-JSON-CSV-or-Excel-File-with-Power-Bi-Rest/m-p/2993010#M40504</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/403972"&gt;@v-jianboli-msft&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for responding, I tried your solution but now I get the following error:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
    "error": {
        "code": "InvalidRequest",
        "message": "Invalid dataflow structure. Exception details: &amp;lt;pi&amp;gt;Cannot populate JSON array onto type 'Microsoft.Cdsa.ObjectModel.Model'. Path '', line 1, position 1.&amp;lt;/pi&amp;gt;"
    }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's a glimpse of my data:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;[{"vin":"1VWAH7A38CC981838","make":"GMC","model":"Yukon XL 2500","year":2008},
{"vin":"WAUAF78E28A028588","make":"Pontiac","model":"Bonneville","year":1997},
{"vin":"WA1WYAFE9AD228868","make":"Hummer","model":"H3","year":2008},
{"vin":"WA1CFAFP1EA504218","make":"Oldsmobile","model":"Aurora","year":2003},
{"vin":"WAUFFAFL1CN972498","make":"Nissan","model":"Murano","year":2005}]&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 29 Dec 2022 09:12:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Create-a-Report-using-JSON-CSV-or-Excel-File-with-Power-Bi-Rest/m-p/2993010#M40504</guid>
      <dc:creator>keshavram-kudwa</dc:creator>
      <dc:date>2022-12-29T09:12:31Z</dc:date>
    </item>
  </channel>
</rss>

