on 03-24-2011 9:37 AM
Hi dudes,
Does anyone know how to catch the mapping runtime error message into a BPM exception branch? I know how to create an exception branch and how to trigger it, but I wonder whether it's possible to pass the mapping error message as shown in SXI_MONITOR (i.e. 'Cannot create target element XXXXX. Values missing in queue context').
Otherwise, everytime my BPM fails I will have to take the payload and run the mapping test in order to find out the reason of the error.
Many thanks in advance!
Paco
Try to catch in BPM the trasformation error. You can refer to this document:
http://help.sap.com/saphelp_nw04/helpdata/en/33/4a773f12f14a18e10000000a114084/content.htm
This is an old forum issue:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks,
My problem is not about handling exception in BPM, but getting the mapping error description and then passing it to the exception branch.
I can see in the workflow log that this info is contained into the Exception container EXCEPTIONS[2] / T100MSG:
Message Class: SAI_MAPPING
Message Number: 217
Message Type: E
Message Variable: com/sap/xi/tf/_<MM name>
Message Variable: com.sap.aii.mappingtool.tf7.IllegalInstanceExcepti
Message Variable: on: Cannot create target element /ns1:<path/field>.Message Variable: Values~
The text in bold is the one I am interested in to be get and mapped into the exception branch.
Hello,
Not sure you can do that in a graphical mapping, but I do it in my own JAVA mapping using RFC lookup (I know it "writes" things in the system whereas SAP does not recommend it, but as it writes only non application data - alerts only - we chose this approach) to handle mapping errors in the StreamTransformationException branch and post it somewhere
Rgds
Chris
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.