Free Support Forum - aspose.com

The data of block cannot be exceeds 8176

Hello, Aspose Team,
I’ve recently encountred this weird exception while trying to create PST file (aspose version 6.4.0).

com.aspose.email.system.exceptions.InvalidOperationException: The data of block cannot be exceeds 8176 bytes in size
at com.aspose.email.ayc.a(SourceFile:291) ~[email-6.4.0.jar:6.4.0.0]
at com.aspose.email.sh.a(SourceFile:444) ~[email-6.4.0.jar:6.4.0.0]
at com.aspose.email.sh.a(SourceFile:420) ~[email-6.4.0.jar:6.4.0.0]
at com.aspose.email.sh.b(SourceFile:283) ~[email-6.4.0.jar:6.4.0.0]
at com.aspose.email.asz.c(SourceFile:379) ~[email-6.4.0.jar:6.4.0.0]
at com.aspose.email.zs.a(SourceFile:2041) ~[email-6.4.0.jar:6.4.0.0]
at com.aspose.email.ali.a(SourceFile:1034) ~[email-6.4.0.jar:6.4.0.0]
at com.aspose.email.ali.a(SourceFile:974) ~[email-6.4.0.jar:6.4.0.0]
at com.aspose.email.FolderInfo.addMessage(SourceFile:843) ~[email-6.4.0.jar:6.4.0.0]

Messages were successfully added until pst reached ~19GB. Then this excption occured and nothing else could be written to output PST file.

Any thoughts? Thanks.

@pdukanac,

I have observed issue shared. You are using a very old version of API. Therefore, I suggest you to please first try using latest Aposse.Email for .NET 20.1 on your end in an x64 based application. In case the issue is still reproduced then please share the sample project along wiith source information that we may try on our end to help you further.