Am trying to read a project from Microsoft Project Server 2016, which has a sub project.
Loading the project as mentioned in
While reading the sub project task, Tsk.IsSubproject is coming as false and also has zero children.
Can you please confirm whether reading Projects with Subprojects from MS Project server is supported.
To reproduce the issue, please create two projects in the Server and make one as SubProject of other and try to read the project details from server.
While reading the sub project task, Tsk.IsSubproject shall be false for the tasks of sub-project but for the task where the sub-project is inserted it shall be true.
For more clarification, please run this code sample for your project:
Project prj = new Project(settings);
// Create a ChildTasksCollector instance
ChildTasksCollector collector = new ChildTasksCollector();
// Collect all the tasks from RootTask using TaskUtils
TaskUtils.Apply(prj.RootTask, collector, 0);
// Parse through all the collected tasks
foreach (Task tsk in collector.Tasks)
{
Console.WriteLine("Task Id: {0}", tsk.Get(Tsk.Id));
Console.WriteLine("Task Uid: {0}", tsk.Get(Tsk.Uid));
Console.WriteLine("Task Name: {0}", tsk.Get(Tsk.Name));
Console.WriteLine("Is Subproject: {0}", tsk.Get(Tsk.IsSubproject));
Console.WriteLine("Task Start: {0}", tsk.Get(Tsk.Start));
Console.WriteLine("Task Finish: {0}", tsk.Get(Tsk.Finish));
}
The above solution is working if I try to read MPP project using MPP file, but if I try to read the project from Project Server 2016 I was able to read the subproject as Task, but that tasks fetches zero children. More over the flag IsSubProject on that task reads as false. This behavior is not specific to a project file from Project Server, if I try to read any project with type 6 (MasterProject) am having similar behavior.
Thank you for your feedback.
We have logged this issue with ID “TASKSNET-2732” for further investigation. You will automatically be informed here once we have more information to share.
The issues you have found earlier (filed as TASKSNET-2732) have been fixed in this update. This message was posted using BugNotificationTool from Downloads module by MuzammilKhan
Thank you for writing back to us.
We have logged this issue with ID “TASKSNET-2898” for further investigation. You will automatically be informed here once we have more information to share.
@MuzammilKhan
Thanks for the update, please do confirm when could we expect the same.
Also do let me know if I could try any pre-release version of this some how.
The issues you have found earlier (filed as TASKSNET-2898) have been fixed in this update. This message was posted using BugNotificationTool from Downloads module by MuzammilKhan
We have logged this issue with ID “TASKSNET-3024” for further investigation. You will automatically be informed here once we have more information to share.
We have investigated the issue and the exception is thrown and caught in Aspose.Tasks internal code, and you can examine such exceptions with “Break when thrown” (or similar) option enabled in IDE.
If the exception was not-handled, then you wouldn’t be able to examine “.Resources.GetByUid(iRscUid).Assignments” property.
Could you please confirm that the exception is “handled” and test application is not crashing? Secondly, can you please share stack trace/ log with us?
It is requested to kindly confirm if “Call Stack” window in IDE has the similar content as shown in this image HandledException.png (73.6 KB) (the right bottom window) and if it the content is different then kindly share Call Stack with us.