<?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>Question Re: multi-part form data from CPI using zip file in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/multi-part-form-data-from-cpi-using-zip-file/qaa-p/12631590#M4738244</link>
    <description>&lt;P&gt;Hi  &lt;SPAN class="mention-scrubbed"&gt;bhattasankar&lt;/SPAN&gt; ,&lt;/P&gt;&lt;P&gt;It is great to hear that the code snippet helped.&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;</description>
    <pubDate>Sat, 26 Nov 2022 06:20:07 GMT</pubDate>
    <dc:creator>Sunil_Pharswan</dc:creator>
    <dc:date>2022-11-26T06:20:07Z</dc:date>
    <item>
      <title>multi-part form data from CPI using zip file</title>
      <link>https://community.sap.com/t5/technology-q-a/multi-part-form-data-from-cpi-using-zip-file/qaq-p/12631585</link>
      <description>&lt;P&gt;HI,&lt;/P&gt;
  &lt;P&gt;I am trying to send a zip file containing a csv file to Ariba using CPI. I have tried using postman tool and it is working fine. I wanted to test this with CPI by hardcoding the message body in content modifier. &lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2116462-2022-11-18-17-08-00.png" /&gt;&lt;/P&gt;
  &lt;P&gt;in first content modifier I have csv file as it needed for target application&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;UTF-8,,

DepartmentID,Parent

1212,2323&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;next step I have used "Gather" step to zip the csv file&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2116461-image.png" /&gt;&lt;/P&gt;
  &lt;P&gt;next content modifier I have hardcoded below in message body tab&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;----WebKitFormBoundary7MA4YWxkTrZu0gW

Content-Disposition: form-data; name="event"

Import Master Batch Data

----WebKitFormBoundary7MA4YWxkTrZu0gW

Content-Disposition: form-data; name="fullload"

True

----WebKitFormBoundary7MA4YWxkTrZu0gW

Content-Disposition: form-data; name="sharedsecret"

xsdsddsd

----WebKitFormBoundary7MA4YWxkTrZu0gW

Content-Disposition: form-data; name="clienttype"

Postman

----WebKitFormBoundary7MA4YWxkTrZu0gW

Content-Disposition: form-data; name="clientinfo"

Postman version 3.0

----WebKitFormBoundary7MA4YWxkTrZu0gW

Content-Disposition: form-data; name="clientversion"

3.0

----WebKitFormBoundary7MA4YWxkTrZu0gW

Content-Disposition: form-data; name="content"; filename="Departments.zip"

Content-Type: application/zip

${body}

