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

Free Support Forum - aspose.com

Aspose Email Java – ICS file throwing exception - Value is too large

Aspose and Java version: aspose-email-22.4.1-jdk16.jar

   Below is my code
import com.aspose.email.*;

    String path = "/tmp/myCalendar.ics";
    AppointmentLoadOptions alo = new AppointmentLoadOptions();
    alo.setIgnoreSmtpAddressCheck(true);
    appointment = Appointment.load(path, alo);


The myCalendar.ics is the client file made by Outlook which contains Japanese characters. 
And I don't have permission to use the client file to reproduce this exception. 
I made some sample ICS files with Japanese characters, couldn't reproduce it.
Hopefully, you may shed some light on the exception below.


com.aspose.email.system.exceptions.OverflowException: Value is too large
at com.aspose.email.internal.ak.zi.a(Unknown Source)
at com.aspose.email.internal.ak.zi.a(Unknown Source)
at com.aspose.email.internal.b.zz.a(Unknown Source)
at com.aspose.email.zbcw.a(SourceFile:64)
at com.aspose.email.zbcw.<init>(SourceFile:45)
at com.aspose.email.zawt$zar.a(SourceFile:518)
at com.aspose.email.zawt.a(SourceFile:1272)
at com.aspose.email.zhu.a(SourceFile:223)
at com.aspose.email.zhn.b(SourceFile:320)
at com.aspose.email.zhn.a(SourceFile:259)
at com.aspose.email.Appointment.a(SourceFile:1464)
at com.aspose.email.Appointment.load(SourceFile:1382)

@bing.liu

Could you please ZIP and attach your ICS file here for testing? We will investigate the issue and provide you information on it.

Thanks for your reply. I am unable to upload any file from my computer due to security reason. I open my ICS file with text editor and paste below. You may save it as .ics file and use it to test it. I tested with different version of Aspose (22.4 and 22.6). The same exception occurred ( see the stack trace posted above). This ICS file was created by Outlook 10. My programs work well with ICS created by Outlook 16.

BEGIN:VCALENDAR
PRODID:-//Microsoft Corporation//Outlook 10.0 MIMEDIR//EN
VERSION:2.0
METHOD:REQUEST
BEGIN:VTIMEZONE
TZID:Japan Time
BEGIN:STANDARD
DTSTART:20160401T000000
TZOFFSETFROM:+0900
TZOFFSETTO:+0900
TZNAME:Standard Time
END:STANDARD
END:VTIMEZONE
BEGIN:VEVENT
ATTENDEE;CN="";ROLE=REQ-PARTICIPANT;RSVP=TRUE:MAILTO:johnsmith@epiq.co.jp
ORGANIZER;CN=“Jhon Smith”:MAILTO:johnsmith@epiq.co.jp
DTSTART;TZID=“Japan Time”:20190604T1700000
DTEND;TZID=“Japan Time”:20190604T1900000
LOCATION:Kansas
TRANSP:OPAQUE
SEQUENCE:20190603101116
UID:20190603101116178
DTSTAMP:20190603T101116Z
DESCRIPTION:This is sample file to reproduce Appointment API exception\n
SUMMARY:Reporting a bug
PRIORITY:5
CLASS:PUBLIC
BEGIN:VALARM
TRIGGER:-PT5M
ACTION:DISPLAY
DESCRIPTION:Reminder
END:VALARM
END:VEVENT
END:VCALENDAR

The original ICS file contains Japanese characters which I thought the reason to cause the exception. After I removed them, replaced with English letter, the same exception happened. This ICS created by older version Outlook may not work well with Appointment API on VEVENT. This issue happened to our client. Please provide the fix or workaround. Thanks.

@bing.liu

You can ZIP and attach the ICS file in this thread. Please share it for investigation. Thanks for your cooperation.

SmpleICS.7z (648 Bytes)
Attached is the sample ICS file for you to reproduce.

@bing.liu

We have logged this problem in our issue tracking system as EMAILNET-40719. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

@ tahir.manzoor Thanks!

Do you know any workaround for now before the problem got fixed?

@bing.liu

Unfortunately, there is no workaround available for this issue. You will be informed once there is an update available on it.