Problem reading an MPP file in MSP 2013 format

Hi,


When trying to open the attached file Original.mpp with Aspose, I’m getting an exception.

I load it with:

Project asProject = new Project(“C:\temp\Original.mpp”);

I’m using Aspose Tasks Java 17.1.0.

The exception I got is:

Exception in thread “main” com.aspose.tasks.TasksReadingException: Project reading exception.
at com.aspose.tasks.bqn.a(Unknown Source)
at com.aspose.tasks.cas.a(Unknown Source)
at com.aspose.tasks.Project.a(Unknown Source)
at com.aspose.tasks.Project.(Unknown Source)
at com.aspose.tasks.Project.(Unknown Source)
at AsposeParseMppFile.main(AsposeParseMppFile.java:37)
Caused by: java.lang.NullPointerException
at com.aspose.tasks.aha.a(Unknown Source)
at com.aspose.tasks.aha.a(Unknown Source)
at com.aspose.tasks.aha.c(Unknown Source)
at com.aspose.tasks.aha.b(Unknown Source)
at com.aspose.tasks.bqn.x(Unknown Source)
at com.aspose.tasks.bqn.w(Unknown Source)
at com.aspose.tasks.bqn.q(Unknown Source)
… 6 more

However, when I save that MPP file in MSP 2007 format (I’m using MSP 2013), the resulting file (Original_2007.mpp) can be opened fine with Aspose.

Could you let me know if there’s a problem in the original mpp file, or whether this is an Aspose problem?

Thanks!

Hi Jay,


Thank you for contacting Aspose support team.

This sample MPP file is opened in MSP 2013 and shows error as shown in attached image. This shows that there is some scheduling conflict in the source file that is causing errors while loading it with Aspose.Tasks. Therefore it does not seem to be an issue with Aspose.Tasks.

Please feel free to write us back if you have any other query in this regard.

Hi Kashif,


I’m only getting these warnig when converting the MPP file to 2007 format, or when trying to schedule the project (auto-calculation is disabled in my MS project).

The fact that some tasks have schedule problems should NOT prevent aspose from loading it - if MSP can load the work plan, I expect aspose to be able to do it too. Since MSP cannot schedule the project, I don’t expect Aspose to do it either, but I most importantly expect Aspose to give me an error message more helpful than a NullPointerException. Maybe complain about the task with the scheduling problem like MSP 2013 is doing? (See attachment when I try to calculate the project for the first time in MSP 2013).

Thanks!

Hi Jay,


This issue is logged under Id: TASKSNET-1907 for further investigation by the product team. You will be notified once any update is received in this regard.

Hi Kashif,


If it can help speed up the root cause identification, please find attached another MPP file (2013 format) that fails with the same exception stacktrace as listed above (when using Aspose Tasks Java 17.1.0).

However, there’s no error in MSP when saving the MPP file as 2007 format, so if there’s something corrupted in this MPP file we would really appreciate your help in identifying what it is.

Right now the only workaround to open the file with Aspose is to first save it as MSP 2007 format in MSP (2013). We have no idea what gets fixed in the process, but if you then save the MSP 2007 file in MSP 2013 format in MSP, the error occurs again. However, if you first open and save the MSP 2007 with Aspose and then convert it to MSP 2013, it works to open it with Aspose.

Any assistance in helping us figure our what’s wrong with the MPP file would be highly appreciated. Note that if you were not obfuscating your code, the stacktrace might provide some helpful information on where the problem might lie. Alas…

Thanks!

Hi Jay,


Thank you for sharing another MPP file for our investigation. However, we think this to be a separate issue that has now been logged as TASKSJAVA-327. We have logged your provided information with the ticket for further consideration by our Product team and will update you here once there is some feedback or a fix version available in this regard.