Actual start- actual finish- and priority are being set incorrectly when upgrading a file to 2010 from 2007

Guys,

We have files that were originally created in MS project 2007 and recently, we upgraded them to 2010. After upgrading to 2010, aspose seems to be setting actual start and finish dates when in actuallity it shouldn't. And the priotiy is being set to 4800 when it should be 500. If you open the file in MS project 2010 then everything seems to look fine, but when importing using aspose actual start, actual finish and priority is not coming current. I have included both files in the attached zip file. Please let us know why the dates and priority are incorrect.

Thanks,

Amit Patel

Hi Amit,


Thanks for writing to Aspose.Tasks support.

I am afraid to inform that I have tried to re-produce the issue here but could not secceed. I opened both the MPP files in outlook 2010 and found no difference in the Actual Start, Actual Finish and priority (500) as informed by you.

I opened both the files using Aspose.Tasks for .NET 4.7.0. I extracted the tasks and displayed the above mentioned fields on the console. I found similar information for both the project files.

Please give a try to the following code and if its different than your requirements, please send us the sample code and snapshots of the problem if possible. It will help us to assist you further as soon as possible.
string file2007 = "TASK_415889\\Calendar Std(2007).mpp"; // Attached project
string file2010 = "TASK_415889\\Calendar Std(2010).mpp"; // Attached project

//Declare project reader instance
ProjectReader reader = new ProjectReader();
//Read the sample project file
Project project2007 = reader.Read(file2007);
//Retrieve task using task id
Task task2007 = project2007.GetTaskById(1);
Console.WriteLine("Calendar Std(2007).mpp");
Console.WriteLine("Actual Start:" + task2007.ActualStart);
Console.WriteLine("Actual Finish:" + task2007.ActualFinish);
Console.WriteLine("Priority:" + task2007.Priority);
Console.WriteLine("\n\n");
//Read the sample project file
Project project2 = reader.Read(file2010);
//Retrieve task using task id
Task task2010 = project2.GetTaskById(1);
Console.WriteLine("Calendar Std(2010).mpp");
Console.WriteLine("Actual Start:" + task2010.ActualStart);
Console.WriteLine("Actual Finish:" + task2010.ActualFinish);
Console.WriteLine("Priority:" + task2010.Priority);