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

Free Support Forum - aspose.com

Error during MS Office Recurrence rule parsing

Hello!

We’ve faced another issue with recurrence rule parsing for MS Calendar event.
The rule pattern is next:

String pattern = "DTSTART:20200921T010000\n" +
        "DTEND:20200921T013000\n" +        "RRULE:FREQ=WEEKLY;UNTIL=20210315T010000Z;INTERVAL=2;BYDAY=MO;WKST=SUEXDATE;TZID=AUSCentralStandardTime:20201130T103000";
    MapiCalendarRecurrencePatternFactory.fromString(pattern);

Executing fromString method throws such error:

The string of a recurrent rule does not correspond to the standard: options of a rule  is not retrieved
AsposeException: The string of a recurrent rule does not correspond to the standard: options of a rule  is not retrieved
[Ljava.lang.StackTraceElement;@6644fa71
  at com.aspose.email.RecurrenceRule.d(SourceFile:889)
  at com.aspose.email.RecurrenceRule.c(SourceFile:853)
  at com.aspose.email.RecurrenceRule.a(SourceFile:669)
  at com.aspose.email.CalendarRecurrence.<init>(SourceFile:89)
  at com.aspose.email.MapiCalendarRecurrencePatternFactory.fromString(SourceFile:1043)

If I delete the last part of pattern there will be another exception:

String pattern = "DTSTART:20200921T010000\n" +
        "DTEND:20200921T013000\n" +        "RRULE:FREQ=WEEKLY;UNTIL=20210315T010000Z;INTERVAL=2;BYDAY=MO;WKST=SUEXDAT";
    MapiCalendarRecurrencePatternFactory.fromString(pattern);

Incorrect option value ‘BYDAY’ a recurrent rule: ‘SUEXDATE’
AsposeException: Incorrect option value ‘BYDAY’ a recurrent rule: ‘SUEXDATE’
[Ljava.lang.StackTraceElement;@6644fa71
at com.aspose.email.RecurrenceRule.b(SourceFile:839)
at com.aspose.email.RecurrenceRule.c(SourceFile:862)
at com.aspose.email.RecurrenceRule.a(SourceFile:669)
at com.aspose.email.CalendarRecurrence.(SourceFile:89)
at com.aspose.email.MapiCalendarRecurrencePatternFactory.fromString(SourceFile:1043)

Could you please take a look at these issues?

Thanks!

@Viktoriia

To ensure a timely and accurate response, please attach the following resources here for testing:

  • Your input file.
  • Please create a simple application (source code without compilation errors) that helps us to reproduce your problem on our end and attach it here for testing.

As soon as you get these pieces of information ready, we will start investigation into your issue and provide you more information. Thanks for your cooperation.

PS: To attach these resources, please zip and upload them.

Hi @tahir.manzoor,

Unfortunately I don’t have an input file as event data is retrieved using API. Recurrence rule pattern is computed programmatically.
So PFA AsposeTest.zip (67.3 KB) archive that contains source code with issue.

Hope that will be enough to find a problem.

Thank you!

@Viktoriia

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

We apologize for your inconvenience.