Free Support Forum - aspose.com

OST file not processed properly

Hi,

We are facing the issue while processing OST file, which extracted around 7.2K msg files. As per client, it contains approx. 20k+ msg files.

Following is the error msg which we get…
Error occured while getting items count from folder 'Sync Issues. Error Message : Could not read messages in folder Excecption Details: at #=zR8UcgFScrrNie9X3_O3ySThaFe5FmkOGq4u_6HI=.#=zYUTDTkk=(#=zR8UcgFScrrNie9X3_O3ySWv7HOH5pAfetQ== #=zZz6Cuai1glUq, Int32 #=zqby47cU=, Int32 #=zOAWnMRs=, MailQuery #=z1qJ6Mko=, MessageKind #=znUpMehw=)
at #=zR8UcgFScrrNie9X3_O3ySThaFe5FmkOGq4u_6HI=.#=zYUTDTkk=(#=zR8UcgFScrrNie9X3_O3ySWv7HOH5pAfetQ== #=zZz6Cuai1glUq, MessageKind #=znUpMehw=)
at Aspose.Email.Storage.Pst.FolderInfo.GetContents()
at AsposePstProcessor.PstDocument.CalculateChildCount(FolderInfo folderInfo, PersonalStorage pst)
9/16/2020 12:20:39 AM - at #=zR8UcgFScrrNie9X3_O3ySThaFe5FmkOGq4u_6HI=.#=zRNMql3yIVwIC(#=zR8UcgFScrrNie9X3_O3ySWv7HOH5pAfetQ== #=zZz6Cuai1glUq, MailQuery #=z1qJ6Mko=, FolderKind #=znUpMehw=)
at #=zR8UcgFScrrNie9X3_O3ySThaFe5FmkOGq4u_6HI=.#=z0zuDhpQN2TDlFKv24g==(#=zR8UcgFScrrNie9X3_O3ySWv7HOH5pAfetQ== #=zZz6Cuai1glUq, MailQuery #=z1qJ6Mko=, FolderKind #=znUpMehw=)
at Aspose.Email.Storage.Pst.FolderInfo.GetSubFolders()
at AsposePstProcessor.PstDocument.CalculateChildCount(FolderInfo folderInfo, PersonalStorage pst)
at AsposePstProcessor.PstDocument.CalculateChildCount(FolderInfo folderInfo, PersonalStorage pst)
at AsposePstProcessor.PstDocument.CalculateChildCount(FolderInfo folderInfo, PersonalStorage pst)
at AsposePstProcessor.PstDocument.CalculateChildCount(FolderInfo folderInfo, PersonalStorage pst)
at AsposePstProcessor.PstDocument.GetChildCount(Stream fileStream)
at AsposePstProcessor.PstDocument.GetChildCount(String filePath)

When client tried with other tool, it extracted more than 20k msg files. Can you please let us know what could be the reason causing this error with Aspose?

Note:

  1. As it is client file, we could not provide the sample.
  2. Tested the client’s OST file with Aspose version 18.1 and 20.6, both extracted around 7.2k msg files.

Regards,
Balmukunda Shrestha

@Balmukunda

I can suggest you to please try using latest Aspose.Email 20.9 on your end. In case there is still an issue then there is no other option then to share the source OST file with us. In Aspose.Email API there is simple call to load OST file.

Is there separate function in latest version to load/process ost file?

We had used following api in previous versions for both pst/ost file and iterate folders to get the msg files.
PersonalStorage pst = PersonalStorage.FromStream(fileStream, false);

@Balmukunda

There is no change in API done for loading OST. Please visit this documentation link for your kind reference. In case there is still an issue then please share the source OST file reproducing the issue.