Mail adapter error in PI

Hi,
I have this following issue in File to Mail senario,
contains of the file should go to the microsoft outlook,
but when I go to RWB  Communication Channel Monitoring I am getting this error
Error as shown in mail receiving adapter in Runtime Workbench in PI -
failed to send mail: com.sap.aii.messaging.util.XMLScanException: expecting start tag: Mail, but found {}Mail at state 1
I have configured mail adapter with following parameters
Transport Protocol: SMTP
Msg protocol: XIPAYLOAD
Aapter Engine: Integration Server
Connection parameters for Mail server
URL: smtp://<IP address of the mail server>
Configure User Authentication: X (Check box is selected)
Authentication Method: Plain (from drop-down box)
Mail Attributes: X (Check box is selected)
Content Encoding: base64
I have also used namespace 'http://sap.com/xi/XI/Mail/30' and message type name 'Mail'  while configuring the receiver mail adapter.
Thanks.

Hi try using this xsd.
<?xml version="1.0" encoding="utf-8" ?>
<!--
SAP takes no position regarding the validity or scope of any intellectual property or
other rights that might be claimed to pertain to the implementation or use of the
technology described in this document or the extent to which any license under such
rights might or might not be available; neither does it represent that it has made any
effort to identify any such rights.
Copyright © SAP 2003-2004. All Rights Reserved.
This document and translations of it may be copied and furnished to others, and derivative
works that comment on or otherwise explain it or assist in its implementation may be
prepared, copied, published and distributed, in whole or in part, without restriction of
any kind, provided that the above copyright notice and this paragraph are included on all
such copies and derivative works. However, this document itself does not be modified in
any way, such as by removing the copyright notice or references to SAP.
This document and the information contained herein is provided on an u201CAS ISu201D
basis and SAP DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY
IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
-->
<xs:schema targetNamespace="http://sap.com/xi/XI/Mail/30"
  xmlns:xi="http://sap.com/xi/XI/Mail/30"
  xmlns:xs="http://www.w3.org/2001/XMLSchema">
<!--
Mail
  -->
  <xs:element name="Mail">
    <xs:annotation>
      <xs:documentation>Mail package for XI - Mail Adapter</xs:documentation>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="Subject" type="xs:string" minOccurs="0"/>
        <xs:element name="From" type="xs:string" minOccurs="0"/>
        <xs:element name="To" type="xs:string" minOccurs="0"/>
        <xs:element name="Reply_To" type="xs:string" minOccurs="0"/>
        <xs:element name="Content_Type" type="xs:string" minOccurs="0"/>
        <xs:element name="Date" type="xs:dateTime" minOccurs="0"/>
        <xs:element name="Message_ID" type="xs:string" minOccurs="0"/>
        <xs:element name="X_Mailer" type="xs:string" minOccurs="0"/>
        <xs:element name="Content" minOccurs="0">
          <xs:annotation>
            <xs:documentation>any type</xs:documentation>
          </xs:annotation>
        </xs:element>
      </xs:sequence>
      <xs:attribute name="encoding" type="xs:string"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="MailReceipt">
    <xs:annotation>
      <xs:documentation>Mail Receipt for XI - Mail Adaper</xs:documentation>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="Server" type="xs:string"/>
        <xs:element name="Format" type="xs:string"/>
        <xs:element name="UseMailPackage" type="xs:boolean"/>
        <xs:element name="Encoding" type="xs:string"/>
        <xs:element name="Subject" type="xs:string" minOccurs="0"/>
        <xs:element name="From" type="xs:dateTime" minOccurs="0"/>
        <xs:element name="To" type="xs:string" minOccurs="0"/>
        <xs:element name="Date" type="xs:dateTime" minOccurs="0"/>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
</xs:schema>

