<?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: Upload xlsx file with API in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/upload-xlsx-file-with-api/m-p/123268#M46970</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/172707"&gt;@Pavel_Soucek&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;The Excel files are binary formats. I think when you are using decodeBase64() on the file content, you might corrupting the file accidently. I think Power Automate already returns the binary data in a format suitable for sending in the body of an HTTP request.&lt;BR /&gt;Could you try replace your code with following?&lt;/P&gt;&lt;P&gt;@body('Get_file_Content')&lt;/P&gt;&lt;P&gt;Also, documentation of the endpoint you're using suggest to not encode anything, so let's try above approach.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="szymon_dybczak_0-1751281292241.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/17851iF4F6FA1EE2CFD29D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="szymon_dybczak_0-1751281292241.png" alt="szymon_dybczak_0-1751281292241.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 30 Jun 2025 11:02:12 GMT</pubDate>
    <dc:creator>szymon_dybczak</dc:creator>
    <dc:date>2025-06-30T11:02:12Z</dc:date>
    <item>
      <title>Upload xlsx file with API</title>
      <link>https://community.databricks.com/t5/data-engineering/upload-xlsx-file-with-api/m-p/123216#M46955</link>
      <description>&lt;P&gt;Hello, I would like to upload xlsx files from SharePoint to Databricks (AWS).&lt;BR /&gt;I have files in my Sharepoint folder, try to use power automation (like if new file is created upload file to Databricks) and custom connector (where I defined API&amp;nbsp;&lt;SPAN&gt;/api/2.0/fs/files{file_path}). I am able to to upload file, but I have an issue with (maybe) file codeing and I on Databricks a I can not open/read the file. Have i different content.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My steps in power automate:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1.Get File Content&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2. Compose (decodeBase64(outputs('Get_file_Content')?[body]['$content'])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3. Upload file to Databricks (API) -&amp;nbsp;Content-Type:&amp;nbsp;application/octet-stream, Body: (outputs(Compose)&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;both files (on SharePoint and on Databricks, when I open them in Notepad looks similar, but not not exactly same).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is anyone successful with similar task?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Pavel&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 29 Jun 2025 19:25:15 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/upload-xlsx-file-with-api/m-p/123216#M46955</guid>
      <dc:creator>Pavel_Soucek</dc:creator>
      <dc:date>2025-06-29T19:25:15Z</dc:date>
    </item>
    <item>
      <title>Re: Upload xlsx file with API</title>
      <link>https://community.databricks.com/t5/data-engineering/upload-xlsx-file-with-api/m-p/123268#M46970</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/172707"&gt;@Pavel_Soucek&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;The Excel files are binary formats. I think when you are using decodeBase64() on the file content, you might corrupting the file accidently. I think Power Automate already returns the binary data in a format suitable for sending in the body of an HTTP request.&lt;BR /&gt;Could you try replace your code with following?&lt;/P&gt;&lt;P&gt;@body('Get_file_Content')&lt;/P&gt;&lt;P&gt;Also, documentation of the endpoint you're using suggest to not encode anything, so let's try above approach.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="szymon_dybczak_0-1751281292241.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/17851iF4F6FA1EE2CFD29D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="szymon_dybczak_0-1751281292241.png" alt="szymon_dybczak_0-1751281292241.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jun 2025 11:02:12 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/upload-xlsx-file-with-api/m-p/123268#M46970</guid>
      <dc:creator>szymon_dybczak</dc:creator>
      <dc:date>2025-06-30T11:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: Upload xlsx file with API</title>
      <link>https://community.databricks.com/t5/data-engineering/upload-xlsx-file-with-api/m-p/123355#M46991</link>
      <description>&lt;P&gt;I have tried it with tis error message:&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Flow save failed with code 'OpenApiOperationParameterValidationFailed' and message 'Input parameter 'body' validation failed in workflow operation 'UploadFile': The parameter with value '"@body('Get_file_content')"' in path 'body' with type/format 'String/binary' is not convertible to type/format 'Object'.'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;Maybe i need to somehow define something in the connector, but I don't know what.&lt;BR /&gt;&lt;BR /&gt;p.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jun 2025 19:58:13 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/upload-xlsx-file-with-api/m-p/123355#M46991</guid>
      <dc:creator>Pavel_Soucek</dc:creator>
      <dc:date>2025-06-30T19:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: Upload xlsx file with API</title>
      <link>https://community.databricks.com/t5/data-engineering/upload-xlsx-file-with-api/m-p/123426#M47007</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/172707"&gt;@Pavel_Soucek&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;It was long time ago since I worked with Power Automate, but I think you can edit connector. You can try to change schema to binary or byte&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jul 2025 12:07:06 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/upload-xlsx-file-with-api/m-p/123426#M47007</guid>
      <dc:creator>szymon_dybczak</dc:creator>
      <dc:date>2025-07-01T12:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: Upload xlsx file with API</title>
      <link>https://community.databricks.com/t5/data-engineering/upload-xlsx-file-with-api/m-p/123794#M47069</link>
      <description>&lt;P&gt;I can define header and body for "PUT". I add to header "content-type". Bud I am not sure how to define "body".&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jul 2025 21:18:58 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/upload-xlsx-file-with-api/m-p/123794#M47069</guid>
      <dc:creator>Pavel_Soucek</dc:creator>
      <dc:date>2025-07-02T21:18:58Z</dc:date>
    </item>
  </channel>
</rss>

