none
Can't set duration field on new task using CSOM RRS feed

  • Question

  • I'm trying to update the duration field on tasks using CSOM, but the following is happening. If the task already has a duration value, then CSOM sets the new value without a problem. But if the task still doesn't have a value, then the new value added by CSOM, doesn't get saved.

    This is my data:

    For instance, if in the code I set the value of task "dois" to "2.00" then on the project schedule, I'll see "2d". However, if I in the code I set the value of "um" to "5.00", then when I check the schedule again, the duration field for "um" will still be blank. Furthermore, when I'm reading the duration value for "um" using CSOM, the value is actually "1d" and not blank as it appears on the project schedule.

    Any ideas?

    Thursday, July 28, 2016 4:15 PM

Answers

  • Your problem is related to manual mode tasks. If you used Automatically Scheduled Tasks then the problem wouldn't occur. Manual mode should only be used for initial high level "I've no idea how long this will take" pictures. After that default auto.

    You could try setting [Scheduled Duration] instead, but I still recommend not using Manual mode..


    Rod Gill
    Author of the one and only Project VBA Book
    www.project-systems.co.nz

    • Marked as answer by Pedro Gordo Monday, August 1, 2016 10:08 AM
    Sunday, July 31, 2016 7:37 PM
    Moderator