on 05-22-2014 7:05 AM
Hi ,
i had a requirement on mapping condition
If field1 = ABC and field2 <> XYZ then use the values from that 'SRCHEADER' to 'TGTHEADER'. for this i had written UDF
for (int i = 0; i< SRCHEADER.length; i++) {
if(field1[i].equals( "ABC") && !(field2[i].equals( "XYZ")))
result.addValue("");
else
result.addValue(ResultList.SUPPRESS);
}
while executing i ma getting error: Exception:[java.lang.ArrayIndexOutOfBoundsException: 1]
can you please help me on this.
thanks
thank for your help ,
issue resolved with graphical mapping only.but i dont unerstand why my UDF is not working.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Shaik,
You are taking the number of iterations of the variable SRCHEADER but you are accessing to the variables field1 and field2, then if the length of field1 or field2 is lower then the exception would be raised. You need to do a While and control this issue or to do the iteration with field1 or field2.
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Shaik,
Please make sure that Field1 and Fields2 has the same amount of values(queue entries).
Regards,
Jannus Botha
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 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
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.