Payload Zip bean

Hi All,
Is it possible to use Payload Zip bean module in Receiver File Adapter with File Content Conversion option?
Iam getting the below error when iam trying to enable the communication channel with with Message Protocol as FCC and using AF_Modules/PayloadZipBean bean together.
Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: Exception in XML Parser (format problem?):'com.sap.engine.lib.xml.parser.NestedSAXParserException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XMLParser: No data allowed here: (hex) 50, 4b, 3(:main:, row:1, col:3)(:main:, row=1, col=3) -> com.sap.engine.lib.xml.parser.ParserException: XMLParser: No data allowed here: (hex) 50, 4b, 3(:main:, row:1, col:3)': java.lang.Exception: Exception in XML Parser (format problem?):'com.sap.engine.lib.xml.parser.NestedSAXParserException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XMLParser: No data allowed here: (hex) 50, 4b, 3(:main:, row:1, col:3)(:main:, row=1, col=3) -> com.sap.engine.lib.xml.parser.ParserException: XMLParser: No data allowed here: (hex) 50, 4b, 3(:main:, row:1, col:3)'
However when i run the same scenario with the below single options, the interface is working fine
Message Protocol: File; Module:AF_Modules/PayloadZipBean -->Worksfine
Message Protocol: File Content Conversion; Module: None -->works fine
From the Audit Log data, it's showing that the channel is trying to zip the file first and then its trying to do the FCC (its erroring out at this stage) when enabling both Zipping and FCC functions together.
Any idea's on how to enable both these options together??
Thanks
Pradeep

Hi Pradeep,
Yes u r correct that if u specify both the payloadXipBean and FCC, this problem will arise.
The reason is that the sequence of processing of the inbound payload.
So what i suggest is, in receiver communication channel please change the sequence of processing of adapter modules., once and check it.
first put the File then the AF_Modules/PayloadZipBean.
It will work,not a problem.
If still problem exists pl do post the prblm.
Babu

