Skip to Content
avatar image
Former Member

Mail to Proxy scenario with attachment. AF channel error.

Hi,

We are running SAP PI 7.1. I am experiencing the following problem in a Sender Mail adapter.(POP3).Mail to Proxy Scenario.

I have configured a sender mail adapter channel as POP3. This channel is configured to use the Mail Package and to Keep attachments. When I send a mail with an attachment to the mailbox that is being monitored by this channel, then the channel collects it from the mailbox.

In channel monitoring it indicates that the message was successfully delivered. However when I click on the message ID the view the audit Log it gives an error: u201CTransmitting the message to endpoint http://HOSTNAME:8101/sap/xi/engine?type=entry using connection AFW failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: Error transmitting the message over HTTP. Reason: java.io.IOException: Error writing to server.u201D The message never arrives at the integration sever to be view in sxmb_moni.

Also when I sent a message without an attachment the message does go through. Or if I send a message with a text attachment the the message goes through, but not the attachment.

Any help would be most welcome.

Regards

Willie Hugo

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Oct 13, 2008 at 08:30 AM

    Hi,

    The problem is still persisting. I have however found that if I do not chose an Operation/Interface mapping in Configuration (Integration Directory) then the payload of the mail message is just passed through as can be expected, but then the attachment is also passed to the receiving interface. Once you add the Operation/Interface mapping then the attachment is not passed.

    Please can you assist me in the resolution of this problem?

    Regards

    Willie Hugo

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      This was a bug (additional attachments were not getting copied in certain circumstances) and is now fixed and available as a patch in the service market place for SP5, SP6, 7.1.1

  • avatar image
    Former Member
    Oct 04, 2008 at 02:10 AM

    Hi Willem

    Check for the permissions and attachment size for this scenario. This can resist the adapter to bring in the data.

    Thanks

    Gaurav

    Add comment
    10|10000 characters needed characters exceeded

  • Mar 02, 2009 at 01:12 PM

    Hi Willem,

    I'm coming back to your original problem: "com.sap.engine.interfaces.messaging.api.exception.MessagingException: Error transmitting the message over HTTP. Reason: java.io.IOException: Error writing to server.u201D

    Actually I had the same problem here and found a solution for it. In this case it was a file to Proxy scenario. The file send was large. After structure conversion the file size was more then 100 MB as indicated in the Audit Log of the message "2009-03-02 09:27:06 Information Send binary file "<File_Name>" from ftp server "<ftpuser>", size 106706248 bytes with QoS EO.

    The ICM restricts all HTTP requests larger then 102 MB via the parameter icm/HTTP/max_request_size_KB which has a default value of 102400 (100 MB). Therefore it rejects the requests and your error is thrown.

    There are two ways of avoiding this:

    1) Increase the parameter:

    Increasing the parameter implies a risk since large messages can overload the system (e.g. during the mapping). Therefore it is good to have these safety measurement in place.

    2) Split the request:

    Depending on the scenario it might be possible to split the request to restrict the max. number of records for a given file. This is the prefered option because it ensures better stability of the system and also better performance.

    I think this situation applies to you as well - but I'm not sure since you did not specify the request size and the size of the attachement.

    Best regards,

    Mike

    Add comment
    10|10000 characters needed characters exceeded