on 08-07-2012 10:09 AM
Hi,
I am a beginner in Java. I am analysing an existing udf which failed in PI . The error message is
RuntimeException in Message-Mapping transformation: Runtime exception during processing target field mapping /Transaction-PRICAT/Loop-Group_UNB/Loop-Group_UNH/Loop-Group_16/Loop-Group_33[14]/Segment-PIA[2]/Composite-C212/Element-7140. The message is: Exception:[java.lang.ArrayIndexOutOfBoundsException: 0] in class com.sap.xi.tf._mm_PRICAT_PRICAT02_2_PRICAT_UN_D96A_LSC_ method copyPerValue$[com.sap.aii.mappingtool.flib3.IfWithoutElse@3a77263c, com.sap.aii.mappingtool.flib3.IfWithoutElse@646f4b20]
public void copyPerValue(String[] a,String[] b,ResultList result,Container container){
for (int i=0; i<b.length; i++)
result.addValue(a[0]);
The queues shows me that I am passing value 'Test' in string a and some 72 values in string 2. I assume for each occurrence of string b, string a needs to be created.
Please help as this is an PRICAT EDI mapping.
Regards
Krish
Hi Krish,
It looks very much like a custom alternative for the standard mapping function useOneAsMany. Why don't you try using the standard function instead?
Regards,
Greg
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
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.