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

Similar Messages

  • Is this legit?             Confirm your email address  Dear Email Users,  As part of our security measures, we regularly screen activity in the E-mail system and after noticing an issue on your account password, we are requesting confirmation from you for

      Is this legit?
       Apple Support Team <applsupporteam @icloud.com>
           Confirm your email address
    Dear Email Users,
    As part of our security measures, we regularly screen activity in the E-mail system
    and after noticing an issue on your account password, we are requesting confirmation
    from you for the following reason:
    Our system requires further password verification.
    In accordance with E-mailUser Agreement, your account access will remain limited
    until the issue has been resolved. Unfortunately, if access to your account remains
    limited for an extended period of time, it may result in further limitations or
    eventual account closure.
    To verify your E-mail account, you must reply to this email
    immediately and enter your following
    information.
    First Name:
    Last Name:
    Email Username :
    Email Password :
    Thank you for using webmail
    Icloud. com support team
    <Edited By Host>

    Apple requests that you forward these types of emails to them as follows (from http://support.apple.com/kb/HT4933):
    If you receive a suspicious email, select the message text so that it is highlighted. Choose Forward as Attachmentfrom the Message menu (OS X Mail) or the Actions menu (Outlook). Send the email to [email protected] This provides Apple's legal department and law enforcement with useful information to help prevent future phishing emails.

  • 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

  • Receiver Module Configuration Issue

    Hi All,
    I have done the following Module Configuration in Receiver JMS Adapter, but facing issue in the Length of the Flat File received in JMS.
    it is having only 512 characters, i got clue that is because of   localejbs/SAP XI JMS Adapter/ConvertMessageToBinary.
    Binary can accept only 512 characters.
    I  need convert the message to TEXT. Please help me on this.
    Processing Sequence
    1                  localejbs/AF_Modules/MessageTransformBean            Local Enterprise Bean                          XML2Plain
    2                  localejbs/SAP XI JMS Adapter/ConvertMessageToBinary   Local Enterprise Bean                          convert_XI2Bin
    3                  localejbs/SAP XI JMS Adapter/SendBinarytoXIJMSService  Local Enterprise Bean     exit
    Module Configuration.
    XML2Plain     Transform.Class     com.sap.aii.messaging.adapter.Conversion
    XML2Plain     Transform.ContentType     text/plain;charset=utf-8
    XML2Plain     xml.addHeaderLine     0
    XML2Plain     xml.conversionType     SimpleXML2Plain
    XML2Plain     xml.endSeparator     'nl'
    XML2Plain     xml.fieldFixedLengths     10,15,10,10,15,13,13,13,15,2,30,1,10,10,10,10,8,10,10,10,8,11,11,3,3,1,1,15,10,15,1,30,15,15,10,8,15,10,10,15,15,4,8,1,2,8,35,11,10,10
    XML2Plain     xml.fixedLengthTooShortHandling     Cut
    exit     JMSMessageType     Text
    Regards,
    R.Ragu

    Hi Ragu,
    Can you please elaborate on this issue a bit more...?
    The Module Configuration looks fine to me.....
    Thanks
    Dhwani

  • Dynamic attachment name with receiver mail adapter and use mail package

    We need to send mapped XML payload as attachment (with dynamic name) to a recepient (recepient email id is part of input xml payload, but not part of the mapped XML payload).
    I could probably do this using the adapter module (as per the following link),
    http://wiki.sdn.sap.com/wiki/display/XI/Adapter%20Module%20PI%207.0%20Set%20Attachment%20Name?bc=true
    I would like to explore if this would be feasible using Mail package and XI payload.I already have a Java mapping that is converting the input XML to required Output format. If I am using Mail package (XI Payload), how do I go about sending this Output XML from java mapping as attachment to email id available in the input payload?

    Hi,
    1) XML payload as attachment (with dynamic name)
    2) recipient (recipient email id is part of input xml payload, but not part of the mapped XML payload)
    These two is possible by using Mail Package. You have a standard xsd for mail package which you can download from the SAP Note 748024.
    The xml created in you java mapping which will be your attachment should be put into the <content> tag of the mail package xml structure. and the file name can be set in the <Content_Type> tag.
    <?xml version="1.0"; encoding="UTF-8"?>
    <p2:Mail xmlns:p2="http://sap.com/xi/XI/Mail/30">
    <Subject>My Invoice</Subject>
    <From>from email address<;/From>
    <To>to email address</To>
    <Content_Type>text/plain;name="MyFile.csv";</Content_Type>  --> file name here
    <Content>123;A49;aaa</Content>   -> attachment xml here
    </p2:Mail>
    And you have to select MailPackage in the receiver mail adapter.
    Regards,
    Aravind

  • Does Sender Mail Adapter support "PayloadZipBean" module

    Hi everyone,
    I have a scenario where, I get the email with an zip file as an attachment and I need to extract this file and send across. There is no mapping transformation done here, only I need to forward the attached file to the file server.
    Zip file always contains 1 file and is a text file.
    so Its an Email to File Scenario.
    Can I send the zip file as it is without unzipping i.e., send the attachment as iit is to the file server?
    If I want to unzip the file, does the module "PayloadZipBean" support in case of sender mail adapter. ?
    Thanks,
    Varun

    Hi Varun,
    Use "PayloadZipBean " Module at Receiver Communication Channel  in the Module Tab Set the "Module Key.mode =  unzip"
    and Receiver communication Channel file should be "FileName.txt".
    http://help.sap.com/saphelp_nw2004s/helpdata/en/bd/c91241c738f423e10000000a155106/frameset.htm
    Regards,
    Naga.

  • Mail Adapter and File content conversion.

    I have a scenario to send data from SAP to 4 different boards. I have used a Multi mapping for this scenario. I am using Proxy for SAP to xi and SOAP, File and Mail adapter for the external connections.
    Questions:
    1) I need to send a mail in CSV or Excell format in one scenario. I have used AF_StrictXml2Plain Module but its not working? any thoughts?
    2) In the file adapter I have to add the YYYYMMDD (current Date) to the file name? when I use timestamp i get the time too, any way of getting only date? I cant use the Variable substitution as i dont have date in my payload.
    3) Receiver File content conversion:
    My Message Type Looks like this
    MT_XX_XX
         Row
            title
            xxx
    I have used these parameters:
    Recordset Structure:  Row
    Row.addHeaderLine : 0
    Row.fieldSeparator : ,
    Row.endSeparator: 'nl'
    am I doing something worng, the file content conversion doesnt work.
    Please let me know
    Thanks in advance

    Hi,
    Make sure u are using the bean before the mail adapter bean.
    Before using the file content conversion make sure that there are no substructures in it , in order to use addheader line as 0. else use addheaderline 3 and give the headerline as comma seperated values
    for e.g if this is the type then addheader line= 0
    Type 1  :
    Record_Mt
         Row
             field1
             field2
    else if this the type then addheaderline = 3
    *Type 2: *
    Record_Mt
         Row1
             field1
             field2
         Row2
             field1
             field2
    add module like this
    localejbs/sap.com/AF_Modules/StrictXml2PlainBean
    with the module key e.g. key
    for type 1 struct (as above )add parameter- key as singleRecordType  and value as Row with comma seperated value. (remember header line is 0)
    for type 2 structure (as above )add parameter- key as recordTypes  and value as Row1, Row2 with comma seperated value. (remember header line is 3)

  • Receive CSV attachment via Mail Adapter and process into ABAP proxy

    Hi,
    I have the following scenario:
    1. Receive e-mail with CSV attachment
    2. Process through Mail adapter (KeepAttachments = Yes in order to retain the CSV attachment)
    3. Receive into ABAP proxy (with CSV attachment)
    The next step is to read the attachment in the ABAP proxy and process the CSV attachment data into CRM.
    The CSV attachment contains the data I wish to process - the body of the e-mail will not contain this information.
    The problem I have is reading the attachment data in the proxy - not sure of the methods/class to call - anyone got any ideas ?
    Another question is this the best way to do this and process the CSV attachment data ?
    I know I could use the PayloadSwapBean to switch the payload to the attachment but then I am stumped with how the attachment is processed through PI 7.1 - how do you transform the CSV format payload into XML so PI will be able to process it through mapping.
    Either option is viable - an answer to either question would be great.
    1. How do you read the attachment data in an inbound ABAP proxy ?
    2. How do you transform the CSV attachment data after the PayloadSwapBean from CSV to XML ?
    Kind regards
    Colin.

    Hi Colin
    As you are not interested in processing the body of email. Swap the payload to the attachment using the PayloadSwapBean
    Change the content from CSV to XML using MessageTransformBean. Now pass this information to Proxy. You dont need to deal with attachments in proxy.
    It is not possible to read attachment in server proxy because the class and interface you create will not have data type which can refer to an attachment processing interface in ABAP.
    Thanks
    Gaurav

  • Mail adapter and XMLAnonymizerBean

    Hello everybody!
    We are using Mail Adapter  to send XML files to our clients. We are using XMLAnonymizerBean (localejbs/AF_Modules/XMLAnonymizerBean) to remove some namespaces and prefixes.
    We have defined:
    anonymizer.acceptNamespaces http://ns1.mycompany.com ns1
    anonymizer.quote "
    After module execution the " (quotes) are removed from the XML and ' (apostrophe) are used in their place
    Are we doing something wrong?
    Thanks in advance
    Julio

    >
    Julio Cesar Torelli wrote:
    > We have defined:
    > anonymizer.acceptNamespaces http://ns1.mycompany.com ns1
    > anonymizer.quote "
    1. try to provide anonymizer.quote " before anonymizer.acceptNamespaces
    2. make sure there are no whitespaces in the parameter listing. even a single whitespace can cause problem.

  • Mail adapter and UTF-7 encoded messages

    Hi,
    a customer of us wants to know if it is possible to receive UTF-7 encoded messages using the Mail adapter.
    Is there a configurable parameter to do this? Or is the only solution to change the Mail adapter code. If so are there examples available?
    Thanks!

    Tamil,
    The best thing would be create alerts for both the mapping and adapter alerts. If there is any mapping failure then an email will be send to you. With adapter alerts if there any errors on adapters it will send you a mail. You dont need a fault message for it.
    Check this weblogs for creating alerts:
    /people/michal.krawczyk2/blog/2005/09/09/xi-alerts--step-by-step
    /people/michal.krawczyk2/blog/2005/09/09/xi-alerts--troubleshooting-guide
    ---Satish

  • Profit cebter and copany code configuration issue

    i am making one sales order in which the item number level when i put profit center GB03100004 earlier i was getting company
    code in profit segment as GB03, but now i am getting as GB01.
    is this related to any configuration issue, please let me know.

    Hi,
    Goto the T.Code KE53.
    Enter the Controlling area.
    Enter the profit centre.
    Click on Company Codes.
    Check for which company code the field "Assigned" is ticked.
    Please check with your FICO consultant for more information and modifications.
    Regards,
    Krishna.

  • Mail adapter and fault msg

    hai
         in case of error messages while mapping , how it can be captured and how it can be send through mail adapter .
        whether we can use fault msg for the above requirement. what is the use of fault messages?

    Tamil,
    The best thing would be create alerts for both the mapping and adapter alerts. If there is any mapping failure then an email will be send to you. With adapter alerts if there any errors on adapters it will send you a mail. You dont need a fault message for it.
    Check this weblogs for creating alerts:
    /people/michal.krawczyk2/blog/2005/09/09/xi-alerts--step-by-step
    /people/michal.krawczyk2/blog/2005/09/09/xi-alerts--troubleshooting-guide
    ---Satish

  • Mail.App and wifi intermittent SMTP issues

    We're having a strange mail sending problem with our PowerBooks. When hooked up to wifi in either of our offices, Mail.App intermittently stops sending mail. It prompts you to try another SMTP account which also fails. At this point, you can still browse the web and receive mail no probs. Then if you plug an Ethernet cable in it starts sending again straight away. You can then pull the Ethernet cable back out and it will continue to send messages over wireless for a while. Some of our staff using Thunderbird don't have this problem. The PowerBooks are running 10.4.7 (though we've had this issue since the day we bought them at about 10.4.2).
    I've found these threads which describe the same problem:
    http://forums.macnn.com/archive/index.php/t-208373.html
    http://macosx.com/forums/showthread.php?t=264759
    http://lists.apple.com/archives/macos-x-server/2005/Jun/msg01475.html
    http://www.deadmime.org/~dank/blog/archives/2003/09/index.html
    Because other parts of the net (and receiving through Mail.app) still work, it's hard to fault the hardware. Add to this we have different APs in these offices. Since it's intermittent, it's not likely to be a hardware setup issue. We've looked at the firewall log in both offices and checked the mail log, and nothing is being blocked.
    Anyone seen this before?
    Xserve G5, PowerBook 15" G4 Mac OS X (10.4.7)
    Xserve G5 Mac OS X (10.4.2)
    Xserve G5   Mac OS X (10.4.2)  

    My bad, was a combination of several things clouding my vision. Just had the SMTPS port (465) blocked on the firewall. Would help if Apple firewall would use the standard SMTPS port in their firewall list instead of their own SMTPS port (5xx).

  • File Adapter and "permanent" module exceptions

    Hi folks,
    We have written a custom module for the file adapter which works fine .. In case of issues it will throw the standard "ModuleException".
    The file adapter is configured to move erroneous files to a specific directory .. The SAP help specifically mentions that this happens when a "permanent" exception occured ...  I quote the guide: "A permanent error occurs either during the conversion of the file content, or in a module in the module processor"
    So in case of an exception in the module processor this should work ... unfortunately it doesn't ...
    Our module throws an exception but the file is not moved and the adapter keeps on retrying to process the faulty file ...
    Anyone faced the same problem ?  Anyone any suggestion on how it should work ?
    Thanks,
    Steven

    Hi,
    When an error occurs, a module must raise a module exception.
    ModuleException can contain an exception that describes the cause of the error. To provide hints about resolving the error, the error cause is written to the trace.
    To process the message again, you do not need to set a special exception.
    In the case of receiver adapters, the messaging service for the adapter framework processes the message again. The conditions for this are set in the communication channel monitor.
    In the case of sender adapters, you must decide in the adapter implementation whether processing the message again makes sense.
    You can revert back for further queries.
    Reward if satisfied.
    Regards,
    Sushama

  • Database Adapter and SQL Server procedure issue

    Hello,
    I am using Jdev 11.1.1.7.0 and SQL Server 2005.
    In the Database Adapter configuration wizard, Specify Stored Procedure step, I choose the “GEACupax” schema and got the following error after a click on “Procedure Browse” button:
    com.microsoft.sqlserver.jdbc.SQLServerException: Invalid object name 'GEACUPAX.INFORMATION_SCHEMA.SCHEMATA'.
    The command Database Adapter tried to execute was:
    (from jdev log:) select schema_name from GEACUPAX.INFORMATION_SCHEMA.SCHEMATA order by schema_name;
    Note, the schema name has changed to uppercase. I think that is the problem. If I try this query in SQLDeveloper, it returns the same error. I can fix it changing the schema name to “GEACupax”. The case matters.
    Any ideas?
    Leandro.

    Vijay,
    Thanks for you reply.
    I figure out a related bug:
    Bug 12859472: Cannot browse store procedure in case-sensitive MS SQL Database
    There are two possible workarounds:
    1. Use a database name with capital letters
    2. Do not use stored procedures, but access the tables directly.
    The notes on the Bug ticket describes that the issue would be scheduled to be fixed in PS7 which is 11.1.1.8.
    Cheers!
    Leandro.

Maybe you are looking for

  • Still tries to send me imessage when my data is off

    Hey everyone I'm really new to the iphone and there's something that I'm trying to understand. I have imessage activated all the time, but I turn my wifi/cellular off and on all the time throughout the day. My girlfriend keeps her cellular on all the

  • TS3988 My ipad don't sync with other devices

    My ipad don't sync with other devices. It works in my iPhone, IMac. At iCloud web page is ok also, but not in my IPad. The settings are the same in both my IPhone and my IPad.

  • I cannot save in Editor.... error message = program error preview cannot be generated.

    I cannot save changes in Editor when I work with a picture. Could not build a preview because of a program error.

  • Get sequence start from Transmit API

    I'm using the Transmit API to get the timecode of the sequence as it plays. I'm using the inTime and working out the number of seconds from the ticks. This gets the number of seconds from the start, which is fine if the sequence begins at 00:00:00:00

  • Essbase Studio deployment errors

    I am getting the following error message when I try to deploy a BSO cube: \\Record #40 - Error adding Dynamic calc property to member xxxxxxxxx (3320) \\Record #40 - No time dimension defined I have a TIME dimension which is assigned to TIME property