cancel
Showing results for 
Search instead for 
Did you mean: 

Attachments deleted during message mapping in PI 7.1

Former Member
0 Kudos

We have upgraded our SAP XI 3.0 SP 22 system to SAP PI 7.1 SP06. In XI 3.0 we created some message mappings that mapped an XML payload with attachments to another message type. The attachments would still exist after the mapping step. In SAP PI 7.1 we now see that attachements are deleted from the message. We cannot see why this is happening. We have tried to set the 3 new option in the operation mappings without any results. The attachements are still being deleted.

Active Options in operation mappings:

Use SAPXMLToolkit = true

Do Not Resolve XOP includes = false

Read Attachements = false

In the SXMB_MONI we can see that the attachements are deleted after the Request Message Mapping step. It is a simple proxy-to-proxy scenario with interface and message mapping.

<Trace level="1" type="B" name="CL_MAPPING_XMS_PLSRV3-ENTER_PLSRV">

<Trace level="2" type="T">......attachment XI_Context not found</Trace>

<Trace level="3" type="T">Mapping already defined in interface determination</Trace>

<Trace level="3" type="T">Object ID of Interface Mapping 46842937562139BCA3F2AC1F36E729FE</Trace>

<Trace level="3" type="T">Version ID of Interface Mapping 5D945F00B00611DDB04FF8CF0A5B0156</Trace>

<Trace level="1" type="T">Interface Mapping urn:kadaster-nl:SERV:ZA:KAD:DOVO im_mail_to_dms</Trace>

<Trace level="3" type="T">Mapping Steps 1 JAVA com/sap/xi/tf/_mm_mail_to_dms_</Trace>

<Trace level="3" type="T">MTOM Attachments are Transferred to the Payload</Trace>

<Trace level="3" type="T">Dynamic Configuration Is Empty</Trace>

<Trace level="2" type="T">Mode 0</Trace>

<Trace level="3" type="T">Search com/sap/xi/tf/_mm_mail_to_dms_.class (urn:kadaster-nl:SERV:ZA:KAD:DOVO, -1) in swcv 5d945f00-b006-11dd-b04f-f8cf0a5b0156.</Trace>

<Trace level="2" type="T">Loaded class com.sap.xi.tf._mm_mail_to_dms_</Trace>

<Trace level="3" type="T">Search com/sap/xi/tf/_mm_mail_to_dms_$MT$InnerLibsList.class (urn:kadaster-nl:SERV:ZA:KAD:DOVO, -1) in swcv 5d945f00-b006-11dd-b04f-f8cf0a5b0156.</Trace>

<Trace level="2" type="T">Loaded class com.sap.xi.tf._mm_mail_to_dms_$MT$InnerLibsList</Trace>

<Trace level="3" type="T">Search com/sap/xi/tf/_mm_mail_to_dms_$MT$InnerParamsList.class (urn:kadaster-nl:SERV:ZA:KAD:DOVO, -1) in swcv 5d945f00-b006-11dd-b04f-f8cf0a5b0156.</Trace>

<Trace level="2" type="T">Loaded class com.sap.xi.tf._mm_mail_to_dms_$MT$InnerParamsList</Trace>

<Trace level="2" type="T">Call method execute of the application Java mapping com.sap.xi.tf._mm_mail_to_dms_</Trace>

<Trace level="1" type="T">*** START APPLICATION TRACE ***</Trace>

<Trace level="3" type="T">Document start</Trace>

<Trace level="3" type="T">Start tag [ns1:OpvoerenDocumentRequest]</Trace>

<Trace level="3" type="T">Add raw attribute [ xmlns:ns1="urn:kadaster-nl:SERVICES:DMS:Opvoeren:ZI_KAD_DMS_MAIN"]</Trace>

<Trace level="3" type="T">Start tag [DocumentInfoRecord]</Trace>

<Trace level="3" type="T">Start tag [Type]</Trace>

<Trace level="3" type="T">Put value [302]</Trace>

<Trace level="3" type="T">Close tag [Type]</Trace>

<Trace level="3" type="T">Start tag [Omschrijving]</Trace>

<Trace level="3" type="T">Put value [Apeldoorn]</Trace>

<Trace level="3" type="T">Close tag [Omschrijving]</Trace>

<Trace level="3" type="T">Close tag [DocumentInfoRecord]</Trace>

<Trace level="3" type="T">Close tag [ns1:OpvoerenDocumentRequest]</Trace>

<Trace level="3" type="T">Document end</Trace>

<Trace level="1" type="T">*** END APPLICATION TRACE ***</Trace>

<Trace level="2" type="T">Java mapping com/sap/xi/tf/_mm_mail_to_dms_ completed. (executeStep() of com.sap.xi.tf._mm_mail_to_dms_).</Trace>

<Trace level="3" type="T">Dynamic Configuration Is Empty</Trace>

<Trace level="3" type="T">Attached will be Deleted cid:payload-001708D1A20E1DEDAD96471B4CCBC447(@)sap.com</Trace>

<Trace level="3" type="T">Attached will be Deleted cid:payload-001708D1A20E1DEDAD96471B4C758447(@)sap.com</Trace>

<Trace level="1" type="T">ContentType application/xml</Trace>

Regards,

Jeroen

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Dear Stefan,

We are already on SP6.

regards,

Jeroen

stefan_grube
Active Contributor
0 Kudos

Yes, apply the latest SPS for SP06.

