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

Free Support Forum - aspose.com

Office 365 Task (recurrent) add to PST is stuck

Hi,

I’m trying to add task to PST and it’s stuck on :

DateCollection(Collection).insertItem(int, T) line: not available
DateCollection(Collection).addItem(T) line: not available
RecurrenceRule.a(DateCollection[], DateTime) line: 959
RecurrenceRule.a(DateCollection[], DateCollection[]) line: 1948
RecurrenceRule.e(DateCollection[], DateTime, int) line: 1183
RecurrenceRule.a(DateTime, DateTime, DateTime, int) line: 501
RecurrencePattern.a(RecurrenceRuleCollection, DateTime, DateTime, int) line: 625
RecurrencePattern.b(DateTime, DateTime, int) line: 340
RecurrencePattern.a(DateTime, DateTime) line: 267
RecurrencePattern.generateOccurrences() line: 224
MapiTask.i() line: 1434
MapiTask.setRecurrence(MapiCalendarRecurrencePattern) line: 691

Task is weekly pattern, without end date , taking place on every Monday.
Please advise.

Thanks.

Hi,


Thank you for writing to us again.

We have re-produced this issue and have logged under Id: EMAILJAVA-33577 for further investigation by the product team. You will be automatically notified once any update is received in this regard.

The issues you have found earlier (filed as EMAILJAVA-33577) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.

Hi,

Tried to use with new version : 6.4.0.0 , the issue is still here :
List.insertItem(int, T) line: not available
DateCollection(Collection).insertItem(int, T) line: not available
DateCollection(Collection).addItem(T) line: not available
RecurrenceRule.a(DateCollection[], DateTime) line: 980
RecurrenceRule.a(DateCollection[], DateCollection[]) line: 1957
RecurrenceRule.e(DateCollection[], DateTime, int) line: 1204
RecurrenceRule.a(DateTime, DateTime, DateTime, int) line: 516
CalendarRecurrence.a(RecurrenceRuleCollection, DateTime, DateTime, int) line: 590
CalendarRecurrence.b(DateTime, DateTime, int) line: 329
CalendarRecurrence.a(DateTime, DateTime) line: 256
CalendarRecurrence.generateOccurrences() line: 216
MapiTask.i() line: 1495
MapiTask.setRecurrence(MapiCalendarRecurrencePattern) line: 696


Please advise.
Thanks

Hi, Thank you for writing to Aspose support team again. I have tried the scenario using following sample code and observed no issue. Could you please give it a try and let us know the feedback.

java.util.Calendar calendar = java.util.Calendar.getInstance(java.util.TimeZone.getTimeZone(“GMT”)); 
calendar.set(2016, Calendar.MARCH, 5, 0, 0, 0); 
Date startDate = calendar.getTime(); 
calendar.set(2016, java.util.Calendar.MARCH, 5, 0, 0, 0); 
Date dueDate = calendar.getTime();
 MapiRecipientCollection coll = new MapiRecipientCollection(); 
coll.add("abc@gmail.com", “abc”, MapiRecipientType.MAPI_TO); 
MapiCalendarWeeklyRecurrencePattern rec = new MapiCalendarWeeklyRecurrencePattern();
 rec.setEndType(MapiCalendarRecurrenceEndType.NeverEnd);
 rec.setPatternType(MapiCalendarRecurrencePatternType.Week); rec.setPeriod(1); 
rec.setWeekStartDay(MapiCalendarDayOfWeek.Sunday); 
rec.setDayOfWeek(MapiCalendarDayOfWeek.Monday); 
//rec.setOccurrenceCount(0); 
MapiTask task = new MapiTask(“This is test task”, “Sample Body”, startDate, dueDate); 
task.setState(MapiTaskState.NotAssigned); 
//FOLLOWING LINE HANGED EARLIER BUT NOT WITH THE NEW DLL ASPOSE.EMAIL FOR JAVA 6.4.0 
task.setRecurrence(rec); 
task.save(“MapiTask.msg”, TaskSaveFormat.Msg);

Hi,

Thanks for your reply.
Please comment this line and see this happen:

rec.setEndType(MapiCalendarRecurrenceEndType.NeverEnd);

Thanks

Hi,


It does not seem to be an issue as we cannot generate weekly recurrence using Outlook which does not have any end type. There are only three options in Outlook which are as follows:

1. No end date
2. End after N Occurrences
3. End By Date

Thus you should select at least one of these options as by default the MapiCalendarRecurrenceEndType value is set to None. Hope this clarifies the situation. Please feel free to write us back if you have any other query in this regard.