Missing ActualDuration when reading p6 .xer file
Multi platform library to read and write schedule data
Brought to you by:
joniles
Hello,
I use C# version of mpxj to read p6 .xer file.
I can find origial Duration in BaselineDuration , but i can't get Actual Duration in any related duration properties.
For example,
Activity ID: EC1000 Name:Design Building Addition
has 55d origial duraiton and 26d acutal duration.
I can only get 441.6h from task.BaselineDuration.I can't find 202.25h in any properties.
It's a calculated field. When I tried to pull the actual duration directly, like actual_duration = task.ActualDuration, I got a null exception - nothing would be returned, so the below code would work.
This is for an individual task, so you may have to loop through each task to get the actual duration for each one.
actual_duration = project.getDuration(task.Calendar.Name, task.ActualStart, task.ActualFinish).Duration
Just doing some housekeeping and looking at old tickets. To confirm: you should be able to retrieve these actual duration values using the current version of MPXJ.