Remaining duration issue

M

Makkan

Hi all,

I encountered a weird behavior while copying existing tasks into a new
project through PSI.
I have a project with one task that begins at 01/01/08, finishes at
01/09/08, has a duration of 8 days and, lets say, is 50% completed. If I now
copy the project through PSI (creating a new project and copying every task
in the ProjectDataSet), the finish date of the copied task has moved to
01/05/08 and the percentage completed changed to 0%.
Through intensive testing I found out that the remaining duration
(TASK_REM_DUR) is used to calculate the finish date of the task instead of
the real duration (TASK_DUR). If I set the TASK_REM_DUR to TASK_DUR the dates
are fine. But in every case the completion is set to 0%. I tried to set the
actual duration (TASK_ACT_DUR) and the percentage completed (TASK_PCT_COMP)
but this changed nothing.
I would like to have the copied task to have the same properties as the
original task (that means the SAME start and finish dates and the SAME
completion state).

Code to copy a task (where row is the TaskRow of the original project):

ProjectDataSet.TaskRow newRow = targetProjectDataSet.Task.NewTaskRow();
newRow.ItemArray = row.ItemArray;


Has anybody had this issue or is this a bug?
Thanks for any help.
 
S

Stephen Sanderlin

ProjectDataSet.TaskRow.TASK_ACT_DUR is read-only, as is
ProjectDataSet.TaskRow.TASK_PCT_COMP.



You need to use the Statusing web service to make these changes.



References:

http://msdn.microsoft.com/en-us/library/websvcproject.projectdataset.taskrow.task_act_dur.aspx

http://msdn.microsoft.com/en-us/library/websvcproject.projectdataset.taskrow.task_pct_comp.aspx

http://msdn.microsoft.com/en-us/library/bb428845.aspx

http://msdn.microsoft.com/en-us/library/bb428844.aspx


--

Stephen Sanderlin

Principal Consultant

MSProjectExperts



For Project Server Consulting: http://www.msprojectexperts.com

For Project Server Training: http://www.projectservertraining.com



Read my blog at: http://www.projectserverhelp.com/

Join the community at: http://forums.epmfaq.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top