on 11-16-2016 6:33 AM
Hi Tom!
I may be wrong, but first value in your queue seems to be equal to "__cC_" (ResultList.CC constant). When it's splitted, you have only one element in "tokens" array - tokens[0]. Thus, you get "ArrayIndexOutOfBoundsException" exception as you try to use other array elements, that not exist.
Regards, Evgeniy.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Tom!
I don't know your mapping logic 🙂 Try this:
if (strValue[i].equals(ResultList.CC)) {
SHKZG.addContextChange();
WRBTR.addContextChange();
MWSKZ.addContextChange();
SAKNR.addContextChange();
KOSTL.addContextChange();
AUFNR.addContextChange();
SGTXT.addContextChange();
}
else if (!strValue[i].equals("")) {
... your rest code.
Regards, Evgeniy.
Hi Tom,
Error correctly specify ArrayIndexOutofBoundsException : 1, that means, it not able to get second value in tokken[] array after split.
tokken[1] doesn't exist while running this UDF. I means there is no "/" in your source string, and it only generate tokken[0] and unable to generate rest.
Why you are using SplitbyValue before UDF, if you are spluiting this String in UDF also? I don't get that logic.
Can you share your GLAccount Source message example, that you are forwarding to target and getting this error.
Thanks and regards,
Anoop Rai
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Tom,
use "mapwithDefault" before UDF.
Regards,
Sateesh.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Tom,
We faced same issue for some other UDF(as UDF is not accepting null/CC/SUPRESS values) and we have handled by adding some default value in "mapWithDefault" later in UDF we are removing that.
set the default value in "mapWithDefault" as some unused char/number later in UDF remove those by using IF condition and return as "".
Regards,
Sateesh.
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
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.