Hello,
Aspose Email (Java version) can’t load a task from iCal file if the due date is less than the start date. Here is the exception that I got:
Exception in thread "main" class com.aspose.email.system.exceptions.ArgumentException: The value should be greater than or equal to 0 and less than 0x5AE980DF
com.aspose.email.MapiTask.setEstimatedEffort(SourceFile:453)
com.aspose.email.zbhf.e(SourceFile:389)
com.aspose.email.zbhf.a(SourceFile:144)
com.aspose.email.MapiTask.a(SourceFile:1326)
com.aspose.email.MapiTask.a(SourceFile:1296)
com.aspose.email.MapiTask.fromVTodo(SourceFile:1290)
AsposeTaskTest.main(AsposeTaskTest.java:13)
at com.aspose.email.MapiTask.setEstimatedEffort(SourceFile:453)
at com.aspose.email.zbhf.e(SourceFile:389)
at com.aspose.email.zbhf.a(SourceFile:144)
at com.aspose.email.MapiTask.a(SourceFile:1326)
at com.aspose.email.MapiTask.a(SourceFile:1296)
at com.aspose.email.MapiTask.fromVTodo(SourceFile:1290)
at AsposeTaskTest.main(AsposeTaskTest.java:13)
Sample file: sample-task-10972.7z (436 Bytes)
I can see it’s trying to set the estimated effort. Can you add an option so that it would skip doing that?
Sample code to demonstrate the issue:
try (InputStream stream = Files.newInputStream(Paths.get("sample-task-10972.ical"))) {
var task = MapiTask.fromVTodo(stream);
}
I have tried the latest Aspose Email to date - 23.11.