<?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: Send .xlsx File using POST API in Digital Exchange</title>
    <link>https://community.blueprism.com/t5/Digital-Exchange/Send-xlsx-File-using-POST-API/m-p/52973#M694</link>
    <description>Hi Kirtish,&lt;BR /&gt;&lt;BR /&gt;If &lt;SPAN&gt;forcePreAuth is set to True then the Authorization Header will be set by the utility. So can you try again without passing any Header parameter.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Shashank Kumar&lt;BR /&gt;DX Integrations Partner Consultant&lt;BR /&gt;Blue Prism&lt;BR /&gt;Singapore&lt;BR /&gt;+6581326707&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Mon, 19 Jul 2021 13:42:00 GMT</pubDate>
    <dc:creator>shashank.kumar280</dc:creator>
    <dc:date>2021-07-19T13:42:00Z</dc:date>
    <item>
      <title>Send .xlsx File using POST API</title>
      <link>https://community.blueprism.com/t5/Digital-Exchange/Send-xlsx-File-using-POST-API/m-p/52970#M691</link>
      <description>I have a requirement of sending .xlsx file using POST API.&lt;BR /&gt;&lt;BR /&gt;I guess Ideal way of doing this is to use Single File option in WEB API configuration and passing Binary file from process.&lt;BR /&gt;&lt;BR /&gt;But unfortunately the WEB API definition does not support the Binary File, even when used Binary File option from POSTMAN , it throws server error.&lt;BR /&gt;&lt;BR /&gt;There are two options available it seems&lt;BR /&gt;&lt;BR /&gt;1 ) Form-data : When I use this option in POSTMAN, it works fine but not sure how to use this option in Blueprism as Blueprism supports only below option&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;none&lt;BR /&gt;Template&lt;BR /&gt;Single File&lt;BR /&gt;Multiple File&lt;BR /&gt;Custome Code&lt;BR /&gt;&lt;BR /&gt;2) Custom Code: Can someone guide how to use this option and code example of Posting xlsx file using content type &lt;SPAN&gt;multipart/form-data&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Kirtish Trivedi&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 19 Jul 2021 05:30:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Digital-Exchange/Send-xlsx-File-using-POST-API/m-p/52970#M691</guid>
      <dc:creator>kirtish.trivedi</dc:creator>
      <dc:date>2021-07-19T05:30:00Z</dc:date>
    </item>
    <item>
      <title>RE: Send .xlsx File using POST API</title>
      <link>https://community.blueprism.com/t5/Digital-Exchange/Send-xlsx-File-using-POST-API/m-p/52971#M692</link>
      <description>Hi &lt;SPAN&gt;Kirtish,&lt;BR /&gt;&lt;BR /&gt;The latest Utility - HTTP on Digital Exchange has action for Multipart request. Have you already considered that for your solutioning?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Shashank Kumar&lt;BR /&gt;DX Integrations Partner Consultant&lt;BR /&gt;Blue Prism&lt;BR /&gt;Singapore&lt;BR /&gt;+6581326707&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 19 Jul 2021 07:40:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Digital-Exchange/Send-xlsx-File-using-POST-API/m-p/52971#M692</guid>
      <dc:creator>shashank.kumar280</dc:creator>
      <dc:date>2021-07-19T07:40:00Z</dc:date>
    </item>
    <item>
      <title>RE: Send .xlsx File using POST API</title>
      <link>https://community.blueprism.com/t5/Digital-Exchange/Send-xlsx-File-using-POST-API/m-p/52972#M693</link>
      <description>Hi &lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/1537"&gt;@shashank.kumar280&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;I have tried using ​&lt;SPAN&gt;Utility - HTTP and action HTTP Request Multipart but still facing Internal server error 500&lt;BR /&gt;&lt;BR /&gt;I have passed below parameter&lt;BR /&gt;&lt;BR /&gt;Address URL : [URL]&lt;BR /&gt;UserName:[UserName]&lt;BR /&gt;Password:[Password]&lt;BR /&gt;forcePreAuth: True&lt;BR /&gt;&lt;BR /&gt;Header parameter Accepts Collection type Hence Passing below&lt;BR /&gt;&lt;BR /&gt;Autharization : [Basic XXX]&lt;BR /&gt;&lt;BR /&gt;FileData accepts collection type hence passing below&lt;BR /&gt;&lt;BR /&gt;FileName: ""&lt;BR /&gt;FieldName:""&lt;BR /&gt;ContentType:""&lt;BR /&gt;FilePath : "C:\..\abc.xlsx"&lt;BR /&gt;&lt;BR /&gt;After running I am getting 500 Internal server error&lt;BR /&gt;&lt;BR /&gt;When I checked with API team they say they are not getting file details in the request &lt;BR /&gt;&lt;BR /&gt;Also they are getting boundry as below :&lt;BR /&gt;&lt;BR /&gt;multipart/form-data; boundary=boundaryboundary&lt;BR /&gt;&lt;BR /&gt;Is there anything I am doing wrong ?&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Kirtish Trivedi&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 19 Jul 2021 13:28:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Digital-Exchange/Send-xlsx-File-using-POST-API/m-p/52972#M693</guid>
      <dc:creator>kirtish.trivedi</dc:creator>
      <dc:date>2021-07-19T13:28:00Z</dc:date>
    </item>
    <item>
      <title>RE: Send .xlsx File using POST API</title>
      <link>https://community.blueprism.com/t5/Digital-Exchange/Send-xlsx-File-using-POST-API/m-p/52973#M694</link>
      <description>Hi Kirtish,&lt;BR /&gt;&lt;BR /&gt;If &lt;SPAN&gt;forcePreAuth is set to True then the Authorization Header will be set by the utility. So can you try again without passing any Header parameter.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Shashank Kumar&lt;BR /&gt;DX Integrations Partner Consultant&lt;BR /&gt;Blue Prism&lt;BR /&gt;Singapore&lt;BR /&gt;+6581326707&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 19 Jul 2021 13:42:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Digital-Exchange/Send-xlsx-File-using-POST-API/m-p/52973#M694</guid>
      <dc:creator>shashank.kumar280</dc:creator>
      <dc:date>2021-07-19T13:42:00Z</dc:date>
    </item>
    <item>
      <title>RE: Send .xlsx File using POST API</title>
      <link>https://community.blueprism.com/t5/Digital-Exchange/Send-xlsx-File-using-POST-API/m-p/52974#M695</link>
      <description>Hi &lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/1537"&gt;@shashank.kumar280&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;I tried that, I deleted everything from HEADER Collection and made it Empty and ran . Got the same error. and Header collection remains empty after the run. Is there anything else which can be of concern ?​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Kirtish Trivedi&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 19 Jul 2021 13:56:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Digital-Exchange/Send-xlsx-File-using-POST-API/m-p/52974#M695</guid>
      <dc:creator>kirtish.trivedi</dc:creator>
      <dc:date>2021-07-19T13:56:00Z</dc:date>
    </item>
    <item>
      <title>RE: Send .xlsx File using POST API</title>
      <link>https://community.blueprism.com/t5/Digital-Exchange/Send-xlsx-File-using-POST-API/m-p/52975#M696</link>
      <description>&lt;SPAN&gt;Hi Kirtish,&lt;BR /&gt;&lt;BR /&gt;One other thing that I can think of is the FieldName. Currently you have set it to blank in HTTP utility. Did you set any value for "Key" under form-data in POSTMAN for this?&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Shashank Kumar&lt;BR /&gt;DX Integrations Partner Consultant&lt;BR /&gt;Blue Prism&lt;BR /&gt;Singapore&lt;BR /&gt;+6581326707&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 19 Jul 2021 14:19:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Digital-Exchange/Send-xlsx-File-using-POST-API/m-p/52975#M696</guid>
      <dc:creator>shashank.kumar280</dc:creator>
      <dc:date>2021-07-19T14:19:00Z</dc:date>
    </item>
    <item>
      <title>RE: Send .xlsx File using POST API</title>
      <link>https://community.blueprism.com/t5/Digital-Exchange/Send-xlsx-File-using-POST-API/m-p/52976#M697</link>
      <description>Hi &lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/1537"&gt;@shashank.kumar280&lt;/a&gt;, &lt;BR /&gt;&lt;BR /&gt;Under Form-data in Postman, I have used one Key and in value I have attached .xlsx file,&lt;BR /&gt;&lt;BR /&gt;As mentioned by you I used the same key in FieldName as well but the same error exists : 500: internal server error​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Kirtish Trivedi&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 19 Jul 2021 14:55:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Digital-Exchange/Send-xlsx-File-using-POST-API/m-p/52976#M697</guid>
      <dc:creator>kirtish.trivedi</dc:creator>
      <dc:date>2021-07-19T14:55:00Z</dc:date>
    </item>
    <item>
      <title>RE: Send .xlsx File using POST API</title>
      <link>https://community.blueprism.com/t5/Digital-Exchange/Send-xlsx-File-using-POST-API/m-p/52977#M698</link>
      <description>Hi &lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/1537"&gt;@shashank.kumar280&lt;/a&gt;.&lt;BR /&gt;&lt;BR /&gt;Issue is Resolved now. Thank you for your guidance. ​Along with the FieldName ,I added other values as well and it worked.&lt;BR /&gt;&lt;BR /&gt;When I checked "Code" in PostMan I noticed there were few more parameters were being sent with request for uploading excel hence I mapped them in FileData Collection of Multipart Action as below&lt;BR /&gt;&lt;BR /&gt;FileName- abc.xlsx&lt;BR /&gt;FieldName-FileName variable&lt;BR /&gt;Content-Type-application/vnd.openxmlformats-officedocument.spreadsheetml.sheet&lt;BR /&gt;File path-Full file path&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Kirtish Trivedi&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 20 Jul 2021 06:08:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Digital-Exchange/Send-xlsx-File-using-POST-API/m-p/52977#M698</guid>
      <dc:creator>kirtish.trivedi</dc:creator>
      <dc:date>2021-07-20T06:08:00Z</dc:date>
    </item>
    <item>
      <title>RE: Send .xlsx File using POST API</title>
      <link>https://community.blueprism.com/t5/Digital-Exchange/Send-xlsx-File-using-POST-API/m-p/52978#M699</link>
      <description>Update : Please ignore below. Issue is resolved by setting up request.timout field in code&lt;BR /&gt;&lt;BR /&gt;Hi &lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/1537"&gt;@shashank.kumar280&lt;/a&gt;, &lt;BR /&gt;Thanks for your help with this .&lt;BR /&gt;&lt;BR /&gt;I have used HTTP Utility​ and It was working fine until yesterday but now it is throwing below error&lt;BR /&gt;&lt;BR /&gt;Could not execute code stage because exception thrown by code stage: Object reference not set to an instance of an object.&lt;BR /&gt;&lt;BR /&gt;I have passed below/attached parameter&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="6505.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/6693i5D4D709FBED470EF/image-size/large?v=v2&amp;amp;px=999" role="button" title="6505.png" alt="6505.png" /&gt;&lt;/span&gt;Update : This seems to be timeout error issue. It works with Smaller size. Is there any way to set timeout ?&lt;BR /&gt;It takes around 2 min 10 seconds before it throws an error &lt;BR /&gt;&lt;BR /&gt;Also when I remove Try and Catch block , it throws below error &lt;BR /&gt;&lt;BR /&gt;Could not execute code stage because exception thrown by code stage: The operation has timed out&lt;BR /&gt;&lt;BR /&gt;​Could you please assist with the possible cause and if it due to timeout, can you please let me know how to increase timeout ?&lt;BR /&gt;Note : Working fine through POSTMAN&lt;BR /&gt;------------------------------&lt;BR /&gt;Kirtish Trivedi&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 28 Jul 2021 04:28:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Digital-Exchange/Send-xlsx-File-using-POST-API/m-p/52978#M699</guid>
      <dc:creator>kirtish.trivedi</dc:creator>
      <dc:date>2021-07-28T04:28:00Z</dc:date>
    </item>
    <item>
      <title>RE: Send .xlsx File using POST API</title>
      <link>https://community.blueprism.com/t5/Digital-Exchange/Send-xlsx-File-using-POST-API/m-p/52979#M700</link>
      <description>Try out the suggestion from Bruce to increase the timeout value. Let us know if it works.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Shashank Kumar&lt;BR /&gt;DX Integrations Partner Consultant&lt;BR /&gt;Blue Prism&lt;BR /&gt;Singapore&lt;BR /&gt;+6581326707&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 28 Jul 2021 09:28:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Digital-Exchange/Send-xlsx-File-using-POST-API/m-p/52979#M700</guid>
      <dc:creator>shashank.kumar280</dc:creator>
      <dc:date>2021-07-28T09:28:00Z</dc:date>
    </item>
  </channel>
</rss>

