Mail to Mail Mapping Issue in sender mail adapter

Hi,
i am using mail package and XIPAYLOAD in my sender mail adapter.
In the mapping i am getting the payload as an HTML Text.
When use UDF to read a string the from the Mail Body, i am getting corect value, but when change the test data with only in that string place (if i put other value) from mail body, i am getting different value from same index of the position.
Please let me know the reason and solution.
Regards.
Sreeni

Hi,
I replaced all the HTML tags and other stuff with empty space using UDF.
thanks for your support.
Regards,
Sree

Similar Messages

  • How to get the filename in mapping when using sender File adapter?

    hi Experts,
       I have scenario where XI reads the input file using Sender file adapter.
       The file name is configured in the communication channel.
       In my message mapping it is possible to read this file name?
    Thanks
    gopal

    Hi Gpoal,
    Use Dynamic Configuration - /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
    Regards,
    Geetha

  • Issue with Sender AXIS Adapter while XML Signing

    Hi all,
    We are working on a scenario, an external application pushes message to Sender AXIS Adapter in PI. However while testing XML signing we are getting below error:
      <faultcode>soapenv:Server.generalException</faultcode>
    <faultstring>WSDoAllReceiver: security processing failed; nested exception is:
    org.apache.ws.security.WSSecurityException: The signature or decryption was invalid</faultstring>
    <detail>
    Could you please provide your valuable inputs on this?
    Thanks,
    Jaya

    Hi Jaya,
    Have you checked if your message is valid? Have you tested it against another server?
    Which version of wss4j are you using and which PI version?
    How does your module/handler configuration looks?
    If the message is valid and the handler is configured correctly, you can set the trace level of org.apache to debug and see what it says.
    Best regards, Yza

  • Issue with Sender File Adapter

    Hi,
    In Sender File Adapter I have used content convertion. If the content convetion fails or the channel goes to error state, the sender file channel stops polling. The channel is not polling in the next interval once it goes to error state.
    Please help.
    Thanks
    Aravind

    Hi,
    That's true.
    If one file fails to process due error in content coversion or for any other reason, the channel would stop polling for the next time and also would not process the files following it.
    Please correct the content conversion and process the file.
    Regards,
    Subbu

  • Issue with Sender File Adapter file content convertion

    Hi Everybody,
    I am facing an issue in FCC at the sender side.
    Below is sender text message which contains 9 rows.Each row represents one node in the source structure.
    ROUASIS.MLASIS.A02001COMASN1.1.2
    HDR7072396166N^MAEU/SZH3PA288200707248IF07082007090311CAFXSYATFXS^20070903
    PPL5705150010506YAT254915402713586045162543971730000002723.000C2750000000024.1602007081120070903^^
    SIM3020070711^20070730Y^^^00
    CONTTNU946652840CN0579566   7335
    CTN100069350800012609166209.850.08068.5830.4838.10
    DTL520^01
    CTN200069350800012609173209.850.08068.5830.4838.10
    DTL520^01
    In the above message CTN row is repeating after each DTL because of which i am getting the error.
    <b>Conversion of file content to XML failed at position 0: java.lang.Exception: ERROR consistency check in recordset structure validation</b>
    Can somebody help me out in resolving this issue.
    Thanks in Advance,
    Arvind

    Hi Arvind
    plas use the following parametes in the sender communication channel.
    i have tried one scenario
    my source structure is like that:
    data  (0..unbounded)
      record (0..unbounded)
         key (1..1)
         fname (1..1)
         lname (1..1)
         age (1..1)
      detail  (0..unbounded)
        key (1..1)
        salary (1..1)
        empid (1..1)
    so use the following parameters at the sender side
    document name:                messge type name
    document namespace:       ur message type namespace
    Recordset name:               data(as per according to my source structure)
    RecordsetStructure:           record,,detail,
    recordsetsequence:           variable
    recordsetpermessage:       *
    keyfieldname:                   key
    and different parameters:
    RECORD.fieldSeparator     ,
    RECORD.fieldNames         KEY,FNAME,LNAME,AGE
    RECORD.keyFieldValue     1
    DETAIL.fieldSeparator         ,
    DETAIL.fieldNames             KEY,SALARY,EMPID
    DETAIL.fieldNames             2
    if you still have the problem pleas reply back.
    Thanks
    Rinku

  • Sender HTTP Adapter working intermittently

    HI ,
    My scenarios is HTTP->XI.>ECC,
    Sender HTTP Adapter is working intermittently some times data is not reaching to XI though it sent successfully from Source.
    We are unable to find the logs in XI where this data went.
    This interface is working fine in PI 7.1 and now in migration to PI 7.3 ( have Two application server dispatcher model) this interface is working intermittently .
    Please provide any inputs on this intermittent issue for sender HTTP adapter.
    Data sent successfully from source side and no message is received to XI MONI. Please guide me where can I check for the logs and error details

    Hi Krishna,
    If your PI is dual stack and you are not using the http_aae you can trace the http in the ABAP stack. Go to smicm transaction and set the trace level to 2 or 3.
    In Quality system you can talk with your sender client in order to prepare a set of requests in oder to find out if the requests are reaching to PI or not and what exception could be.
    hope this helps.
    Regards.

  • XI Mail Adapter: sending emails with attachment with help of java mapping

    Hi ,
    On trying out the scenerio mentioned in the blog, using the java mapping provided
    "XI Mail Adapter: An approach for sending emails with attachment with help of Java mapping
    The scenerio works just fine.
    But the payload as the content of the attachment is not getting generated in proper XML format.
    I suppose it's because of the replace special characters code part..
    Can anyone help me state the modification required in the code.
    Thanks!
    Regards,
    Faria Mithani

    It might be a codepage issue. Is your original payload UTF-8?

  • Sender Mail Adapter issue

    Hi All,
    We are getting this error in Sender Mail adapter.
    "exception caught during processing mail message; java.net.ConnectException: A remote host refused an attempted connect operation"
    It is a (Lotus Notes) Mail to File scenario.
    Used POP3, and gave the URL as POP:// ** .
    I have tried pinging the server and getting a good response.
    I have also tried the OS01 ans it returned a response : Program Terminated.
    I am not sure if the POP3 port is enabled.
    Are there any check points we are missing ?
    Please throw some light on this as we need to solve this asap ..
    Yashwanth
    Edited by: YashwanthSVK on Aug 2, 2011 7:18 PM

    Shabarish is right.
    This seem a connectivity issue. Try to ping Mail server from your PI System and check pop3 port.
    This document can be helpful for you:
    http://wiki.sdn.sap.com/wiki/display/XI/SMTPConfigurationinSAPXI

  • Mail to Mail Mapping Issue

    Hi,
    i am using mail package and XIPAYLOAD in my sender mail adapter.
    In the mapping i am getting the payload as an HTML Text.
    When use UDF to read a string the from the Mail Body, i am getting corect value, but when change the test data with only in that string place (if i put other value) from mail body, i am getting different value from same index of the position.
    Please let me know the reason and solution.
    Regards.
    Sreeni

    Hi,
    I replaced all the HTML tags and other stuff with empty space using UDF.
    thanks for your support.
    Regards,
    Sree

  • Issue with Sender Mail Adapter Configuration

    Hi All,
    We are PI 7.1.1 version. We are unable to see the following parameters in the sender Mail adapter:-
    Default XI Parameters : Default Interface Namespace and Default Interface Name.
    Also, we are geeting a Nullpoinetr exeception in RWB.
    Kindly provide your suggestions.
    Thanks & Regards,
    Navneeth K.

    Hi.
    I have faced the sane problem. My solution is to use DynamicConfigurationBean module:
    AF_Modules/DynamicConfigurationBean     Local Enterprise Bean
    with
    parameters:
    message.interface=<Your Interface Name>
    and
    message.interfaceNamespac=<Your Interface Namespace>
    Note that last parameter name is not interfaceNamespace but interfaceNamespac .
    It would be great if anyone will explane were Default XI parameters gone and how we can get them back.

  • Error when using Variable Transport Binding in Sender Mail Adapter

    Hi,
    I am using the Sender Mail Adapter to receive an email, convert the attached tab delimited text file into xml and map it to an IDOC.
    I am using PayloadSwapBean and MessageTransformBean in order to do this, and this all works perfectly.
    I am now trying to access the Adapter Specific Message Attributes to retrieve the SHeaderFROM attribute from the message and map it to a field in the idoc.
    However when I check the "Variable Transport Binding" option in the Advanced tab of the mail adapter, the message no longer goes through to SXMB_MONI and I get the following error in the Java logs.
    Transmitting the message to endpoint http://sapserver:53500/sap/xi/engine?type=entry using connection AFW failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: Received HTTP response code 500 : Error during parsing of SOAP header.
    Any ideas why this is happening?
    Thanks,
    Brad

    Hi Luciana,
    Honestly, I cant really remember how or if it was resolved and I was just helping out on the issue, but another consultant continued with it, so unfortunately I cant be any help on this.
    Good luck!
    Cheers,
    Brad

  • Security requirements on sender mail adapter

    I have set up a sender mail adapter to fetch the email with attachment from MS exchange mail server. The sender mail adapter can process the attachment well and convert it to XML format. Now I have a new requirement to determine if the email comes from a particular user. I can see the FROM field in the payload "MailMessage" But I don't know how to get the value of this field. Any idea on how to set up the message mapping? Thanks in advance.

    Before the sender mail adapter processes the attachment in the email, it need to determine the email is actaully from the business user not someone else on server. Cuz everyone can send email to the email address the mail adapter connects to, that is why this security issue comes from.
    Basically when you fetch a email with attachment, in Sxi_monitor, you can see two field in the payload, One is MailMessage and the other is MailAttachment-1. In the MailMessage, you can see all the emial header fields, such as From, To, Subject, Content etc. I need to check if the FROM field is email address we allowed. That is basic requirements. Let me knwo if you want me to explain it further.
    Edited by: Bai Li on Dec 23, 2010 6:02 AM

  • Problems with sender mail adapter

    Hi XI Gurus
    We have gone through a lot of blogs and searched a lot on the XI forum on how to configure the sender mail adapter with attachments but we still can't get it working at our site. Here are the issues -
    1. When we define our data type in the IR as let's say out_email_dt with namespace "http://www.xyz.com" the mapping fails. In the monitor(SXMB_MONI) the message from the sender mail adapter comes in like this -
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Request Message Mapping
      -->
    <xim:Mail xmlns:xim="http://sap.com/xi/XI/Mail/30" encoding="quoted-printable">
      <Subject>test 10</Subject>
      <From>"Test User" <[email protected]></From>
      <To>"XI Test Account" <[email protected]></To>
      <Content_Type>text/plain;charset="us-ascii"</Content_Type>
      <Date>2007-05-08T05:34:38Z</Date>
      <Message_ID><[email protected]></Message_ID>
      <Content>This is the voice of the Mysterons=0A</Content>
      </xim:Mail>
    Question 1 - do we have to define our data type as "Mail" under the namespace "http://sap.com/xi/XI/Mail/30".
    Question 2 - If you look at the content of  the <From>,<To>,<Message_ID> tags you will see that there is content with <> tags which is causing the message mapping to fail. Is there a way of telling XI that they are not xml tags but part of some other tags?
    2. Also the PayloadSwapBean doesn't seem to swap the payload to be the attachment.
    3. Can we use masks in the PayloadSwapBean for attachment names like "." as we don't know what the file name is going to be as we have multiple partners who will be sending emails to the same address and with different file formats.
    Thanks in advance.
    Salil

    Hi,
    >>>>Question 1 - do we have to define our data type as "Mail" under the namespace "http://sap.com/xi/XI/Mail/30".
    do exactly as shown in my blog:
    /people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address
    >>>>2. Also the PayloadSwapBean doesn't seem to swap the payload to be the attachment.
    do similarly as shown in my blog:
    /people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step
    the everything will work
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • How to send original filename as the attachment name through mail adapter?

    Hi,
    I have a File to Mail scenario where the file is picked up from a folder in R/3 system and is sent as an attachment through mail. The requirement is to send the file unconverted and with the same file name.
    When tried without creating any ESR objects, it was sending the file with the name Untitled.xml.
    Since the filename has to be picked dynamically, I am not able to configure it through module parameters also (where we can set it through Content_Disposition)
    I tried configuring it as mentioned in the following link: [http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=138084630]
    But still it is going as Untitled.xml with the whole mail package as the content of the attachment.
    Any pointers to solve this issue will be of great help.
    Thanks
    Justin

    there is no standard way so you will  have to write module beans.
    in other way:
    XI Mail Adapter: An approach for sending emails with attachment with help of Java mapping - XI Mail Adapter: An approach for sending emails with attachment with help of Java mapping
    Dynamic name in the mail attachment - pseudo "variable substitution" :
    XI: Dynamic name in the mail attachment - pseudo "variable substitution"
    Dynamic attachment name in receiver mail adapter

  • Sender "Mail" adapter - CSV file attachment

    Hi there
    I'm looking for some help in configuring a sender mail adapter that receives ".csv" files. I did read some blogs that mention using the "PayloadSwapBean" module to read the mail attachment instead of the mail content. My problem is to now convert the ".csv" file into a message. Is there a module that I can use ( is it the "MessageTransfomBean" ) and how. Any help would be appreciated.
    Thanks
    Salil

    Hi Salil,
    If you want to send a mail with a body and attachments, the message sender HAS to provide an XI message with attachments. I doubt a CSV file does justice.
    As Renjith said you need to convert CSV to XmL.
    A short description about the Standard Modules:
    MessageTransformationBean is a standard module used to apply the XSLT mapping to the adapter module by using <i>Transform.class</i> ( This xslt mapping is done to create a mail package, Dont confuse with the actual mapping in your case this is NOT for converting csv to xml).
    Also this module can be used to change the name and type of payloads by using <i>Transform.contentType</i>, <i>Transform.contentDisposition</i>, <i>Transform.contentDescription</i>.
    PayloadSwapbean is a standard module for replacing payloads with other payloads (SWAP)
    If you want to give each attachment a certain name use Parameters, <i>swap.keyname</i> for name of the payload and <i>swap.keyvalue</i>.
    I Hope the use of standard modules is understood.

Maybe you are looking for

  • My iPhone 4s isn't showing up as a device on iTunes!

    So I was trying to sync a new CD I got from the store onto my phone, and I put it into my iTunes library. When I plugged in my phone, it never showed up in iTunes. It popped up on Windows like normal, except this time, to view my files, it asked me o

  • How do I create a Dynamic PDF in ColdFusion

    I am using ColdFusion CS4 and I need to create a dynamic PDF certificate for the user when they finish a short test. Their name is in a session var and should dynamically enter in to the Name field of the certificate as well as the date. The user can

  • CDESK "Bill of Document is not update."

    Hello, The Bill of Documents (BOD) is not update when I make the checkin of an Assembly using the CDESK trough CAD integration ProE. Do I have to mark some parameter of CDESK_CUS so that happens? Regards Diogo Santos.

  • Can I use my ATT iPhone 4S with a French carrier?

    I am moving to France for a year and would really like to be able to use my iPhone 4S while I am there. Currently, my understanding is that I can simply take my iPhone to Orange when I get to France and have an Orange simcard put in my iPhone and the

  • Can a Function return a table ?

    I tried to define a function that should return a table but it seems impossible. Is it or not ? If not which is the correct syntax of CREATE FUNCTION ?