Free Support Forum - aspose.com

Msg to Pst Conversion failed


#1

Hi team,
I have msg file which is of Notes type and when i am adding this msg file into newly created Pst file It throws an exception
Exception in thread “main” class com.aspose.email.system.exceptions.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: Not a valid Win32 FileTime.
com.aspose.email.system.DateTime.toFileTimeUtc(Unknown Source)
com.aspose.email.system.DateTime.toFileTime(Unknown Source)
com.aspose.email.MapiProperty.a(SourceFile:1149)
com.aspose.email.MapiProperty.a(SourceFile:1055)
com.aspose.email.MapiPropertyContainer.a(SourceFile:780)
com.aspose.email.MapiNote.a(SourceFile:363)
com.aspose.email.FolderInfo.addMapiMessageItem(SourceFile:817)
eml2pst.main(eml2pst.java:34)
at com.aspose.email.system.DateTime.toFileTimeUtc(Unknown Source)
at com.aspose.email.system.DateTime.toFileTime(Unknown Source)
at com.aspose.email.MapiProperty.a(SourceFile:1149)
at com.aspose.email.MapiProperty.a(SourceFile:1055)
at com.aspose.email.MapiPropertyContainer.a(SourceFile:780)
at com.aspose.email.MapiNote.a(SourceFile:363)
at com.aspose.email.FolderInfo.addMapiMessageItem(SourceFile:817)
at eml2pst.main(eml2pst.java:34)
Sample file is : notetemp.zip (1000 Bytes)


#2

@pradeepnegi,

Can you please share complete source code so that we may further investigate to help you out in this issue.


#3

for (MapiMessage msg : storage.enumerateMessages(folder))
try
{
pst =
PersonalStorage.create(file.getPath(),FileFormatVersion.Unicode);
createpstpredefinedFolders(pst);
}
catch(Exception ep)
{

													}
												}
											}
												
											try {
												MapiNote note1 = (MapiNote) msg.toMapiMessageItem();
												pst.getPredefinedFolder(StandardIpmFolder.Notes).addMapiMessageItem(note1);
												
											

											} catch (Exception ep) {
												
											}
										}

#4

@pradeepnegi,

I have observed your comments. An issue with ID EMAILJAVA-34531 has been created in our issue tracking system to further investigate and resolve the issue. This thread has been linked with the issue so that you may be notified once the issue will be fixed.