Error loading task MapiTask.setEstimatedEffort - ArgumentException: The value should be greater than or equal to 0 and less than 0x5AE980DF

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.

Hello @igor.rogov,
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): EMAILJAVA-35221

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

Hello @igor.rogov,

Sample code to ignore the issue:

ExceptionManager.getIgnoreList().add("MapiTask\\FromVTodo\\EffortValue");

Thanks a lot, Sergey! It worked fine.

Hello @igor.rogov,

If you have any questions in future, please feel free to ask.