cancel
Showing results for 
Search instead for 
Did you mean: 

Problem processing Email attachment when Body text exists

Former Member
0 Kudos

Using an Email communication channel (POP3) we are successfully processing emails with an attachment of type csv or xml.

These attachments are swapped with the Payload message then sent into an IP for processing.

The IP splits the inbound message into multiple messages (1:n) and feeds them individually into a “For Each Block” where we perform a transformation then a send to a JDBC adapter.

Everything works well until someone enters text into the body of the email. Then we end up with an error.

Error handling for work item 000000102646

Work item 000000102648: Object CL_SWF_XI_MSG_BROKER method SEND_SYNCHRON cannot be executed

An exception with the type CX_SY_REF_IS_INITIAL occurred, but was neither handled locally, nor d

An exception with the type CX_SY_REF_IS_INITIAL occurred, but was neither handled locally, nor d

When body text is encountered we end up with two payloads:

1. Main Document (application/xml)

2. Mail Message (multipart/alternative boundary..)

We are currently at XI 3.0 Service 17 (SAPKB64017)

The mail channel for the XML attachment is configured with the following Modules:

• localejbs/AF_Modules/PayloadSwapBean LEB

o swap.keyName Content-Description

o swap.keyValue MailAttachment-1

• ASMA with Variable Transport Binding has been selected

• Mail attributes (only keep attachments was selected)

• Message Protocol XIPAYLOAD

• Transport Protocol POP3

The mail channel for the CSV attachment is set up the same except it has an additional module specification for localejbs/AF_Modules/MessageTransformBean to generate an XML document from a csv attachment.

Has anybody had the same experience? Or suggestions?

Accepted Solutions (0)

Answers (1)

Answers (1)

henrique_pinto
Active Contributor
0 Kudos

Maybe the error is related to the fact that the payload is not a valid XML.

Try to send some text in body like "<test><data>abcd</data></test>" just to see if the same error occurs.

Regards,

Henrique.

Former Member
0 Kudos

We sent a message with body text as you suggested with the same results. I have noticed that the MailMessage is not the attachment as expected but the multipart message information and that the reference to the attachment is no longer showing up.