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

Free Support Forum - aspose.com

Task completion date before start date

Hi,

I see in the data coming from office 365 that there tasks in which completion date is before start date, but when I’m adding such task to the PST I get exception:

class com.aspose.email.system.exceptions.ArgumentException: The date completed should be greater than the start date.

com.aspose.email.MapiTask.c(SourceFile:544)

com.aspose.email.MapiTask.setDateCompleted(SourceFile:550)


Please advise.


Thanks

Hi,


Thank you for posting your inquiry.

I have tested this issue at my end by setting the task due date before the start date but no exception was raised. Please share your complete sample code with us so that we can investigate the issue in detail and assist you further.

Hi,

I’m talking about completion date before start date, not the due date.

Thanks

Hi,


Could you please share such a Task file with us for our further consideration? We need to understand the scenario to reproduce such a Task that can be used at our end for investigating the problem.