Project reading exception....Index was outside the bounds of the array

I am using Aspose.Tasks to read mpp files created with MS Project 2007. Most of the files I have been testing with have read fine. However, I have one file that is returning the error in the subject line when I attempt to call Read the file. I have attached the output from TasksReadingException LogText. I am using version 4.2.1 and would appreciate any assistance in isolating the probem. Below is a code snippet I am executing. The error is encountered when calling reader.Read...

Aspose.Tasks.License license = new Aspose.Tasks.License();

license.SetLicense("C:\\Program Files (x86)\\Aspose\\Aspose.Tasks\\Aspose.Tasks for .NET\\bin\\license\\Aspose.Tasks.lic");

FileInfo fi = new FileInfo(MPPFilepath);
ProjectReader reader = new ProjectReader();
Project project = null;

//Instantiate project for reading
using(FileStream pfs = new FileStream(MPPFilepath, FileMode.Open))
{
try
{
project = reader.Read(pfs);
}
catch (TasksReadingException ex)
{
Console.WriteLine(ex.Message);
Console.WriteLine(ex.LogText);
if (ex.InnerException != null)
{
Console.WriteLine(ex.InnerException.Message);
Console.WriteLine(ex.StackTrace.ToString());
}
}
catch(Exception ex)
{
Console.WriteLine(ex.Message);
}
}

Hi Brian,

Can you please share your MPP file for analysis? If it is difficult for you to share that file, please create and share a new MPP file with just one or two tasks including task with UID 6798 because this task seems to create problem and need to be investigated.

Best Regards,

I am only authorized to share a subset of the data. I have isolated the task UID along with its hierarchy. I attempted to read this file and receive the same ReadTasksException error. I have attached the file zipped. THANKS!

Hi Brian,

Thanks for the sample. This issue has been logged into our issue tracking system as TASKS-33182. We will keep you updated on this issue in this thread. Sorry for the inconvenience.

Please feel free to contact us in case you have further comments or questions.

Best Regards,

Hi Brian,

The issue is fixed and will be included in the coming release which is due at the end of June or start of July.

Best Regards,

Can you provide any details about the mpp file that was causing a problem? Is there anything we need to be aware of going forward?

Thank you for the quick response to this issue!

Hi Brian,

Thanks for your feedback.

OutlineCode2 named 'AUW' was assigned to task 6798 and removed afterwards but MS Project left some info about this code in the MPP file. Aspose.Tasks.TaskReader tried to read missing data and threw this exception. The issue is fixed now and this will not happen again.

Please feel free to contact us in case you have further comments or questions.

Best Regards,

The issues you have found earlier (filed as TASKS-33182) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.

The issues you have found earlier (filed as ) have been fixed in this Aspose.Words for JasperReports 18.3 update.