Menu

#302 Missing ActualDuration when reading p6 .xer file

v1.0_(example)
closed-fixed
nobody
Primavera (2)
5
2024-03-12
2016-10-27
Steven Wu
No

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.

2 Attachments

Discussion

  • P D

    P D - 2018-03-14

    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

     
  • Jon Iles

    Jon Iles - 2024-03-12

    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.

     
  • Jon Iles

    Jon Iles - 2024-03-12
    • status: open --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB