Mail Adapter - PayloadSwapBean - MessageTransformBean - German umlauts

Hi there,
I'm receiving mails with an attachment (.csv / .txt) that I want to process to get IDocs. Everything works fine but the conversion of German umlauts. I tried to apply several charsets (i.e. iso-8859-1, iso-8859-2, utf-8) in the contentType parameter without success. The result in my payload after swapping and transforming is a message without umlauts. All these characters have been replaced by the same 'character' that looks like a quadrangle. Therefore even the earliest possible mapping comes too late to convert this character back into umlauts, because I don't know anymore the original ones.
When I process the same attachment with a <u>file</u> <u>adapter</u> in the same manner (until getting an IDoc) there are no problems with umlauts, the payload looks fine!
I even checked the note 881308 (although it's said to be for the mail receiver) but it's already in the system (XI 3.0, SP 14)
Anyone an idea to solve my problem?
Regards,
Ralph

Hi Ralph,
now I got the solution:
Allpy the MessageTransformBean twice.
First you set the code page for the mail attachment, how it comes to the system.
Then you do the conversion and set the code page how the target xml should be.
Make two entries in Module configuration:
localejbs/AF_Modules/MessageTransformBean - contenttype
localejbs/AF_Modules/MessageTransformBean - tranform
as paramters you set:
contentType - Transform.ContentType - text/plain; charset=iso-8859-1
transform     - Transform.ContentType - text/xml; charset=UTF-8
transform     - Transform.Class           - com.sap.aii.messaging.adapter.Conversion
and so on.
The problem is that outlook does not provide the content type for the attachment, so the MailTransformBean assumes UTF-8, but the attachment has iso-8859-1, so you have to set this before the conversion.
I have tested this with XI 3.0 SP17 with note 960501 included.
Regards
Stefan

Similar Messages

  • Mail adapter and MessageTransformBean module configuration issue

    Hi All,
    I am trying to use module configuration in Receiver Mail adapter. Below is my configuration. (We are using SAP PI 7.11)
    Parameter/General tab:
    Message Protocol : XIPAYLOAD
    Use Mail package option is selected.
    Content Encoding = none
    Module tab:
    Processing Sequnce:
    AF_Modules/MessageTransformBean  : XSLT
    sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean : mail
    Module Configuration:
    XSLT    Transform.Class                        com.sap.aii.af.sdk.xi.adapter.XSLTConversion
    XSLT    Conversion.XSLTFileName     /tmp/GL_POST_RESPONSE_EMAIL.xsl
    XSL works outside of PI . However, when i test with a message, I am seeing following errors in Runtime workbench:
    Please let me know what could be wrong in the above configuration
    23.03.2011 15:24:39 Information MP: processing local module localejbs/AF_Modules/MessageTransformBean
    23.03.2011 15:24:39 Information Transform: using Transform.Class: com.sap.aii.af.sdk.xi.adapter.XSLTConversion
    23.03.2011 15:24:39 Error Transform: Transformer Conversion1.0.0610 Error initializing XSLT Mode:; caused by javax.xml.transform.TransformerConfigurationException: Could not compile stylesheet
    23.03.2011 15:24:39 Information Transform: transforming the payload ...
    23.03.2011 15:24:39 Error Transform: failed to execute the transformation: com.sap.aii.af.sdk.xi.adapter.trans.TransformException: Error converting Message; nested exception caused by: java.lang.NullPointerException: while trying to invoke the method javax.xml.transform.Templates.newTransformer() of an object loaded from local variable templates
    23.03.2011 15:24:39 Error MP: exception caught with cause com.sap.aii.af.sdk.xi.adapter.trans.TransformException: Error converting Message; nested exception caused by: java.lang.NullPointerException: while trying to invoke the method javax.xml.transform.Templates.newTransformer() of an object loaded from local variable 'templates'
    23.03.2011 15:24:39 Error Adapter Framework caught exception: Error converting Message
    23.03.2011 15:24:39 Error Delivering the message to the application using connection Mail_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.aii.af.sdk.xi.adapter.trans.TransformException: Error converting Message; nested exception caused by: java.lang.NullPointerException: while trying to invoke the method javax.xml.transform.Templates.newTransformer() of an object loaded from local variable 'templates'.

    Hi All,
    Issue has been resolved. There was some minor issue in the XSL. The XSL Stylus studio was not reporting this as an error. However PI's XSL engine was reporting that error. This error message was not showing up in runtime workbench. However, when i looked at the default trace, there were few more errors. After fixing the XSL, I am able to received the email
    Thanks
    -Pradeep

  • German umlauts are not shown correctly, when a received e-mail is opened the first time. What can I do?

    When I open a received e-mail the first time, German umlauts (ä, ö, ü) are not shown correctly. Instead of them there are characters like §,$. When I close the e-mails and open them again the German umlauts are shown correctly. I don't know how to solve that problem. Who can help me?

    ''Zenos [[#answer-670786|said]]''
    <blockquote>
    Fascinating. Sounds like an inconsistency between the encoding being used and the encoding being declared. I can't think why it should change when you re-open the message, unless Thunderbird is adding a correct encoding declaration.
    (Most users complain about it working in the opposite direction; messages stored as drafts often restore with damaged "special" characters such as smart quotes, accented characters and umlauts.)
    </blockquote>

  • Sender Mail Adapter - html body mail

    Hello Everybody,
    I'm facing this strange problem:
    I receive an e-mail with an XML attachment with a sender mail adapter and I use the PayloadSwapBean to let the attachment be the real payload as explaned in this blog
    <a href="/people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step:///people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step
    If I receive mail in text/plain format everything works fine, but as soon as I get an email with an html body (content-type: multipart/alternative; boundary=...) it doesn't any more (In the XI  Monitor i still se 2 payloads, but I can only open the one with the attachment).
    In this case the mapping is stuck in "scheduled for outbound process" status and the XI queue gets blocked with status "SYSFAIL" giving this error "Access via 'NULL' object reference not possible".
    Is there any way to force XI digest also HTML e-mails?
    As always, thanks a lot for your help.
    Daniele

    Thanks Akshay,
    this really worked!
    Fyi I'm using XIPAYLOAD option. I added in the module chain, before the PayloadSwapBean, a MessageTransformBean with this parameter:
    Transform.ContentType - text/plain;charset=uft-8
    this way I can also see the massage body in the monitornig.
    Hope this will be helpful for someone else.
    Regards,
    Daniele

  • Sender Mail adapter configuration with attachment

    Hi,
    I read the below blog regarding the mail adapter
    /people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step
    I have the same requirement but the attachment file is not an XML, it is CSV file so in the module tab if I change like below is it enough?
    TRANSFORM    swap.keyValue  attachment; filename=u201DMailAttachment-1.csvu201D     (I think MailAttachment-1 is the file name, am I correct?)
    If I change like above is it ok? or any other thing is required, Could you please give me the inputs
    Thanks
    Ramesh

    I have the same requirement but the attachment file is not an XML, it is CSV file so in the module tab if I change like below is
    it enough?
    PayloadSwapBean will ensure that the input to the mapping is from the attachment.....in the blog the attachment is in XML format and hence there was no need for any conversion.....yours is however a CSV file so you need to convert it to XML first and then do the further processing.....you can either use the MessageTransformationBean as shown in this blog:
    /people/gabrielsagayaselvam.panneerselvam/blog/2009/08/31/solve-key-field-problem-using-structplain2xml-in-messagetransformationbean
    Or write your own module code for the conversion.
    Regards,
    Abhishek.

  • How to download / read  text attachment  in Sender Mail Adapter  IN XI

    Hi
    I would like to know how to download / read text attachment in sender mail Adapter & sent same attachment to target system using file adapter.
    Please help how to design / resolve this concept.
    Regards
    DSR

    I would like to know how to download / read text attachment in sender mail Adapter & sent same
    attachment to target system using file adapter.
    Take help from this blog:
    /people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step
    From the blog:
    However in most cases
    our message will not be a part of the e-mail's payload but will be sent as a file attachment.
    Can XI's mail adapter handle such scenarios? Sure it can but with a little help
    from the PayloadSwapBean adapter module
    Once your message (attachment) is read by the sender CC, you can perform the basic mapping requirement (if any) to convert the mail message fromat to the file format.....configure a receiver FILE CC and send the message...this should be the design...
    Regards,
    Abhishek.

  • Sender Mail Adapter Question

    Hello All,
    Iu2019m reading the blog: /people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step to apply in my scenario. But Iu2019m having a issue. The messages in sxmb_moni are with state waiting.
    I do the same configurations of the blog. But the message go to outbound queue (SMQ2) and have a SYSFAIL with this errror: "Access via 'NULL' object reference not possible".
    Anybody have any ideia what's this?

    Stefan,
    I put just this:
    localejbs/AF_Modules/PayloadSwapBean    Local Enterprise Bean   TRANSFORM
    TRANSFORM    swap.keyName   payload-name
    TRANSFORM    swap.keyValue  MailAttachment-1
    The raw format of e-mails:
    --SAP_913fb6e1-6fb1-11de-9ed3-0013725ef0f0_END
    Content-ID: <payload-913d45e56fb111deb3b50013725ef0f0 at sap.com>
    Content-Type: text/xml; name="MailAttachment-1.xml"
    Content-Disposition: attachment;filename="MailAttachment-1.xml"
    Content-Description: MailAttachment-1
    <?xml version="1.0" encoding="UTF-8" standalone="no"?><nfeProc versao="1.10" xmlns="http://www.portalfiscal.inf.br/nfe"></nfeProc>
    SAP_913fb6e1-6fb1-11de-9ed3-0013725ef0f0_END
    But the messages in sxmb_moni still was with status Scheduled for Outbound processing and not finished.
    Do you have more any ideia?
    Regards,
    Thiago

  • Receiver Mail Adapter message with PDF attachment

    Hi.
    We are trying to generate emails from the mail adapter that includes the plain text in the body of the resulting email and an attached PDF file. We receive the following structure:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:newMailRequest_MT xmlns:ns0="http:/pdk/sap/TorstenTest">
       <Sender/>
       <Receiver/>
       <BodyContent/>
       <Subject/>
       <Attachment/>
    </ns0:newMailRequest_MT>
    I have set up an interface and mail adapter to be able to produce emails with plain text in the body. I used SAP note 748024 for this.
    So right now I can make XI send emails with dynamic mail addresses. My problem lies in sending attached files with the mails as well.
    I have read most of the threads in here, but none of them seem to answer just how to include the attachment. Which field in the 'Mail' message type is used for the attachment??
    What needs to be added to the communication channel and adapter for it to include attachments, while the body of the mail still keeps the plain text message??

    hi
    I have used the following links to send the file as an attachement and as payload.
    so it may help u.
    links:
    /people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure - Mail Adaptor options , mail attatchment
    Sender mail adapter - PayloadSwapBean - Step by step - https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6d967fbc-0a01-0010-4fb4-91c6d38c5816
    /people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1685 [original link is broken] [original link is broken] [original link is broken]
    /people/michal.krawczyk2/blog/2005/11/23/xi-html-e-mails-from-the-receiver-mail-adapter
    points if helpful.
    regards
    sreeni

  • Mail adapter - how to dinamically change attachment file name in sending

    How can I dynamically change the attachment filename when preparig email to be sent? The attachment is an invoice in XML format and I have to put the invoice number into the attachment file name.
    Thanks in advance.
    Giuseppe.

    Hi,
    Go through this docs.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9e6c7911-0d01-0010-1aa3-8e1bb1551f05
    http://help.sap.com/saphelp_nw04/helpdata/en/6b/4493404f673028e10000000a1550b0/content.htm
    Hope these bloga are useful..
    /people/community.user/blog/2006/09/07/email-reporting
    /people/community.user/blog/2006/09/08/email-report-as-attachment-excelword
    /people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step
    /people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure
    /people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1685 [original link is broken] [original link is broken] [original link is broken]
    /people/michal.krawczyk2/blog/2005/11/23/xi-html-e-mails-from-the-receiver-mail-adapter
    Thanks,
    Satya

  • Column header in receiver mail adapter

    Hi experts,
    I have a proxy to mail scenario in which I send a mail with a file attached.
    Is it possible to put column headers in the attachment, possibly without changing the mapping?
    I mean, working with module configuration in communication channel?
    Thanks
    Fabio Boni

    hi
    There are several scenario's
    have a look at following :
    /people/sap.user72/blog/2005/05/02/useful-sap-notes-for-xi
    /people/michal.krawczyk2/blog/2005/11/23/xi-html-e-mails-from-the-receiver-mail-adapter
    /people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address
    /people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step
    /people/sravya.talanki2/blog/2006/01/12/xi-triggering-e-mails-with-multiple-attachments--problems
    /people/community.user/blog/2006/09/08/email-report-as-attachment-excelword
    /people/sap.user72/blog/2005/01/06/how-to-process-csv-data-with-xi-file-adapter
    /people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure - Mail Adaptor options
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1685 [original link is broken] [original link is broken] [original link is broken] - File to Mail
    /people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address - Dynamic Mail Address
    and for further
    you can follow
    /people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address - Dynamic Mail Address
    i hope this will help you.
    Pls : Reward points if helpful
    Vishal

  • Mail adapter with attachment

    hello
    I have a mail sender adapter with attachment, that I would like to transfer to other PI.
    the important is to keep the attachment and to deliever it to the PI
    any ideas?
    Kfir

    Hi,
    By using Java mapping, you can easily achieve this.
    Or use Adapter module 'PayloadSwapBean '.
    Please see the below blogs, it might be helpful to you.
    /people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step
    /people/stefan.grube/blog/2007/04/17/xi-mail-adapter-an-approach-for-sending-emails-with-attachment-with-help-of-java-mapping
    Regards,
    Rajesh

  • SAP PI Sender Mail Adapter error : Unexpected User response

    Hello ,
              I developed a scenario which requires Sender mail Adapter to connect a Third party system to PI, by going thro the links .
    /people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step
    and PDFs in SDN.
    When configured the sender mail adapter using POP Mail Server,faced the following error:gave the correct URL and Login credentials.
    +" exception caught during processing mail message; java.io.IOException: unexpected user response; read -ERR Command is not valid in this state."+
    Then used IMAP for the same mail server : error:
    "exception caught during processing mail message; java.io.IOException: unexpected login response; read 001F BAD Command received in Invalid state."
    Tried with another Mail server :
    "exception caught during processing mail message; java.net.ConnectException: Connection timed out".
    Can you please help, what be the cause? how to rectify it?

    Hi
    There might be an connectivity issue from PI server to mail server. Please check with your BASIS to resolve the issue.,
    Regards
    Ramg

  • Sender Mail Adapter Configuration error

    Hi,
    I am working on scenario mail adapter to CRM system. And when I tried to configure the sender email adapter I have got the error following error, Can any one help me to resolve this issues
    error occured: <b>exception caught during processing mail message; java.net.ConnectException: Connection refused</b>
    the details I have provided are as follows
    Transport protocol is POP3
    URL - POP://mailservername/Inbox/folder
    And I have tried with the IMAP4 also
    URL - IMAP://mailservername/Inbox/folder
    And we have cross checked that the XI server is able to ping that particular mail server.
    Regards,
    Venkat.

    Hi Venkateswara,
    I would suggest that you go through these to know how to configure your sender mail adapter,
    <a href="/people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step mail adapter step by step</a>
    <a href="/people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure adapter Scenario</a>
    Also, to know the various parameters of a sender mail adapter, just go through this link,
    <a href="http://help.sap.com/saphelp_nw04/helpdata/en/23/c093409c663228e10000000a1550b0/content.htm">Configuring sender mail adapter</a>
    Check your mail adapter configuration against these details. Also, check if the mail server you are trying to access is running.
    Also go thru this pdf to make yourself more comfortable with mail adapters.
    https://websmp205.sap-ag.de/~sapidb/011000358700004556712005E/HowTo_Mail_Adapter2.pdf
    Regards,
    abhy

  • XI - Sender mail adapter - attachment as payload

    Hi,
    My scenario is Email -> XI-> ...
    I am trying to send an email with an attachment. I want to XI process only the attachment as the payload.
    How do I do ? What is the communication channel configuration ?
    Thanks,
    Nicolas.

    Hi Nicolas,
    just have a look at my weblog:
    /people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step
    it describes step by step what you want;)
    Regards,
    michal

  • Problem with Sender Mail Adapter

    Hi experts,
    I'm developing a Mail-XI-RFC scenario and have a problem in the mapping. I have created a MI based in the structure of the attachment of the mail. I have a mapping that does xml->RFC and tests OK. When I send a mail to the account of the sender adapter, the system generates two payloads, the 'MailMessage' and the 'MailAttachment-1' that is the xml to map, but I have an error in SXM_MONI 'Cannot produce target element /ns0:...RFC name'.
    The Sender Adapter configuration uses message protocol XIPAYLOAD, I have checked Mail Package, base 64 and keep Attachments. Interface namespace is the same as the xml and default interface name is the message interface created of type my xml.
    What is wrong?
    Best Regards,
    Alfredo Lagunar.

    In this case you need to use payloadswap bean for swapping the payload and attachment
    http://help.sap.com/saphelp_nw04/helpdata/en/70/f3cbad30ee479cb15672219f3405f0/frameset.htm
    /people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step check this
    Rajesh
    Edited by: Rajesh on Feb 4, 2009 2:52 PM

Maybe you are looking for

  • Installing Blu Ray to TV issue

    I am trying to install my Insignia wireless Blu Ray DVD player to my Insignia without any luck. When trying to setup the DVD player, according to instructions, I cannot get into the settings menu on the player screen. To further exasperate me, my TV

  • SSRS deployment in AZURE virtual machine

    I have deployed SSRS in 2 windows azure vms. Both the instances use the same database.  Steps which i followed. 1. Install and configure SSRS in the first VM. 2. While configuring the first VM i created the database which ssrs will use. 3. Take a bac

  • Reg Navigational Attribute in Query

    HI Iam having a strange problem,I wasnt to include a channel levl that is a navigable attribute to customer in my query.The query is reporting from an multi provider.I find that the navigable attribute is checked in my Infocube ,but its not appearing

  • The "go to" option

    i cannot select any application to appear in the "go to" menu in my nokia 5130 xpressmusic when i select application list my phone just does not respond to any button and after a few second a blank page is displayed it is removed if i switch off my p

  • Urgent ....Work Order Printing Simulation

    Hi gurus, I want to validate the work order printing before I create work order. Say, i only have the routings, how can I do it? Response at the soonest possible time is really appreciated. Thanks. Regards, Ching