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

Free Support Forum - aspose.com

Error Opening File. Maximum number of records of this type exist

I am getting an error when trying to open an MPP file. The error is Error Opening File. The inner exception is "Maximum number of records of this type exist"

Dear wireplay,


Please provide your source MPP file and source code to reproduce this error. You can attach it with your post. Please also mention the version number of Aspose.Tasks being used by you.

I cannot share the MPP file due to security. I am using the latest version of Aspose.Tasks. The MPP file contains 18K+ tasks.

Source code:

MPXFile mpp = new MPPFile(file);

This code fails.

Aspose.Tasks has limit 1000 tasks/resources and 250 calendar periods but it’s for MPX format only.
Actually, that is limitation of MPX format. MPP should work with any number of records.
Can you provide at least full stack trace?

Aspose.Tasks.TasksReadException was unhandled
Message=“Error reading file”
Source=“Aspose.Tasks”
StackTrace:
at Aspose.Tasks.MPPFile…ctor(String name)
at .ReadProjectFile.Main.Process(String file) in C:\projects**\Projects\ReadProjectFile\ReadProjectFile\Main.cs:line 15
at Test.Program.Main(String[] args) in C:\projects*
**\Projects\ReadProjectFile\Test\Program.cs:line 13
at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException: Aspose.Tasks.TasksReadException
Message=“Error reading file”
Source=“Aspose.Tasks”
StackTrace:
at Aspose.Tasks.MPPFile.?(Stream ?)
at Aspose.Tasks.MPPFile…ctor(String name)
InnerException: Aspose.Tasks.TasksMaximumRecordsException
Message=“Maximum number of records of this type exist”
Source=“Aspose.Tasks”
StackTrace:
at Aspose.Tasks.Calendar.?(? ?)
at Aspose.Tasks.Calendar.?()
at ?.?.?(Byte[] ?, Calendar ?)
at ?.?.?(MPPFile ?, ? ?, Hashtable ?)
at ?.?.?(MPPFile ?, ? ?)
at Aspose.Tasks.MPPFile.?(Stream ?)
InnerException:

Thank you for the information. We will try to fix it.

Has this been corrected by any chance?

Unfortunately, we are unable to fix it and need more time. Thanks for your patience.

Hello,

If I’m not mistaken reading and exporting calendars problem was fixed in 1.6.3 version.
http://www.aspose.com/community/files/51/file-format-components/aspose.tasks/entry130081.aspx
Please try it and write here if you still get exception.

Still happening. It looks like some sort of array issue. Hopefully you guys can get it to work because it is a major time waste using the Project Interop files. Stack trace:

Aspose.Tasks.TasksReadException was unhandled
Message="Error reading file"
Source="Aspose.Tasks"
StackTrace:
at Aspose.Tasks.MPPFile..ctor(String name)
at Lockheed.ReadProjectFile.Main.Process(String file, String sasFile) in C:\Users\Alan\Documents\projects\CONFIDENTIAL\Projects\ReadProjectFile\ReadProjectFile\Main.cs:line 21
at Test.Program.Main(String[] args) in C:\Users\Alan\Documents\projects\CONFIDENTIAL\Projects\ReadProjectFile\Test\Program.cs:line 13
at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException: Aspose.Tasks.TasksReadException
Message="Error reading file"
Source="Aspose.Tasks"
StackTrace:
at Aspose.Tasks.MPPFile.?(Stream ?)
at Aspose.Tasks.MPPFile..ctor(String name)
InnerException: Aspose.Tasks.TasksMaximumRecordsException
Message="Maximum number of records of this type exist"
Source="Aspose.Tasks"
StackTrace:
at Aspose.Tasks.Calendar.?(? ?)
at Aspose.Tasks.Calendar.?()
at ?.?.?(Byte[] ?, Calendar ?)
at ?.?.?(MPPFile ?, ? ?, Hashtable ?)
at ?.?.?(MPPFile ?, ? ?)
at Aspose.Tasks.MPPFile.?(Stream ?)
InnerException:

If it helps, there are 22,000 tasks in this MPP and every single custom field available is used.

I got the same error, same InnerException and call stack with latest version 1.6.3.

MPP file format is Project 2002 and 2003.

My environment is ..

  • use Demos\C#\MppToMpx
  • build with Visual Studio 2005

After compile the demo, run and convert attatched mpp file. I got the Aspose.Tasks.TasksReadException and Aspose.Tasks.TasksMaximumRecordsException.

This problem is fixed?

What are the conditions?

My project is on dedline, so please reply me about it.

We are investigating the problem and let you know as soon as possible. Thanks for your patience.