Dont get all baselines from mpp file

I have method which retrieve all baselines of task, however it seems that there is only one baseline but in microsoft project I set like 3.

My method

    public static List<BaselineDto> GetAllBaseLine(this Task task)
    {
        if (task?.Baselines == null)
        {
            return new List<BaselineDto>();
        }

        return task.Baselines.Select(baseline => new BaselineDto
        {
            Duration = new DurationValueDto
            {
                TimeSpan = baseline.Duration.TimeSpan,
                TimeUnit = baseline.Duration.TimeUnit
            },
            Finish = baseline.Finish,
            Interim = baseline.Interim,
            Start = baseline.Start,
            DurationFormat = baseline.DurationFormat,
            EstimatedDuration = baseline.EstimatedDuration,
            FixedCost = baseline.FixedCost,
            TimephasedData = baseline.TimephasedData.ToList(),
            Bcwp = baseline.Bcwp,
            Bcws = baseline.Bcws,
            Cost = baseline.Cost,
            Work = baseline.Work.ToDouble(),
            BaselineNumber = baseline.BaselineNumber
        }).ToList();
    }

Mpp file and screenshot of baselines in it
Screenshot_158.png (7.0 KB)
тест база.zip (447.3 KB)

@Vardan21,
according to the current logic, baselines 1-10 without duration and start date are considered empty and are skipped during loading of MPP.

We will investigate further and consider whether the logic should be changed to allow reading of incomplete baselines.

1 Like

@Vardan21
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): TASKSNET-10948

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

The issues you have found earlier (filed as TASKSNET-10948) have been fixed in this update.