Former Member
0 Kudos

Thanks Stefan,

We raised our patchlevel to 7.10.6.12. This resolved our issue!

Regards,

Jeroen

Answers (2)

Answers (2)

stefan_grube
Active Contributor
0 Kudos

This is a known bug.

Apply the latest patch for 7.1 SP 5 or SP 6: XI ADAPTER FRAMEWORK 7.10

Regards

Stefan

MichalKrawczyk
Active Contributor
0 Kudos

hi,

did you try like that:

Read Attachements = true ?

if you do that instead of false attachments should be transferred too

Regards,

Michal Krawczyk

Former Member
0 Kudos

Hi Michal,

Already tried this option too. However this option would only transfer the attachments to

the mapping runtime in JAVA. We only map the actual payload in a graphical message

mapping, so for our purpose, the other attachments could stay untouched and remain

in the abap part for further pipeline processing.

You can find the result of the Read attachment option during runtime here:

<!-- ************************************

-->

- <Trace level="1" type="B" name="CL_MAPPING_XMS_PLSRV3-ENTER_PLSRV">

<Trace level="2" type="T">......attachment XI_Context not found</Trace>

<Trace level="3" type="T">Mapping already defined in interface determination</Trace>

<Trace level="3" type="T">Object ID of Interface Mapping 46842937562139BCA3F2AC1F36E729FE</Trace>

<Trace level="3" type="T">Version ID of Interface Mapping 5D945F00B00611DDB04FF8CF0A5B0156</Trace>

<Trace level="1" type="T">Interface Mapping urn:kadaster-nl:SERV:ZA:KAD:DOVO im_mail_to_dms</Trace>

<Trace level="3" type="T">Mapping Steps 1 JAVA com/sap/xi/tf/_mm_mail_to_dms_</Trace>

<Trace level="3" type="T">MTOM Attachments are Transferred to the Payload</Trace>

<Trace level="3" type="T">Dynamic Configuration Is Empty</Trace>

<Trace level="2" type="T">Mode 0</Trace>

<Trace level="3" type="T">Search com/sap/xi/tf/_mm_mail_to_dms_.class (urn:kadaster-nl:SERV:ZA:KAD:DOVO, -1) in swcv 5d945f00-b006-11dd-b04f-f8cf0a5b0156.</Trace>

<Trace level="2" type="T">Loaded class com.sap.xi.tf._mm_mail_to_dms_</Trace>

<Trace level="3" type="T">Search com/sap/xi/tf/_mm_mail_to_dms_$MT$InnerLibsList.class (urn:kadaster-nl:SERV:ZA:KAD:DOVO, -1) in swcv 5d945f00-b006-11dd-b04f-f8cf0a5b0156.</Trace>

<Trace level="2" type="T">Loaded class com.sap.xi.tf._mm_mail_to_dms_$MT$InnerLibsList</Trace>

<Trace level="3" type="T">Search com/sap/xi/tf/_mm_mail_to_dms_$MT$InnerParamsList.class (urn:kadaster-nl:SERV:ZA:KAD:DOVO, -1) in swcv 5d945f00-b006-11dd-b04f-f8cf0a5b0156.</Trace>

<Trace level="2" type="T">Loaded class com.sap.xi.tf._mm_mail_to_dms_$MT$InnerParamsList</Trace>

<Trace level="2" type="T">Call method execute of the application Java mapping com.sap.xi.tf._mm_mail_to_dms_</Trace>

<Trace level="1" type="T">*** START APPLICATION TRACE ***</Trace>

<Trace level="3" type="T">Document start</Trace>

<Trace level="3" type="T">Start tag [ns1:OpvoerenDocumentRequest]</Trace>

<Trace level="3" type="T">Add raw attribute [ xmlns:ns1="urn:kadaster-nl:SERVICES:DMS:Opvoeren:ZI_KAD_DMS_MAIN"]</Trace>

<Trace level="3" type="T">Start tag [DocumentInfoRecord]</Trace>

<Trace level="3" type="T">Start tag [Type]</Trace>

<Trace level="3" type="T">Put value [302]</Trace>

<Trace level="3" type="T">Close tag [Type]</Trace>

<Trace level="3" type="T">Start tag [Omschrijving]</Trace>

<Trace level="3" type="T">Put value [Apeldoorn]</Trace>

<Trace level="3" type="T">Close tag [Omschrijving]</Trace>

<Trace level="3" type="T">Close tag [DocumentInfoRecord]</Trace>

<Trace level="3" type="T">Close tag [ns1:OpvoerenDocumentRequest]</Trace>

<Trace level="3" type="T">Document end</Trace>

<Trace level="1" type="T">*** END APPLICATION TRACE ***</Trace>

<Trace level="2" type="T">Java mapping com/sap/xi/tf/_mm_mail_to_dms_ completed. (executeStep() of com.sap.xi.tf._mm_mail_to_dms_).</Trace>

<Trace level="3" type="T">Dynamic Configuration Is Empty</Trace>

<Trace level="3" type="T">Attached will be Deleted cid:payload-001708D1A20E1DDDAD97A993DAB6CB91(@)sap.com</Trace>

<Trace level="3" type="T">Attached will be Deleted cid:payload-001708D1A20E1DDDAD97A993DB0E4B91(@)sap.com</Trace>

<Trace level="1" type="T">ContentType application/xml</Trace>

</Trace>

</Trace>

</Trace>

Thanks