Actual Cost Update - Task Cannot Edit Summary - C#

S

Srivatsan

I am trying to update the Actual cost field as follows
taskRow.TASK_ACT_COST= Convert.ToDouble(666);
But when i update the project, i get the following error

"TaskCannotEditSummary"

Can anyone please tell me if i am missing something or is there any
dependency to do this?
 
J

Jonathan Sofer

I believe you have to check whether the task is a summary task first and you
have to skip edits to the summary tasks as they are not true tasks. The
cost and work and duration fields for summary tasks are calculated based on
the actual tasks that make them up.

Jonathan
 
Top