cancel
Showing results for 
Search instead for 
Did you mean: 

SAP PI Error on display queue in Mapping Operation

0 Kudos

Display queue for DATETIME2 is

<null>

[]

[]

Dispaly queue for substring(0,10) is showing error message. Exception:[java.lang.StringIndexOutOfBoundsException: String index out of range: 10] in class com.sap.aii.mappingtool.flib7.TextFunctions method substring[, 0, 10, com.sap.aii.mappingtool.tf7.rt.Context@25fbe53] See error logs for details

Appreciate expert advice on this.

View Entire Topic
Liz_
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Wan,

The error occurred because you don't put any value to DATETIME2, it is Null.

You should put some value in test tab, execute test and display the queue again. If you don't put any value to field, display queue doesn't make any sense. The substring method is to retrieve string from start position 0 to tenth character, if the value of DATETIME2 is null, it will not get the string, StringIndexOutOfBoundsException will occur. Just put some value to DATETIME2, and check the value via "display queue".

Best Regards,

Liz

0 Kudos

Thanks Liz.

I have tried this and working now.