Similar Messages

  • Using variable in Payload Zip Bean

    Hi to everyone, in my scenario I'm using receiver file adpater to create a zip file with payload and its attachment using Payload zip bean Module.
    In the parameter Transform.ContentType I insert:text/xml;name = 'test.xml' for the payload and text/xml;name = 'test.txt' for the attachment.
    I would zip theese files keeping their orinal file name, so is it possible to use the variable %filename% that contains the name of the message interface, or also the original file name?
    Thank's in advance for your help.
    Anassap_XI.

    Hi,
    Please check :
    /people/stefan.grube/blog/2007/02/20/working-with-the-payloadzipbean-module-of-the-xi-adapter-framework
    You find more information about the PayloadZipBean in SAP note 965256.
    *Pls: Reward points if helpful*
    Regards,
    Jyoti

  • Filename extension in Payload Swap bean

    Hi Experts
    I have a scenario Proxy to FTPS , where I have to send an excel attachment. I have used payload swap bean in receiver channel and it is working fine as I am now able to see attachment in final destination folder however since the file name is coming from ECC and we are using dynamic configuration in PI to handle this. excel attachment is missing the extention .xls when it is being triggered from ECC and therefore in FTP folder file is getting generated but with no extention.
    I have added the extention .xls (as per the MIME header) in dynamic config and also tried to use concat function to achieve this extention to be added as final name of the file but when I did above adjustments I can see the correct name being generated in Main payload in SAP PI receiver channel monitoring but not in final destination folder, file still looks same as earlier (without any extention) , I believe since I am using payloadswapbean in module whatever I am getting in Mainpayload is being swapped by excel attachment values but not sure why the correct extention is not being shown up at final destination folders.
    Please suggest how can I get the correct file name in destination folder with the help of SAP PI, I know I can do this if ECC will add .xls in attachment name.

    Hi Mohit,
    I have tested the same scenario and it is working with PayloadSwapBean and DynamicConfiguration in the mapping and the file name correctly placed in the target.
    Receiver File CC:
    Dynamic Configuration:
    Target Directory:
    If your file name correctly set in dynamic configuration then the target file will be created correctly.
    Regards,
    Praveen.

  • SOAP To File (Attachment swapping with Payload using Payload Swap Bean)

    Hi,
    I am working on the subject line. The scenario works well and good when I use the bean in Receiver File Communication Channel.
    The same bean configuration if I use on the sender SOAP the swapping of payload and attachment is not happening.
    Any Ideas.............
    Thanks,
    - Gujjeti.
    Edited by: Praveen Gujjeti on Feb 27, 2009 1:53 PM
    Edited by: Praveen Gujjeti on Feb 27, 2009 1:53 PM

    Hi Praveen,
    Clearly written in SAP help document :
    "SOAP sender Adapter does not support Moduls"
    so using Payload swipe bean is all van.
    Thanks
    Sunil Singh

  • Payload Swap bean not working

    Hi All,
    We are working on PI 7.11. We are trying to retrieve the attachments from the mails and convert them into files. We have enabled Keep Attachments in sender mail adapter. For swapping the payload we used payload swap bean. We referred the below blog
    /people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step
    We are just trying with XML attachments.
    The problem now is the payloads are not swapping. The file contains only the body of the mail not the attachment. I dont know what I'm missing. Please advice
    Regards,
    Malini

    Hi abhishek,
    Please find below the config done in adapters
    1     localejbs/AF_Modules/PayloadSwapBean                          Local Enterprise Bean     1
    2     sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean     Local Enterprise Bean     mail
    1     swap.keyName     Content-Description
    1     swap.keyName     Content-Disposition
    1     swap.keyValue     MailAttachment-1
    1     swap.keyValue     attachment;filename="MailAttachment-1.xml"
    Regards,
    Malini

  • Payload Swap Bean in SFTP adapter

    Hi ,
    I want to use Payload Swap Bean in SFTP Receiver adapter. Please tell me the flow.
    Regards,
    Manigandan

    My Configuration in Adapter
    File names in message

  • Payload Swap bean Issues

    Hi
    I'm using the following values in my module tab -
    Module name - AF_Modules/PayloadSwapBean
    Module key - swapbean
    This is the sequence of the Module Configuration -
    swapbean      |       swap.keyName        |          Content-Disposition
    swapbean      |       swap.keyName        |           Content-Description
    swapbean      |       swap.keyValue        |           attachment;filename="MailAttachment-1.xls"
    swapbean      |       swap.keyValue        |          MailAttachment-1
    Thanks

    Is there no way of doing this?
    Of course there is a way
    Maybe i could put the swap bean on my file receiver adapter?
    No, if it is file to mail, use the module in at mail sender channel only.
    Try only this in your module parameter.
    swapbean | swap.keyName | payload-name
    swapbean | swap.keyValue | MailAttachment-1
    Regards,
    Prateek

  • Payload Swap Bean on 7.1

    has this been taken care?
    /people/stefan.grube/blog/2008/12/11/adjust-your-pi-70-adapter-modules-for-pi-71-in-15-minutes

    well then it seems interesting
    nothing really has changed for the payloadswapbean from 7.0 to 7.1
    ref: http://help.sap.com/saphelp_nwpi71/helpdata/en/2e/bf37423cf7ab04e10000000a1550b0/frameset.htm

  • Need help on how to handle zip & text/csv as a resposne payload from Concur RestWebservice

    Hi All,
    We are getting zip(if there are multiple files) and test/csv(single file) as a response payload from the concur rest API and need your help on how to handle in NWBPM and SAP PO.
    Zip response coming in response looks like below -
    PKÀ˜F7extract_attendee_detail_p0600908soav_20150424022159.txts� rt©1204Õ50Ñ52©1¨áåPKzà@ÆPKÀ˜F2extract_CES_SAE_v3_p0600908soav_20150424022148.txts� rt©1204Õ50Ñ52©1¨©1ãåPKå늟PKÀ˜Fzà
    Text/csv response looks like below -
    Extract|2015-24-40|20|0
    Need you help on how to handle the zip content response.
    Also need help on how to handle when text/csv response comes and when zip response comes.
    As per the scenario, there are 4 calls to be made and we are using NWBPM and in the last call the actual respons (text/csv or zip) will come.
    Please provide your inputs.
    Thanks
    Narayanareddy B

    Hi Aaron,
    Thanks for your reply.
    I tried with Payload zip bean and the java mapping as mentioned in the response mapping of OM.
    Payload zip bean - Zip  zip.mode  unzip
    I am getting the error below in the receiver rest channel -
    "Transmitting the message using connection JPR failed, due to: com.sap.aii.af.lib.mp.module.ModuleException: Zip: error occured during processing: java.util.zip.ZipException: invalid stored block lengths"
    Java Mapping - used the java mapping in the response of Operation mapping
    Here also i am seeing the same error in the channel log as it is synchronous step and the message got cancelled.
    "Transmitting the message using connection JPR failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: Error encountered while executing mapping: com.sap.aii.af.service.mapping.MappingException: Mapping failed in runtimeApplication mapping program com/equalize/xpi/esr/mapping/java/UnzipAndAttach throws a stream transformation exception: Exception: invalid stored block lengths"
    The below is the response i am seeing and is it proper zip response payload(any encryption) , kindly advise.
    PKâE�F:ws_extract_attendee_detail_p0600908soav_20150424083413.txts� rt©1204Õ50Ñ52©1¨áåPKzà@ÆPKâE�F5ws_extract_CES_SAE_v3_p0600908soav_20150424084014.txtíTß��@~oÒÿ�÷Fº»ìV}ëòCÏz Qljß8ÜöL�`N�ùão8�Ò«�´M�Ü@�awvçûfgÇùâϤå#Ttï0Ø�B�²·olÇ�£[4Ï](L�]«�ÑbÀôÁÒc�0ÀÏdAªÙТ¨Ìû�Êv¡�b¤eJA%��=Þ7Í>PÚ=í2��7ò[�¼¡=q/°¶�*ø)
    K|<`BgÉÔºÜWs[§J�&Ñ:Ìá:´�ç«�RÐv�ÚÅAD'\�ÁtR²*DP3gî:B@JëhU�Ò'¬�ùQ\�È\D{·O×±JS\ï�-ò�¸�Þ²êó�{Å¡2®â,MmÉù XAzßüBn&®Sl-§�l¶A�×ú½³ÙFI®0¿©Ú¯¤�oT�iV²RÀJ��¼«`õ»�í Ûéwa#�àpY�««óq)U°JaøÁA�ûì>Ù³üHåÒe¾�7��Ð/§£u°Nzã÷ç4×·èãþ�¾}õ0ÙµYÄ�+J��eX\�E±ïsR%®yÜÕðsªáÚ$qÚÎÇ�Û$^%1¸AF*ý¶VÑêxÏZÏ¢U½T~Ñ®ØkW5ç×®õ¿w5¬zò:oN»�ô���íø÷úÛÙ=¬å�[ôÚ�þmczPKhÏ��i PKâE�Fzà@Æ:ws_extract_attendee_detail_p0600908soav_20150424083413.txtPKâE�FhÏ��i 5�ws_extract_CES_SAE_v3_p0600908soav_20150424084014.txtPKËö
    Thanks
    Narayanareddy B

  • Processing Multiple files in the reciever channel

    Hi Experts,
    We have a scenario where PI is supposed to pick a zip file containing different files, Post which PI should unzip the files and send it to receiving system.
    We have used payload zip bean to unzip the files in the sender channel and it was successful. The problem here is the receiver channel.
    Receiver channel is not able to process all the files. The file name and extension is causing the problem as we have different file names and extensions.
    I tried using the Payload zip bean in the reciever channel too but again the file name and extension were the issue. Attached the screenshot of the message processed in the communication channel which clearly shows the kind of files we are expecting. we are using PI 7.4 single stack.
    Batch script is something we are not really looking at... Can you please provide some solution?

    unable to attach the screenshot sorry

  • Proxy to SOAP with Payload + Stripped Payload as ZIP

    Hi Gurus
    I have a requirement from Proxy message to Web Service call where i need partial payload to be zipped and send
    I am looking at blog below, which will help to zip the payload for any message.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/50ce0433-4309-2b10-4bb4-d421e78463f7?QuickLink=index&overridelayout=true
    Please correct me if my approach is could work or suggest me any easy or possible ways
    Source Structure
    <Root>
    <Elemtn1>Element</Element1>
    <Element2>Element2<Element2>
    <ZipPayload>some binary data goes here</ZipPayload>
    </Root>
    Target
    <Root>
    <Elemtn1>Element</Element1>
    <Element2>Element2<Element2>
    <ZipPayload>Filename.zip</ZipPayload>
    </Root>
    The out still needs to have the payload, part of it will be zipped as an attachment to the soap receiver adapter and mentioned zip file name in the 1st payload
    Straight interface mapping with 2 Message Mappings.
    1. Map the source to target and generate dynamic file name and assign into ZipPayload field
    2. Use the the method from the link above on zipping the file.
    Will this work sending payload with attachment via web service? Please advice
    I appreciate your input in advance

    Sender is not an option, because of lack of skills
    XI MM, we have two maps because, source payload will be split into two sets
    1 Partial Header Payload
    2. Details Payload will be zipped and generate dynamic zip file name and attach to the Payload 1.
    The output should look like in the earlier example
    Payload
    <Root>
    <Elemtn1>Element</Element1>
    <Element2>Element2<Element2>
    <ZipPayload>Filename.zip</ZipPayload>
    </Root>
    +
    Zip File
    Payload + Zip file as an attachment when it calls the web service.
    I am yet to do the POC, meanwhile i am checking here to see if it is feasible option.
    Btw, can any one can compile the java code and attach the class file here for the following link please. Appreciated in advance. I have no java experience in first place and it will be a tough thing to do from my side
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/50ce0433-4309-2b10-4bb4-d421e78463f7?QuickLink=index&overridelayout=true

  • Payload swapping

    Hi
    I have a rek where in I have to swap the payload with the attachement file (which is also a xnl file).
    I am using the file-xi-soap scenario. After going through the SDN I have come across a pay load swap bean.  But in almost all the example's it was used with mail adapter. SAP help no where mentioned that this module is only for Mail adapter. When I try to implement the same in SOAP Adapater, it never detects this bean and it is immaterial for that in what way you configure that.
    If anybody have implemented/worked similar kind of scenario could you plz advise whether this payload swap bean works with soap adapter ?
    Thanks in advace
    kumar

    Hi,
    PayloadSwapBean doesn't work with SOAP sender adapter.
    For SOAP receiver adapter you can still use PayloadSwapBean or can use Axis SOAP Adapter.
    For more info on Axis SOAP Adapter refer
    http://help.sap.com/saphelp_nw04/helpdata/en/45/a4a36de28552f7e10000000a1553f7/frameset.htm
    Thanks
    Amit

  • Receiving message after Payload Swap

    Hi All
    I am stuck with a scenario where we have to deliver a PDF as an inline message and not as an attachment. The PDF is sent from an R/3 system through a Proxy as an attachment and then this is sent back into the IE Pipeline using a SOAP Channel. This is where the attachment is swapped as the payload. The Message that we receive from R/3 contains five fields plus the attachments, but once the payloadswap is done the PDF should be the main payload. I have a sender SOAP channel to start the second stage flow, but not sure on what message Interface to use hereu2026
    Flow u2013 Summary
    Stage 1 (R/3 to XI)
    Proxy with PDF as an attachment
    Message routed to a receiver SOAP channel that send the message back on to the IE Pipeline
    The attachment is swapped in this channel
    Stage 2 (XI u2013 Receiver) - Receiver uses FTP
    Receive the payload using a SOAP sender channel
    This is where I am stuck. Do not know how the payload looks like and what message interface to use to receive this PDF message.
    I would really appreciate if you could give me some guidance on this issue. I am not able to find any proper documentation for the payload swap bean, is there one out there??
    Thanks & Regards
    Prav

    Hi,
    This is a nasty little trick but it works great.
    Create any Message Interface with any structure for inbound and outbound interfaces if required... then do your configuration assuming that the Message interface is correct.
    Please note that this will only work if you have no mapping so you should not specify an interface mapping in the interface determination step.
    The trick is based on the fact that XI does not validate the structure of a message.  If a message has an incorrect structure, it gets picked up in the mapping, which is not a problem if you don't use any mapping.
    Sounds strange but trust me, it works...
    Regards,
    Yaghya

  • BPM stops after receiving payloads from sender email channel

    Hi,
    my current situation:
    i have a sender email cc which sends the content plus attachments into the xi. here i map it to an BAPI-request structure and forward it to an BPM-process. this BPM does a sync call to an r/3. i use the payload swap bean to switch the attachment-1 as content.
    -> when i generate the email with e.g. thunderbird the scenario runs
    Problem:
    but if i use outlook or notes the email appears as a multipart message with attachments (that should not be a problem as i still use the attachment-1) the forward to the BPM causes a stuck?
    <b>this one works:</b>
    --SAP_f5e98a51-c25a-11db-8164-000e7fef2133_END
    Content-ID: <[email protected]>
    Content-Disposition: attachment;filename="[email protected]"
    Content-Type: text/xml; charset=utf-8
    Content-Description: SOAP
    <SOAP:Envelope>lots of funny stuff</SOAP:Envelope>
    --SAP_f5e98a51-c25a-11db-8164-000e7fef2133_END
    Content-ID: <[email protected]>
    Content-Type: text/html; charset=ISO-8859-1
    Content-Disposition: attachment;filename="MailMessage.htm"
    Content-Description: MailMessage
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    </head>
    <body bgcolor="#ffffff" text="#000000">
    <br>
    </body>
    </html>
    --SAP_f5e98a51-c25a-11db-8164-000e7fef2133_END
    Content-ID: <[email protected]>
    Content-Type: text/xml;charset=iso-8859-15
    Content-Disposition: attachment;filename="MailAttachment-1.bin"
    Content-Description: MailAttachment-1
    <?xml version="1.0" encoding="utf-8"?>
    <ns:salesorderlines_recordset xmlns:ns="http://namespace">
    and so on
    <b>this not:</b>
    --SAP_1ce0ab21-c25b-11db-c38b-000e7fef2133_END
    Content-ID: <[email protected]>
    Content-Disposition: attachment;filename="[email protected]"
    Content-Type: text/xml; charset=utf-8
    Content-Description: SOAP
    <SOAP:Envelope>same entries as above</SOAP:Envelope>
    --SAP_1ce0ab21-c25b-11db-c38b-000e7fef2133_END
    Content-ID: <[email protected]>
    Content-Type: multipart/alternative; boundary="=_alternative 002A6CACC125728A_="
    Content-Disposition: attachment;filename="MailMessage.bin"
    Content-Description: MailMessage
    --=_alternative 002A6CACC125728A_=
    Content-Type: text/plain; charset="US-ASCII"
    --=_alternative 002A6CACC125728A_=
    Content-Type: text/html; charset="US-ASCII"
    --=_alternative 002A6CACC125728A_=--
    --SAP_1ce0ab21-c25b-11db-c38b-000e7fef2133_END
    Content-ID: <[email protected]>
    Content-Type: text/xml;charset=iso-8859-15
    Content-Disposition: attachment;filename="MailAttachment-1.bin"
    Content-Description: MailAttachment-1
    <?xml version="1.0" encoding="utf-8"?>
    <ns:salesorderlines_recordset xmlns:ns="http://namespace">
    and so on
    could it be the  "Content-Type: multipart/alternative; boundary..." ??

    Oh yeah...
    found it by myself
    everything with type "multipart/alternative" stucks in SAP XI
    Sender Mail Adapter - html body mail
    at my side the only solution was:
    1. module
    PayloadSwapBean with "swap.KeyName = content-type" and "swap.KeyValue = multipart/alternative"
    to select the problematic part
    2. module
    MessageTransformBean with "transform.ContentType = text/plain; charset=UTF-8"
    to assign the part a standard/readable encoding (for XI)
    3. module
    PayloadSwapBean with "swap.KeyName = content-name" and "swap.KeyValue = Attachment-1"
    to go on with the attachment...
    both conversions "text/plain" and "text/xml" worked fine

  • MAIL Adapter Transformation Bean

    Hi Guys,
    I am working on Mail 2 CSV file interface. Can any one provide me information on Sender side MAIL transformation Bean  to convert  CSV file to XML.
    Thnx,
    Siva.

    Hi Prateek,
       Actual my requirement is
    customer send us a CSV file format attached to the email and i have to extract it from the mail and put in the file location. No mapping or anything required.
      Customer sends us orders via email. The email contains some text but the order details / requirements are contained within a CSV file attachment.
    Customer sends emails to us which represent their orders
    The emails always include a CSV file attachment
    i need to extract file attachment
    Extracted file should be saved to network share folder.
    My doubt is in below wiki Mail 2 File Scenario attachment in the form of xml , but in my case attachment format is CSV.
    Could you please help me on this how can i handle this CSV mail attachment.
    http://wiki.sdn.sap.com/wiki/display/XI/StepbyStepMailToFileScenario u2013 Mail 2 File Scenario
    /people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step - Michael blog
    http://help.sap.com/saphelp_nw04/helpdata/en/2e/bf37423cf7ab04e10000000a1550b0/content.htm - Payload swap bean
    http://help.sap.com/saphelp_nw04/helpdata/en/23/c093409c663228e10000000a1550b0/content.htm - Sender MAIL Adapter parameters (Configuring the Sender Mail Adapter)
    Payload Swap bean not working - Payload Swap bean module parameters
    Thnx,
    Siva

Maybe you are looking for

  • How can I get the e-mail address (reply addr.) once connected to a server

    My application ask the user to enter the POP3 server host name (+ port) more the POP3 server userId and password .... I can get the e-mails and show the to the user .... Now, the user want to send a message from that "account" and what I need is to k

  • Missing Adminitrative Line for approval

    When a user goes to PWA home page he sees this : There are 2 Admin time off requests. But when he goes to approval center he sees only 1 Admin Item. We have confirmed that NO FILTER is applied and also confirmed permissions. it seems like somewhere s

  • Skype not doing anything.

    Just installed. It's just a blank splash screen with the rainbow and the clouds. Nothing on it. I click sign in from the icon at the bottom and nothing happens. Stays stuck like this for hours. Please help. I have an important business meeting. Was g

  • How do I trim a distinquished name?

    Hi, For my siteObject output, I don't want the full DN, but just the value of the first CN in my output.  I issue the following which produces a sorted list of subnets and associated sites, however the sites are the full DN whereas I just want the va

  • Forms 10g crashes while opening an oversize Oracle seeded form

    Hi, I am trying to open Oracle R12 seeded form 'PAXPREPR' using forms 10g. I connect to the database before opening the file. The size of the file is 11.8MB. But when i open this file, oracle forms crashes without any error message. I checked the 11i