Set actual work time for task without assignments in non-working day RRS feed

  • Question

  • I am trying to set actual work time for task without assignments (for “unassigned” resource) via TimeScaleData in non-working day and I am getting “The argument value is not valid.” exception all the time. For difference same code works correctly for working days. Here is code sample:

    TimeScaleValues actualWorkValues = task.TimeScaleData("12.18.2010", "12.18.2010",
    actualWorkValues[1].Value = 480.0;

    I also tried to change non-working day to working, after I entered actual work time, and at the end I returned back day as non-working. In this case code pass successfully,but project recalculated times and it moved my entered time as time for first working day (for example next Monday). For difference Project allows entering time on task with "unassigned" resource on non-working day.

    How can I enter this time via Interop?

    Sunday, December 19, 2010 10:01 PM