----WebKitFormBoundary7MA4YWxkTrZu0gW--&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;I am calling this iflow from postman ( no body / no header ) and I get below error&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;Throwable caught: Unexpected Error || invalid distance too far back: [Ljava.lang.StackTraceElement;@17bc2bae&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;I feel the zip file is not generated properly . Any suggestions what is missing here?&lt;/P&gt;
  &lt;P&gt; &lt;SPAN class="mention-scrubbed"&gt;deschrijverp&lt;/SPAN&gt; &lt;SPAN class="mention-scrubbed"&gt;joao_miguel_17&lt;/SPAN&gt; &lt;SPAN class="mention-scrubbed"&gt;sriprasadshivaramabhat&lt;/SPAN&gt; &lt;SPAN class="mention-scrubbed"&gt;sriprasad.shivarambhat&lt;/SPAN&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 18 Nov 2022 11:47:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/multi-part-form-data-from-cpi-using-zip-file/qaq-p/12631585</guid>
      <dc:creator>former_member128103</dc:creator>
      <dc:date>2022-11-18T11:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: multi-part form data from CPI using zip file</title>
      <link>https://community.sap.com/t5/technology-q-a/multi-part-form-data-from-cpi-using-zip-file/qaa-p/12631586#M4738240</link>
      <description>&lt;P&gt;Hello Sankar,&lt;/P&gt;&lt;P&gt;Please make sure you have multipart header with boundary value mentioned.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;lt;code&amp;gt;Content-Type: multipart/form-data; boundary=&amp;lt;Your boundary value&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;STRONG&gt;Refer below blog that might help you&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://blogs.sap.com/2019/11/14/what-is-form-data-and-how-to-send-it-from-sap-cloud-platform-integration-cpi/" target="_blank"&gt;https://blogs.sap.com/2019/11/14/what-is-form-data-and-how-to-send-it-from-sap-cloud-platform-integration-cpi/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Regards,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Sriprasad Shivaram Bhat&lt;/P&gt;</description>
      <pubDate>Fri, 18 Nov 2022 14:50:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/multi-part-form-data-from-cpi-using-zip-file/qaa-p/12631586#M4738240</guid>
      <dc:creator>Sriprasadsbhat</dc:creator>
      <dc:date>2022-11-18T14:50:59Z</dc:date>
    </item>
    <item>
      <title>Re: multi-part form data from CPI using zip file</title>
      <link>https://community.sap.com/t5/technology-q-a/multi-part-form-data-from-cpi-using-zip-file/qaa-p/12631587#M4738241</link>
      <description>&lt;P&gt;HI Sriprasad,&lt;/P&gt;&lt;P&gt;I have followed the blog already and set the header value as it was suggested in blog. the only difference is I have zip file here in my case&lt;/P&gt;</description>
      <pubDate>Sat, 19 Nov 2022 15:40:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/multi-part-form-data-from-cpi-using-zip-file/qaa-p/12631587#M4738241</guid>
      <dc:creator>former_member128103</dc:creator>
      <dc:date>2022-11-19T15:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: multi-part form data from CPI using zip file</title>
      <link>https://community.sap.com/t5/technology-q-a/multi-part-form-data-from-cpi-using-zip-file/qaa-p/12631588#M4738242</link>
      <description>&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;The issue is resolved by following the code written by  &lt;SPAN class="mention-scrubbed"&gt;pharswan.sunil&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;A href="https://answers.sap.com/questions/12716088/sap-cpi---forwarding-raw-image-data-through-integr.html"&gt;SAP CPI - Forwarding Raw Image Data through Integration Flow | SAP Community&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2022 06:38:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/multi-part-form-data-from-cpi-using-zip-file/qaa-p/12631588#M4738242</guid>
      <dc:creator>former_member128103</dc:creator>
      <dc:date>2022-11-23T06:38:20Z</dc:date>
    </item>
    <item>
      <title>Re: multi-part form data from CPI using zip file</title>
      <link>https://community.sap.com/t5/technology-q-a/multi-part-form-data-from-cpi-using-zip-file/qaa-p/12631589#M4738243</link>
      <description>&lt;P&gt;  @&lt;SPAN class="mention-scrubbed"&gt;bhattasankar&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Hi Sankara,&lt;/P&gt;&lt;P&gt;We have a similar requirement where we need to send data to Ariba. First, we need to pick up a CSV file from SFTP, ZIP it and send it in form of multipart form data. We have followed your blog and we are getting &lt;STRONG&gt;"Throwable caught: Illegal filename: ID-vsa10692304-1668261292152-120-2 || No stack available." &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Can you please help us to troubleshoot this error?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jeevitha&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2022 16:19:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/multi-part-form-data-from-cpi-using-zip-file/qaa-p/12631589#M4738243</guid>
      <dc:creator>former_member71230</dc:creator>
      <dc:date>2022-11-25T16:19:10Z</dc:date>
    </item>
    <item>
      <title>Re: multi-part form data from CPI using zip file</title>
      <link>https://community.sap.com/t5/technology-q-a/multi-part-form-data-from-cpi-using-zip-file/qaa-p/12631590#M4738244</link>
      <description>&lt;P&gt;Hi  &lt;SPAN class="mention-scrubbed"&gt;bhattasankar&lt;/SPAN&gt; ,&lt;/P&gt;&lt;P&gt;It is great to hear that the code snippet helped.&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;</description>
      <pubDate>Sat, 26 Nov 2022 06:20:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/multi-part-form-data-from-cpi-using-zip-file/qaa-p/12631590#M4738244</guid>
      <dc:creator>Sunil_Pharswan</dc:creator>
      <dc:date>2022-11-26T06:20:07Z</dc:date>
    </item>
  </channel>
</rss>

