cancel
Showing results for 
Search instead for 
Did you mean: 

Runtime error testing in test tab

Former Member
0 Kudos

Hi ,

when Filler = null then it should send null else it should send obj=

For this my udf is if(inValue[0].equals(""))

result.addValue(" ");

}else{

result.addValue("obj=");

}

When tried this code and testin in the message mapping it shows runtime error .

any suggessions?

Thanks,

Srinivasa

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Test using if(inValue[0].equals(null))

regards

Ganga

Former Member
0 Kudos

Hi,

Shows Runtime exception

RuntimeException in Message-Mapping transformation: Runtime exception during processing target field mapping /ns0:Messages/ns0:Message1/ns1:/data/OBI_1/Field_Tag. The message is: Exception:[java.lang.ArrayIndexOutOfBoundsException: 0] in class com.sap.xi.tf.__ method nul$[]

Former Member
0 Kudos

Hi,

Before passing the value to UDF, check whether its having any value. using IF.

If it doent have any value and accessing arra[0], it will give ArrayIndexoutofboundException.

Regards,

Sreenivas.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Can you send me the error information

Regards,

Sreenivas.