Similar Messages

  • Receiver  Mail adapter Error

    HI  All
       i    am doing   a   scenario     SFTP    to mail adapter,   i  am sending  a    file    to    SFTP ADAPTER  and   Mail adapter   send  the   mail  to    clint,   i am   using  java  mapping ,   i  have  checked  the message in    RWB  mesage  is    fail   in mail adapte,
       ERROR  :   Message processing failed. Cause: java.lang.Exception: java.io.IOException: server does not support PLAIN or LOGIN authentication
      anyone  suggest  me     soloution?

    Hi Pankaj,
    Remove your mail server user id and password and keep authentication mode as Plain and try in mail adapter configuration.
    You can try accessing ID from within IR via menu options or via a direct URL.
    Thanks,

  • Sender Mail Adapter Error: exception caught during processing mail message;

    HI , I am configuring mail to file scenario. Need to read mail content (no need to capture From,TO or Subject details) and create a file with the content in the mail.
    Need to read mails from microsoft outlook. Exchange server has been configured for POP3 protocol.
    Following are the details provoding in sender mail adapter:
    URL: provided url in the format: pop://<server name>
    Authentication method: plain
    provided user credinetions to access mails.
    poll interval - 1min
    content encoding none.
    processing parameters : quality of service-exactly once
    Since there is no need to capture From,TO or Subject details, didn't select the option - use mail package.
    Verified for unread mails in the mail box and made sure that there are few unread mails.
    Also, created data types and other components in IR and completed mapping.
    But after starting sender mail communication channel, getting error "exception caught during processing mail message; java.lang.NullPointerException" in RWB-adapter-communication channel monitoring.
    please let me know what needs to be done to resolve this error.
    Thanks.

    HI Stefan, i tried, but still it is giving same error. Yes, i am able to access outlook mail with the user credentials given in the communication channel to access exchange server.
    I am using message protocol: xipayload . Also since i dont have to capture TO,from,subject details., created data type just with one element of type string, not in the standard format .Does this makes any difference.

  • MAIL Adapter Error..........

    Hi all,
    I am getting an error in sender MAIL adapter configuration in communication channel monitering.
    "<b>exception caught during processing mail message; java.io.IOException: unexpected greeting response; read 220 tn6tdc00.wdf.sap.corp SAP 7.00(52) ESMTP service ready"</b>
    Can anybody tell me why this error is coming and how to resolve it.
    Thanks,
    Shiv Prashant Dixit

    Hi,
    Please check your URL what you used.. in MAIL Adapter configured  and port ,(SMTP Configurations..)
    See the following threads
    Mail-XI-file scenario
    Email Adapter Throwing Error
    Error during configuration of Sender Mail Adapter
    http://help.sap.com/saphelp_nw04/helpdata/en/ad/bf93409c663228e10000000a1550b0/frameset.htm
    Regards
    Chilla..

  • 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 error

    hi all,
    I am working on mail-mail scenario where in when i monitor my sender CC it is displaying following error:
    "exception caught during processing mail message; java.io.IOException: unexpected login response; read 001F BAD Protocol Error: "Invalid string supplied for user name".
    Please help me out in tracing the error as i am not able to trace it.
    Sender CC configurations are as follows
    >> Transport protocol - POP3.
    >> Message Protocol - XIALL
    >>URL - pop://pop.gmail.com
    >>User - [email protected]
    >>password - xxxxxx
    Thanks and Regards,
    Amit

    hi ramesh,
    I have changed user to amit.tsec and stopped and started the channel again and the job got scheduled and after the scheduling time it  shows following error :
    exception caught during processing mail message; java.net.ConnectException: Connection timed out: connect
    Please see if u have any idea on this error and can u give me the demo scenario on this sender mail adapter right from scratch i.e Data type.
    Thanks and Regards,
    Amit.

  • Receiver Mail Adapter Error ( Dynamic mail address to be used)

    Hi EveryBody,
    I am getting an error in the RWB (Communication Channel Monitoring) as Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: Error: invalid XIMailAdapter channel 'a089879fd0b63a4b92ca72d4a4af2ec4'.Mail is not send to the receiver.I have tried using USE MAIL PACKAGE as base64 and NONE.
    Can somebody help me out in the configuration.

    Hi,
    have u refered the below weblog of michal:
    Mail Adapter (XI) - how to implement dynamic mail address
    /people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address
    Thnx
    Chirag gohil.

  • Receiver mail adapter error -mail not going to other domain users

    in xi this error is coming in mail adapter -
    Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: java.io.IOException: server not responding OK to MAIL FROM;  Domain of sender address XXXat d rate of XX.XX.com does not resolve
    any resolution.upto yday everything was working fine.i crosschecked scot settings they r ok.

    Hii,
    In SXMB_MONI , its showing successful.
    In RWB , its showing error
    Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: java.io.IOException: server not responding OK to MAIL FROM;  Domain of sender address XXXX does not resolve.
    I checked mail id is perfect and settings r ok.
    Pls let me know wat else we can check and rectify it.

  • Mail adapter error: Unsupported protocol: linsmtp [null "null"]

    Hi,
    Idoc to Mail adapter. First time working with mail adapter.
    When I tried to send messages from transaction "SO00", i'm able to receive the mail which means the connection is fine from XI to mail server.
    But when I try to send the file using mail adapter, it is failing in adapter engine with the error below.
    Success Mail: calling the adpter for processing
    Error Mail: call failed; com.sap.aii.messaging.srt.BubbleException: Unsupported protocol: linsmtp [null "null"]
    Success Mail: sending a delivery error ack ...
    Success Mail: sent a delivery error ack
    Error Mail: error occured: com.sap.aii.af.ra.ms.api.RecoverableException: com.sap.aii.messaging.srt.BubbleException: Unsupported protocol: linsmtp [null "null"]
    Error MP: Exception caught with cause com.sap.aii.af.ra.ms.api.RecoverableException: com.sap.aii.messaging.srt.BubbleException: Unsupported protocol: linsmtp [null "null"]
    2010-11-12 14:12:02 Error Exception caught by adapter framework: com.sap.aii.messaging.srt.BubbleException: Unsupported protocol: linsmtp [null "null"]
    2010-11-12 14:12:02 Error Delivery of the message to the application using connection Mail_http://sap.com/xi/XI/System failed, due to: com.sap.aii.af.ra.ms.api.RecoverableException: com.sap.aii.messaging.srt.BubbleException: Unsupported protocol: linsmtp [null "null"].
    Checked SMICM -- GOTO-->Services --> SMTP is active with green tick.
    Receiver adapter:
    Transport Protocol = SMTP
    Message Protocol = XIPAYLOAD or XI ALL
    URL = SMTP:linsmtp.sap.com
    Not using User Authentication
    User/ Password given - No userid/pwd
    From, To = mail id
    Content Encoding = try with none or base64*
    Is there any setting which I need to do? how to connect and send message to mail server?
    Thanks
    Deepthi.

    Hi,
    My connection is working now when I downloaded the xsd and executed in the mapping as described in the blog.
    /people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address
    Connection is working fine now, but im getting the below payload.
      <?xml version="1.0" encoding="UTF-8" ?>
    - <ns1:Mail xmlns:ns1="http://sap.com/xi/XI/Mail/30">
      <Subject>TESTING</Subject>
      <From>deepthi at testing.com</From>
      <To>deepthi at testing.com</To>
      <Content>Testing purpose</Content>
      </ns1:Mail>
    The question is how to get my actual message which looks like below. this is the Idoc to file map and the resultant output file looks like below
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:order xmlns:ns0="http://testing/xi/OrderProcessing">
         <document_type>ZU</document_type>
         <vendor_number>200000</vendor_number>
         <vendor_email_address/>
         <vendor_address_line_1>XXXXXX</vendor_address_line_1>
         <vendor_address_line_2>XXXXXXXXX</vendor_address_line_2>
         <vendor_address_line_3>123242343244566</vendor_address_line_3>
         <vendor_address_line_4>US</vendor_address_line_4>
         <delivery_address_line_1>1433</delivery_address_line_1>
         <delivery_address_line_2>test</delivery_address_line_2>
    </ns0:order>
    How to send this file as email attachment using mail adapter. Do I need to use 2 maps?
    looks like Mail adapter is working only when we use the xsd which is given above and by providing the required details.
    Kindly help me if anyone worked on mail adapters.
    Thanks
    Deepthi,

  • Receiver Mail adapter errors

    I am trying to configure a receiver mail adapter..
    Our system is using microsoft exchange server and i specified the following,
    URL: Microsoft Exchange Server
    and I get the following exception in Adapter monitoring,
    Mail: error occured: com.sap.aii.af.mp.module.ModuleException
    Has anybody encountered this error and if so how should this be resolved?

    Hi
    <i>>>Our system is using microsoft exchange server</i>
    Ok ur company is using Microsoft Exchange Server, then r u sure the name of ur server is also Microsoft Exchange Server becoz in our company we hav a specific name of our Microsoft Exchange Server.
    <i>>>URL: Microsoft Exchange Server</i>
    The URL shd b something like this
    <b>URL</b>: smtp://<b>name of Microsoft Exchange Server</b>
    Hope it helps.
    Regards
    Arpit Seth

  • Mail Adapter Error occured in Adapter Monitoring....

    Hi
    I have done the Mail>XI>File senario.... the xi server is sometimes its picking up the mails but some times its not picking... i have give trasport protocol as IMAP4 and url as pop://ipaddress.... I have created the asyncronus message types...n i have given the quality service as Exactly Once... when ever the server is picking file from mail inbox its sending file to the destination directory successfully but in destination side i am getting only the complex tags like the following
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:File_Message_Type xmlns:ns0="http://mailtofiledemo.com/ravi"></ns0:File_Message_Type>
    i am not getting any nodes inside those tags.... In adapter monitoring i am getting the following error:
    error occured: [2006-06-05T05:44:06Z] 0 new messages found; no action takenexception caught during processing mail message; com.sap.aii.af.mp.module.ModuleException caused by: com.sap.aii.af.ra.ms.api.DeliveryException: XIServer:NO_RECEIVER_CASE_BE:
    I am using SquirrelMail(webmail) server... so please help me...
    I have tried with pop3 alos but its not working
    Thanks & Regards
    Ravi Shankar B
    Message was edited by: RaviShankar B

    Hi,
    Try giving POP3.
    and correct address.. pop3://etc... Remember to give the name of the folder from where the message have to be picked.
    Regards
    Suraj
    Message was edited by: S.R.Suraj

  • Sender mail adapter Error - UnknownHostException: hostname

    Dear All Gurus,
    PI Version : 7.31
    Scenario : Mail to File
    Below is the sender communication channel configured.
    But in the Communication Channel Monitoring ( Runtime Workbench) I'm getting below error
    exception caught during processing mail message; java.net.ConnectException: A remote host did not respond within the timeout period.

    Hi Mkhail,
    Thank you..
    I have setup according to that...and BASIS confirmed that they are  able to telnet with port 25. It was showing connected
    Now I'm getting
    exception caught during processing mail message; java.io.IOException: unexpected greeting response; read 220 ARALIYA.hayleys.net Microsoft ESMTP MAIL Service ready at Wed, 23 Apr 2014 14:11:33 +0530

  • Error in Mail Adapter Monitor......

    Hi....
    I have done the mail adapter and i got following error in Adapter Monitor(Mail Adapter)
    error occured: [2006-05-31T05:53:34Z] 0 new messages found; no action takenexception caught during processing mail message; com.sap.aii.af.mp.module.ModuleException caused by: com.sap.aii.af.ra.ms.api.DeliveryException: XIServer:NO_RECEIVER_CASE_BE:
    how to recover this....
    I am using pop3 mail server
    Thanks & regards
    Ravi Shankar B

    hi,
    check if you don't have quality of service <b>Best Effort - BE</b> in your mail sender channel
    if so change it to <b>EO - Exactly Once</b>
    and activate and your channel once more 
    this setting will eliminate:
    NO_RECEIVER_CASE_BE error
    change this setting and let me know if it worked
    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>

  • Sender mail Adapter - Log in Error

    Hi,
    I am facing the below error while communicating with the mail server using the POP3 transport protocol.
    exception caught during processing mail message; java.io.IOException: unexpected password response; read -ERR Logon failure: unknown user name or bad password.
    Confimed with  the mail server administrator there is no issue with log in credentials.
    We are able to access the mail box using the same user ID & password through webservice URL. But if we use the same User ID & password in communication channel it is showing the above error.
    Any one have the idea about other possibilities to get this error?
    Thanks & regards,
    Krishna

    Hi Vijay,
    It is POP3 protocol setup. We are able to login using webservise URL. But not able to log in with Mail adapter.
    Regards,
    Krishna

  • 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

Maybe you are looking for

  • GR/IR for value 0.

    Hello, Can anyone please help me with the following process. I create a PO with two lines, line 10  qty 5 price for line is  20 USD line 20  qty 5 price for line is  20 USD, return item is flagged. I perform GR (101) for line 10 and GI (161) for line

  • SD( SAP ABAP )

    Please provide a report for list of invoices using tables VBAP, VBAK, VBRK, VBRP in which at the selection screen we enter values for sales order document no. and billing document no.

  • Is there a utility I can use to allow the public to post videos and/or comments to a web page.

    Something similar to Youtube.

  • SUS Configs...

    Hi all, Iam totally new to SUS. The XI settings is done. I wanted to know what all we have to set from SUS side to send a PO from MM. I read the buss.config guide, but certain things i was not clear. In the SXMB_moni iam able to see that the tranfer

  • Screen appears dimmer after waking from sleep

    Hi Recently, I've noticed the brightness of the 24" screen is dimmer after waking from sleep, regardless of the brightness setting in the Display preferences. If I restart the computer, the regular brightness returns. Curious if anyone else is seeing