mpxj icon indicating copy to clipboard operation
mpxj copied to clipboard

Issue with subprojects for .mpp files (using MS Project 2010)

Open AndrewLGoldman opened this issue 6 years ago • 1 comments

Hey there,

Just found what I believe to be a new issue - we use MS Project 2010 files where I work, and I'd like to use your library, but I seem to have an issue with subprojects

To better explain -- from time to time, we will have one "macro" schedule that has many sub "micro" project schedules embedded into it

But in .NET / C#, when I use Task.SubProject.FullPath, sometimes it misses subprojects that are definitely linked (I have 1 macro schedule with 11 micro schedules attached as subprojects), and other times it's grabbing subprojects that aren't actually subprojects at all but successor or predecessor references to other .mpp files (just because their a successor or predecessor doesn't mandate them being a subproject)

Ultimately the field I'm trying to get at is "Subproject File" which is a native field in MS Project 2010, not even a custom field, and it doesn't appear that I can get this information today (screenshot of native field attached today) subprojectFile

After further reviewing this issue - while the predecessor/successor issue still appears to be an issue, the other reason I wasn't seeing some actual subprojects was because they were added as "read only" inserted projects per the "Indicators" column, screenshot below --

secondPicture

I'm able to see everything without the red ! point, but all the red ! is indicating is that they were added as read only, so I would think I should still be able to get the "Subproject File" name

AndrewLGoldman avatar Sep 26 '19 21:09 AndrewLGoldman

Can you construct a set of sample files that I can work with and outline what the expected results are versus what you're actually getting with MPXJ? Thanks!

joniles avatar Nov 29 '19 18:11 joniles