Customers of ours have been reporting that milestone tasks (0 duration - often used for external dependencies like waiting on a permit) were losing their percent complete whenever they tried to load them into our system.
I downloaded the latest evaluation version and was able to reproduce the issue when calling Recalculate. Attached is a simple one line mpp with Percent Complete = 100%. After loading the file and calling recalculate, the value becomes zero.
var project = new Project(“milestone.mpp”);
var task = project.RootTask.Children.FirstOrDefault();
var originalPercentComplete = task.Get(Tsk.PercentComplete);
project.Recalculate();
var recalculatedPercentComplete = task.Get(Tsk.PercentComplete);
Is there a way to prevent this from happening?
Thanks