Free Support Forum - aspose.com

Start and Finish 01.01.0001 in Tasks but not in MS Project


#1

Hi,

we’ve noticed a problem were aspose tasks reads a different date (i.e. 01.01.0001) than what is being shown in MS Project.

MS Project:
grafik.png (9.2 KB)

Aspose Tasks:
Task: 0 Test GmbH - Start: 15.03.2019 08:00:00, Finish: 14.06.2019 17:00:00
Task: 1 Task 1 - Start: 01.01.0001 00:00:00, Finish: 01.01.0001 00:00:00
Task: 1.1 Task 1.1 - Start: 15.03.2019 08:00:00, Finish: 06.06.2019 17:00:00
Task: 1.1.1 Task 1.1.1 - Start: 15.03.2019 08:00:00, Finish: 06.06.2019 17:00:00
Task: 1.1.2 Task 1.1.2 - Start: 01.01.0001 00:00:00, Finish: 01.01.0001 00:00:00
Task: 1.1.3 Task 1.1.3 - Start: 01.01.0001 00:00:00, Finish: 01.01.0001 00:00:00
Task: 1.1.4 Task 1.1.4 - Start: 01.01.0001 00:00:00, Finish: 01.01.0001 00:00:00
Task: 1.1.5 Task 1.1.5 - Start: 01.01.0001 00:00:00, Finish: 01.01.0001 00:00:00
Task: 1.2 Task 1.2 - Start: 25.03.2019 08:00:00, Finish: 14.06.2019 17:00:00
Task: 1.2.1 Task 1.2.1 - Start: 01.01.0001 00:00:00, Finish: 01.01.0001 00:00:00
Task: 1.2.2 Task 1.2.2 - Start: 01.01.0001 00:00:00, Finish: 01.01.0001 00:00:00
Task: 1.2.3 Task 1.2.3 - Start: 01.01.0001 00:00:00, Finish: 01.01.0001 00:00:00
Task: 1.2.4 Task 1.2.4 - Start: 01.01.0001 00:00:00, Finish: 01.01.0001 00:00:00
Task: 1.2.5 Task 1.2.5 - Start: 01.01.0001 00:00:00, Finish: 01.01.0001 00:00:00
Task: 1.2.6 Task 1.2.6 - Start: 09.05.2019 08:00:00, Finish: 31.05.2019 17:00:00
Task: 1.2.7 Task 1.2.7 - Start: 01.01.0001 00:00:00, Finish: 01.01.0001 00:00:00
Task: 1.3 Task 1.3 - Start: 17.04.2019 08:00:00, Finish: 14.06.2019 17:00:00
Task: 1.3.1 Task 1.3.1 - Start: 17.04.2019 08:00:00, Finish: 17.04.2019 08:00:00
Task: 1.3.2 Task 1.3.2 - Start: 14.06.2019 17:00:00, Finish: 14.06.2019 17:00:00

I’ve attached the Project file in question: Test.zip (110.9 KB)

Thank you


#2

@GEFE,

I have observed the issue information shared by you and request you to please first try using latest Aspose.Tasks for .NET 19.4 on your end. In case there is still an issue then please share the working sample code reproducing the issue on your end.


#3

I’ve updated to 19.4. sadly the output is still the same.

The code is just reading the file and printing the name and dates:

private static void PrintAspose()
{
var license = new License();
// From Embedded Resource
license.SetLicense(“Aspose.Tasks.lic”);
var project = new Project(_path);
PrintA(project.RootTask, “”);
}

private static void PrintA(Task task, string indent)
{
Console.WriteLine($"{indent}Task: {task.Get(Tsk.WBS)} {task.Get(Tsk.Name)} - Start: {task.Get(Tsk.Start)}, Finish: {task.Get(Tsk.Finish)}");
indent = $"{indent} ";
for (var index = 0; index < task.Children.Count; index++)
{
var child = task.Children.ToList()[index];
PrintA(child, indent);
}
}

Thanks for your help


#4

@GEFE,

Thank you for sharing the information with us. We are working over the issue and will get back to you with a feedback as soon as possible.


#5

It’s been over two weeks now, any news on the issue? Have you been able to confirm it?

Regards


#6

@GEFE,

I regret to share that at present the issue is still unresolved. We will share the good news with you as soon as as the issue will be fixed.