on 10-21-2015 10:35 AM
Hi all,
Actually am facing a typical issue ,in the which the issue is related to the mapping .
when the OTYPE and STEXT fields of E1P1000 segment are equal then it should replicate the Job _title output field
For this i have written a code and it was working up to pre- production system but why it was failing in Production ???
Error :
Details: com.sap.aii.mappingtool.tf7.MessageMappingException; Runtime exception when processing target-field mapping /ns0:/Record[270]/Job_Title; root message: Exception:[java.lang.ArrayIndexOutOfBoundsException: while trying to load from index 2 of an object array with length 2, loaded from the second parameter of the method] in class com.sap.xi.
Mapping :
helping me will be very appreciation
Regards
Vijender
Hi Vijendar,
As per my understanding, you have two fields i.e otype,stype. If otype vlaue is 'O' and Stype value is not empty (' ') you wanted to pass the value of stype to target. Else you wanted to add a ' ' value to target.
This logic can be handled without a UDF. If otype -> Map with default-.> EQUALS "O" AND Stype-> EQUALS " "(constant " ")-> NOT then STYPE else Constant " ",
Check the context of both the fields as well. Let us know if you face any issues.
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vijender,
Can you please share a screenshot with queues when running the mapping using the input message from production? It seems that there is a different number of entries for OTYPE and STEXT, so you should consider using mapWithDefault before your UDF. Also, this can be handled using standard IF function without UDF at all.
Regards,
Radek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI ,
I am thinking below is the causes,
1. Job_Title filed must be 1:1 occurence
2.OTYPE field might have come other than value "C" and same time you had mapped root node of Job_Title field mapped 1 to 1
so please check with root node of Job_Title node count and OTYPE field match with value :C: count should be same
EX:
Root node comes 10times, then OTYPE fields also matched with C" 10 times
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
79 | |
9 | |
9 | |
7 | |
7 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.