Idoc Flat file to Idoc Xml conversion error by using module bean
I need to convert Idoc flat file ( in text format) to Idoc xml. Instead of using conventional file content conversion approach, I have used Module bean to convert Idoc flat file data to xml. The module I have used is SAP_XI_IDOC/IDOCFlatToXmlConvertor and defined parameters as well in sender file adapter module tab page. While getting idoc flat file from AL11, sender communication channel throwing below error and file is not reached to MONI. The error is
""Error: java.lang.StringIndexOutOfBoundsException: String index out of range: -2"". Can any one give what might be the reason and solution to the reason.
Thanks & Regards,