<?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 Importing an Excel file using the Import API returns a 400 Bad Request error in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Importing-an-Excel-file-using-the-Import-API-returns-a-400-Bad/m-p/125266#M4333</link>
    <description>&lt;P&gt;Has anyone sucessfully uploaded a&amp;nbsp;local Excel file using the Create Import API Operations? If so, could you share your method?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are referencing&amp;nbsp;&lt;A href="https://msdn.microsoft.com/en-us/library/mt243840.aspx" target="_blank"&gt;https://msdn.microsoft.com/en-us/library/mt243840.aspx&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When we try to use the Create Import API operation to import a local Excel file we are receiving a 400 Bad Request response with an empty message.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have succesfully used Dataset, Table and Row operations in the PowerBi API so the authorization is set up correctly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We can import the Excel file manually (through the PowerBI web site) so we know that it is valid.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the request we are sending to &lt;SPAN class="s1"&gt;&lt;A href="https://api.powerbi.com" target="_blank"&gt;https://api.powerbi.com&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;POST /v1.0/myorg/imports HTTP/1.1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Authorization: Bearer &lt;FONT face="arial,helvetica,sans-serif"&gt;&amp;lt;auth-token removed&amp;gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;datasetDisplayName: TEST_EXCEL_DATASET&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;nameConflict: Overwrite&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;User-Agent: Jakarta Commons-HttpClient/3.0.1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Host: api.powerbi.com&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Content-Length: 32173&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Content-Type: multipart/form-data; boundary=l0mHm36RY5odjNybx3vEqjiq1oJqBsA7v4bbB0n&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;--l0mHm36RY5odjNybx3vEqjiq1oJqBsA7v4bbB0n&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Content-Disposition: form-data; name="TEST_DATASET"; filename="PROPERTIES_RESOURCES_TABLE.xlsx"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet; charset=ISO-8859-1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Content-Transfer-Encoding: binary&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;PK&amp;#3;&amp;#4;&amp;#20;&amp;#8;&amp;#8;&amp;#8;�uGJ&amp;#17;docProps/core.xml��MK�0&amp;#16;���&amp;#21;!�v�vq��]DY&amp;#16;&amp;#20;&amp;#23;�(�B:���$��ߛ�&amp;#21;ţ����&amp;#15;ä���H�ѺA��� �&amp;#4;����&amp;gt;4���n�(*����ڠ�&amp;#3;:&amp;#18;Z�U���&amp;#20;N�(�KB�B��&amp;gt;��&amp;#3;��+�&amp;#16;2��@��-�&amp;#28;&amp;#14;��,:z�&amp;#21;����&amp;#21;�Ҽ�q&amp;#22;�&amp;#2;pD��;H�&amp;#20;�Y�V�?&amp;#11;s��{7,�4Mɔ�\�(��ۛ�y�xP�s%��&amp;#17;!��^&amp;#8;��cK���&amp;#31;&amp;#6;+��&amp;lt;�W͖�&amp;#25;K�1�b�nX^�VE�~.�W��&amp;lt;���&amp;#23;�,=����&amp;#1;]��&amp;#18;~~]&amp;#29;}&amp;#2;PK&amp;#7;&amp;#8;�&amp;#22;�&amp;#5;&amp;#1;�&amp;#1;PK&amp;#3;&amp;#4;&amp;#20;&amp;#8;&amp;#8;&amp;#8;�uGJ&amp;#11;_rels/.rels���N�0&amp;#12;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;...&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;�T��n���_��PK&amp;#7;&amp;#8;�[h&amp;#30;�&amp;#1;�&amp;#2;PK&amp;#1;&amp;#2;&amp;#20;&amp;#20;&amp;#8;&amp;#8;&amp;#8;�uGJ�&amp;#22;�&amp;#5;&amp;#1;�&amp;#1;&amp;#17;docProps/core.xmlPK&amp;#1;&amp;#2;&amp;#20;&amp;#20;&amp;#8;&amp;#8;&amp;#8;�uGJW(^#�F&amp;#2;&amp;#11;D&amp;#1;_rels/.relsPK&amp;#1;&amp;#2;&amp;#20;&amp;#20;&amp;#8;&amp;#8;&amp;#8;�uGJ�p��=&amp;#1;�&amp;#4;&amp;#19;`&amp;#2;[Content_Types].xmlPK&amp;#1;&amp;#2;&amp;#20;&amp;#20;&amp;#8;&amp;#8;&amp;#8;�uGJ�|wؑ�&amp;#16;�&amp;#3;docProps/app.xmlPK&amp;#1;&amp;#2;&amp;#20;&amp;#20;&amp;#8;&amp;#8;&amp;#8;�uGJp��&amp;amp;x�&amp;#20;�&amp;#4;xl/sharedStrings.xmlPK&amp;#1;&amp;#2;&amp;#20;&amp;#20;&amp;#8;&amp;#8;&amp;#8;�uGJ�2�+}&amp;#1;E&amp;#3;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;g&amp;#5;xl/styles.xmlPK&amp;#1;&amp;#2;&amp;#20;&amp;#20;&amp;#8;&amp;#8;&amp;#8;�uGJ3�u���&amp;#1;&amp;#15;&amp;#31;&amp;#7;xl/workbook.xmlPK&amp;#1;&amp;#2;&amp;#20;&amp;#20;&amp;#8;&amp;#8;&amp;#8;�uGJ�i+���&amp;#2;&amp;#26;I&amp;#8;xl/_rels/workbook.xml.relsPK&amp;#1;&amp;#2;&amp;#20;&amp;#20;&amp;#8;&amp;#8;&amp;#8;�uGJ$v��;ncO&amp;#4;&amp;#24;m xl/worksheets/sheet1.xmlPK&amp;#1;&amp;#2;&amp;#20;&amp;#20;&amp;#8;&amp;#8;&amp;#8;�uGJ�[h&amp;#30;�&amp;#1;�&amp;#2;&amp;#24;�wxl/worksheets/sheet2.xmlPK&amp;#5;&amp;#6;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;�&amp;#2;�y&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;--l0mHm36RY5odjNybx3vEqjiq1oJqBsA7v4bbB0n--&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and the response we are getting back:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;HTTP/1.1 400 Bad Request&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Content-Length: 14&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Content-Type: application/json; charset=utf-8&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Server: Microsoft-HTTPAPI/2.0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Strict-Transport-Security: max-age=31536000; includeSubDomains&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;X-Frame-Options: deny&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;X-Content-Type-Options: nosniff&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;RequestId: 331a2751-61a3-4190-8ac3-f18752bbb5b6&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Date: Wed, 08 Feb 2017 05:57:05 GMT&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;{"Message":""}&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only related posts in the forum are for a period of time when the API was unavailable &amp;nbsp;- which is not the case now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions on how to proceed would be helpful.&lt;/P&gt;</description>
    <pubDate>Thu, 09 Feb 2017 23:50:53 GMT</pubDate>
    <dc:creator>michael_e</dc:creator>
    <dc:date>2017-02-09T23:50:53Z</dc:date>
    <item>
      <title>Importing an Excel file using the Import API returns a 400 Bad Request error</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Importing-an-Excel-file-using-the-Import-API-returns-a-400-Bad/m-p/125266#M4333</link>
      <description>&lt;P&gt;Has anyone sucessfully uploaded a&amp;nbsp;local Excel file using the Create Import API Operations? If so, could you share your method?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are referencing&amp;nbsp;&lt;A href="https://msdn.microsoft.com/en-us/library/mt243840.aspx" target="_blank"&gt;https://msdn.microsoft.com/en-us/library/mt243840.aspx&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When we try to use the Create Import API operation to import a local Excel file we are receiving a 400 Bad Request response with an empty message.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have succesfully used Dataset, Table and Row operations in the PowerBi API so the authorization is set up correctly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We can import the Excel file manually (through the PowerBI web site) so we know that it is valid.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the request we are sending to &lt;SPAN class="s1"&gt;&lt;A href="https://api.powerbi.com" target="_blank"&gt;https://api.powerbi.com&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;POST /v1.0/myorg/imports HTTP/1.1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Authorization: Bearer &lt;FONT face="arial,helvetica,sans-serif"&gt;&amp;lt;auth-token removed&amp;gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;datasetDisplayName: TEST_EXCEL_DATASET&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;nameConflict: Overwrite&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;User-Agent: Jakarta Commons-HttpClient/3.0.1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Host: api.powerbi.com&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Content-Length: 32173&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Content-Type: multipart/form-data; boundary=l0mHm36RY5odjNybx3vEqjiq1oJqBsA7v4bbB0n&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;--l0mHm36RY5odjNybx3vEqjiq1oJqBsA7v4bbB0n&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Content-Disposition: form-data; name="TEST_DATASET"; filename="PROPERTIES_RESOURCES_TABLE.xlsx"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet; charset=ISO-8859-1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Content-Transfer-Encoding: binary&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;PK&amp;#3;&amp;#4;&amp;#20;&amp;#8;&amp;#8;&amp;#8;�uGJ&amp;#17;docProps/core.xml��MK�0&amp;#16;���&amp;#21;!�v�vq��]DY&amp;#16;&amp;#20;&amp;#23;�(�B:���$��ߛ�&amp;#21;ţ����&amp;#15;ä���H�ѺA��� �&amp;#4;����&amp;gt;4���n�(*����ڠ�&amp;#3;:&amp;#18;Z�U���&amp;#20;N�(�KB�B��&amp;gt;��&amp;#3;��+�&amp;#16;2��@��-�&amp;#28;&amp;#14;��,:z�&amp;#21;����&amp;#21;�Ҽ�q&amp;#22;�&amp;#2;pD��;H�&amp;#20;�Y�V�?&amp;#11;s��{7,�4Mɔ�\�(��ۛ�y�xP�s%��&amp;#17;!��^&amp;#8;��cK���&amp;#31;&amp;#6;+��&amp;lt;�W͖�&amp;#25;K�1�b�nX^�VE�~.�W��&amp;lt;���&amp;#23;�,=����&amp;#1;]��&amp;#18;~~]&amp;#29;}&amp;#2;PK&amp;#7;&amp;#8;�&amp;#22;�&amp;#5;&amp;#1;�&amp;#1;PK&amp;#3;&amp;#4;&amp;#20;&amp;#8;&amp;#8;&amp;#8;�uGJ&amp;#11;_rels/.rels���N�0&amp;#12;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;...&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;�T��n���_��PK&amp;#7;&amp;#8;�[h&amp;#30;�&amp;#1;�&amp;#2;PK&amp;#1;&amp;#2;&amp;#20;&amp;#20;&amp;#8;&amp;#8;&amp;#8;�uGJ�&amp;#22;�&amp;#5;&amp;#1;�&amp;#1;&amp;#17;docProps/core.xmlPK&amp;#1;&amp;#2;&amp;#20;&amp;#20;&amp;#8;&amp;#8;&amp;#8;�uGJW(^#�F&amp;#2;&amp;#11;D&amp;#1;_rels/.relsPK&amp;#1;&amp;#2;&amp;#20;&amp;#20;&amp;#8;&amp;#8;&amp;#8;�uGJ�p��=&amp;#1;�&amp;#4;&amp;#19;`&amp;#2;[Content_Types].xmlPK&amp;#1;&amp;#2;&amp;#20;&amp;#20;&amp;#8;&amp;#8;&amp;#8;�uGJ�|wؑ�&amp;#16;�&amp;#3;docProps/app.xmlPK&amp;#1;&amp;#2;&amp;#20;&amp;#20;&amp;#8;&amp;#8;&amp;#8;�uGJp��&amp;amp;x�&amp;#20;�&amp;#4;xl/sharedStrings.xmlPK&amp;#1;&amp;#2;&amp;#20;&amp;#20;&amp;#8;&amp;#8;&amp;#8;�uGJ�2�+}&amp;#1;E&amp;#3;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;g&amp;#5;xl/styles.xmlPK&amp;#1;&amp;#2;&amp;#20;&amp;#20;&amp;#8;&amp;#8;&amp;#8;�uGJ3�u���&amp;#1;&amp;#15;&amp;#31;&amp;#7;xl/workbook.xmlPK&amp;#1;&amp;#2;&amp;#20;&amp;#20;&amp;#8;&amp;#8;&amp;#8;�uGJ�i+���&amp;#2;&amp;#26;I&amp;#8;xl/_rels/workbook.xml.relsPK&amp;#1;&amp;#2;&amp;#20;&amp;#20;&amp;#8;&amp;#8;&amp;#8;�uGJ$v��;ncO&amp;#4;&amp;#24;m xl/worksheets/sheet1.xmlPK&amp;#1;&amp;#2;&amp;#20;&amp;#20;&amp;#8;&amp;#8;&amp;#8;�uGJ�[h&amp;#30;�&amp;#1;�&amp;#2;&amp;#24;�wxl/worksheets/sheet2.xmlPK&amp;#5;&amp;#6;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;�&amp;#2;�y&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;--l0mHm36RY5odjNybx3vEqjiq1oJqBsA7v4bbB0n--&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and the response we are getting back:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;HTTP/1.1 400 Bad Request&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Content-Length: 14&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Content-Type: application/json; charset=utf-8&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Server: Microsoft-HTTPAPI/2.0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Strict-Transport-Security: max-age=31536000; includeSubDomains&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;X-Frame-Options: deny&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;X-Content-Type-Options: nosniff&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;RequestId: 331a2751-61a3-4190-8ac3-f18752bbb5b6&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Date: Wed, 08 Feb 2017 05:57:05 GMT&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;{"Message":""}&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only related posts in the forum are for a period of time when the API was unavailable &amp;nbsp;- which is not the case now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions on how to proceed would be helpful.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2017 23:50:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Importing-an-Excel-file-using-the-Import-API-returns-a-400-Bad/m-p/125266#M4333</guid>
      <dc:creator>michael_e</dc:creator>
      <dc:date>2017-02-09T23:50:53Z</dc:date>
    </item>
    <item>
      <title>Re: Importing an Excel file using the Import API returns a 400 Bad Request error</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Importing-an-Excel-file-using-the-Import-API-returns-a-400-Bad/m-p/125274#M4642</link>
      <description>&lt;P&gt;Has anyone sucessfully uploaded a&amp;nbsp;local Excel file using the Create Import API Operation? If so, could you share your method?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are referencing&amp;nbsp;&lt;A href="https://msdn.microsoft.com/en-us/library/mt243840.aspx" target="_blank"&gt;https://msdn.microsoft.com/en-us/library/mt243840.aspx&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When we try to use the Create Import API operation to import a local Excel file we are receiving a 400 Bad Request response with an empty message.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have succesfully used Dataset, Table and Row operations in the PowerBi API so the authorization is set up correctly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We can import the Excel file manually (through the PowerBI web site) so we know that it is valid.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the request we are sending to &lt;SPAN class="s1"&gt;&lt;A href="https://api.powerbi.com" target="_blank"&gt;https://api.powerbi.com&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;POST /v1.0/myorg/imports HTTP/1.1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Authorization: Bearer &lt;FONT face="arial,helvetica,sans-serif"&gt;&amp;lt;auth-token removed&amp;gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;datasetDisplayName: TEST_EXCEL_DATASET&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;nameConflict: Overwrite&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;User-Agent: Jakarta Commons-HttpClient/3.0.1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Host: api.powerbi.com&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Content-Length: 32173&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Content-Type: multipart/form-data; boundary=l0mHm36RY5odjNybx3vEqjiq1oJqBsA7v4bbB0n&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;--l0mHm36RY5odjNybx3vEqjiq1oJqBsA7v4bbB0n&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Content-Disposition: form-data; name="TEST_DATASET"; filename="PROPERTIES_RESOURCES_TABLE.xlsx"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet; charset=ISO-8859-1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Content-Transfer-Encoding: binary&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;PK&amp;#3;&amp;#4;&amp;#20;&amp;#8;&amp;#8;&amp;#8;�uGJ&amp;#17;docProps/core.xml��MK�0&amp;#16;���&amp;#21;!�v�vq��]DY&amp;#16;&amp;#20;&amp;#23;�(�B:���$��ߛ�&amp;#21;ţ����&amp;#15;ä���H�ѺA��� �&amp;#4;����&amp;gt;4���n�(*����ڠ�&amp;#3;:&amp;#18;Z�U���&amp;#20;N�(�KB�B��&amp;gt;��&amp;#3;��+�&amp;#16;2��@��-�&amp;#28;&amp;#14;��,:z�&amp;#21;����&amp;#21;�Ҽ�q&amp;#22;�&amp;#2;pD��;H�&amp;#20;�Y�V�?&amp;#11;s��{7,�4Mɔ�\�(��ۛ�y�xP�s%��&amp;#17;!��^&amp;#8;��cK���&amp;#31;&amp;#6;+��&amp;lt;�W͖�&amp;#25;K�1�b�nX^�VE�~.�W��&amp;lt;���&amp;#23;�,=����&amp;#1;]��&amp;#18;~~]&amp;#29;}&amp;#2;PK&amp;#7;&amp;#8;�&amp;#22;�&amp;#5;&amp;#1;�&amp;#1;PK&amp;#3;&amp;#4;&amp;#20;&amp;#8;&amp;#8;&amp;#8;�uGJ&amp;#11;_rels/.rels���N�0&amp;#12;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;...&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;�T��n���_��PK&amp;#7;&amp;#8;�[h&amp;#30;�&amp;#1;�&amp;#2;PK&amp;#1;&amp;#2;&amp;#20;&amp;#20;&amp;#8;&amp;#8;&amp;#8;�uGJ�&amp;#22;�&amp;#5;&amp;#1;�&amp;#1;&amp;#17;docProps/core.xmlPK&amp;#1;&amp;#2;&amp;#20;&amp;#20;&amp;#8;&amp;#8;&amp;#8;�uGJW(^#�F&amp;#2;&amp;#11;D&amp;#1;_rels/.relsPK&amp;#1;&amp;#2;&amp;#20;&amp;#20;&amp;#8;&amp;#8;&amp;#8;�uGJ�p��=&amp;#1;�&amp;#4;&amp;#19;`&amp;#2;[Content_Types].xmlPK&amp;#1;&amp;#2;&amp;#20;&amp;#20;&amp;#8;&amp;#8;&amp;#8;�uGJ�|wؑ�&amp;#16;�&amp;#3;docProps/app.xmlPK&amp;#1;&amp;#2;&amp;#20;&amp;#20;&amp;#8;&amp;#8;&amp;#8;�uGJp��&amp;amp;x�&amp;#20;�&amp;#4;xl/sharedStrings.xmlPK&amp;#1;&amp;#2;&amp;#20;&amp;#20;&amp;#8;&amp;#8;&amp;#8;�uGJ�2�+}&amp;#1;E&amp;#3;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;g&amp;#5;xl/styles.xmlPK&amp;#1;&amp;#2;&amp;#20;&amp;#20;&amp;#8;&amp;#8;&amp;#8;�uGJ3�u���&amp;#1;&amp;#15;&amp;#31;&amp;#7;xl/workbook.xmlPK&amp;#1;&amp;#2;&amp;#20;&amp;#20;&amp;#8;&amp;#8;&amp;#8;�uGJ�i+���&amp;#2;&amp;#26;I&amp;#8;xl/_rels/workbook.xml.relsPK&amp;#1;&amp;#2;&amp;#20;&amp;#20;&amp;#8;&amp;#8;&amp;#8;�uGJ$v��;ncO&amp;#4;&amp;#24;m xl/worksheets/sheet1.xmlPK&amp;#1;&amp;#2;&amp;#20;&amp;#20;&amp;#8;&amp;#8;&amp;#8;�uGJ�[h&amp;#30;�&amp;#1;�&amp;#2;&amp;#24;�wxl/worksheets/sheet2.xmlPK&amp;#5;&amp;#6;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;�&amp;#2;�y&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;--l0mHm36RY5odjNybx3vEqjiq1oJqBsA7v4bbB0n--&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and the response we are getting back:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;HTTP/1.1 400 Bad Request&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Content-Length: 14&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Content-Type: application/json; charset=utf-8&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Server: Microsoft-HTTPAPI/2.0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Strict-Transport-Security: max-age=31536000; includeSubDomains&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;X-Frame-Options: deny&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;X-Content-Type-Options: nosniff&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;RequestId: 331a2751-61a3-4190-8ac3-f18752bbb5b6&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Date: Wed, 08 Feb 2017 05:57:05 GMT&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;{"Message":""}&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only related posts in the forum are for a period of time when the API was unavailable &amp;nbsp;- which is not the case now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions on how to proceed would be helpful.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2017 00:16:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Importing-an-Excel-file-using-the-Import-API-returns-a-400-Bad/m-p/125274#M4642</guid>
      <dc:creator>michael_e</dc:creator>
      <dc:date>2017-02-10T00:16:07Z</dc:date>
    </item>
    <item>
      <title>Re: Importing an Excel file using the Import API returns a 400 Bad Request error</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Importing-an-Excel-file-using-the-Import-API-returns-a-400-Bad/m-p/125493#M4346</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="21366" data-lia-user-login="michael_e" class="lia-mention lia-mention-user"&gt;michael_e&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;Could you please post some&amp;nbsp;snippets&amp;nbsp;of you code?&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2017 10:54:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Importing-an-Excel-file-using-the-Import-API-returns-a-400-Bad/m-p/125493#M4346</guid>
      <dc:creator>Eric_Zhang</dc:creator>
      <dc:date>2017-02-10T10:54:43Z</dc:date>
    </item>
    <item>
      <title>Re: Importing an Excel file using the Import API returns a 400 Bad Request error</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Importing-an-Excel-file-using-the-Import-API-returns-a-400-Bad/m-p/126029#M4361</link>
      <description>&lt;P&gt;simplest case is using curl&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;curl -v --header "Authorization: Bearer &amp;lt;auth-token removed&amp;gt;" -F "upload=@/Users/me/Documents/workspace/test_excel2.xlsx" &lt;A href="https://api.powerbi.com/v1.0/myorg/imports" target="_blank"&gt;https://api.powerbi.com/v1.0/myorg/imports&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;More complicated java snippet&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;org.apache.commons.httpclient.methods.PostMethod method_FileSend_1 = new org.apache.commons.httpclient.methods.PostMethod(&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"&lt;A href="https://api.powerbi.com/v1.0/myorg/imports" target="_blank"&gt;https://api.powerbi.com/v1.0/myorg/imports&lt;/A&gt;");&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;org.apache.commons.httpclient.methods.multipart.FilePart file_1_FileSend_1 = new org.apache.commons.httpclient.methods.multipart.FilePart(&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"TEST_DATASET",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;new java.io.File(&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"/Users/me/Documents/devl/workspace/test_excel2.xlsx"),&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"ISO-8859-1");&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;org.apache.commons.httpclient.methods.multipart.Part[] parts_FileSend_1 = new org.apache.commons.httpclient.methods.multipart.Part[] { file_1_FileSend_1, };&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;method_FileSend_1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;.setRequestEntity(new org.apache.commons.httpclient.methods.multipart.MultipartRequestEntity(&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;parts_FileSend_1, method_FileSend_1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;.getParams()));&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;method_FileSend_1.addRequestHeader("Authorization", "Bearer "&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;+ context.access_token);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;method_FileSend_1.addRequestHeader("datasetDisplayName",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"TEST_EXCEL_DATASET");&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;method_FileSend_1.addRequestHeader("nameConflict",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"Overwrite");&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;boolean isContinue_FileSend_1 = true;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;int status_FileSend_1;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;String finalURL_FileSend_1 = "&lt;A href="https://api.powerbi.com/v1.0/myorg/imports" target="_blank"&gt;https://api.powerbi.com/v1.0/myorg/imports&lt;/A&gt;";&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;try {&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;status_FileSend_1 = client_FileSend_1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;.executeMethod(method_FileSend_1);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;if (status_FileSend_1 != org.apache.commons.httpclient.HttpStatus.SC_OK) {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;throw new java.lang.Exception("Method failed: "&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;+ method_FileSend_1.getStatusLine());&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;}&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;} catch (java.lang.Exception e) {&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;throw (e);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;}&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;if (isContinue_FileSend_1) {&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;System.out.println("Status Line: "&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;+ method_FileSend_1.getStatusLine());&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;System.out.println("*** Response Header ***");&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;org.apache.commons.httpclient.Header[] responseHeaders_FileSend_1 = method_FileSend_1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;.getResponseHeaders();&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;for (int i = 0; i &amp;lt; responseHeaders_FileSend_1.length; i++) {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;System.out.print(responseHeaders_FileSend_1[i]);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;}&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 12 Feb 2017 23:01:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Importing-an-Excel-file-using-the-Import-API-returns-a-400-Bad/m-p/126029#M4361</guid>
      <dc:creator>michael_e</dc:creator>
      <dc:date>2017-02-12T23:01:05Z</dc:date>
    </item>
  </channel>
</rss>

