We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Error while converting EML to MSG Index was outside the bounds of the array

Hi all,
Getting the below error while converting eml to msg. Can someone help with this?

java.lang.RuntimeException: class com.aspose.email.system.exceptions.IndexOutOfRangeException: Index was outside the bounds of the array.
com.aspose.email.internal.ac.t.b(Unknown Source)
com.aspose.email.wg.a(SourceFile:277)
com.aspose.email.azn.g(SourceFile:309)
com.aspose.email.MapiMessageItemBase.d(SourceFile:1747)
com.aspose.email.MapiMessageItemBase.getBodyType(SourceFile:682)
com.aspose.email.MapiMessageItemBase.getBody(SourceFile:1106)
com.aspose.email.MapiMessage.f(SourceFile:4283)
com.aspose.email.MapiMessage.a(SourceFile:3002)
com.aspose.email.MapiMessage.b(SourceFile:2570)
com.aspose.email.MapiMessage.fromMailMessage(SourceFile:1397)
com.aspose.email.MailMessage.a(SourceFile:2044)
com.aspose.email.MailMessage.save(SourceFile:1907)
com.mailconversion.format.eml2msg.CreateMSG.convertEML2MSG(CreateMSG.java:47)

Thanks
Vinita

@vinita.nair,

Thank you for contacting Aspose support team.

We need to re-produce this issue here to investigate it. Could you please send us the source EML file and the code used to convert it to MSG file? It will help us to observe the problem and provide assistance accordingly.