M
Makkan
Hello,
I add tasks into the Project DataSet that comes through PSI.
I have 2 tasks given in Project Pro, none of them is a summary task yet. The
first is the default task where I want to add the tasks below, the second
(and perhaps third, fourth etc) are user specified.
For first task to be inserted I set AddPosition to AddPositionType.Middle,
AddAfterTaskUID to the default task and TASK_OUTLINE_LEVEL to default task's
level + 1 . Each next task's AddAfterTaskUID is set to the previous inserted
task and the same TASK_OUTLINE_LEVEL.
If I add more than 30 tasks this way I get an exception "TaskUnableToInsert"
from Project Server. It can also happen that some inserted tasks are moved
out of the default task and appear somehere else.
If no task exists after the default task everything works fine.
Does anybody know this strange behavior? Is there a workaround, e.g. insert
the tasks at the end (AddPositionType.Last) and then move them to the default
task? I am going nuts on this for some days now!!!
I add tasks into the Project DataSet that comes through PSI.
I have 2 tasks given in Project Pro, none of them is a summary task yet. The
first is the default task where I want to add the tasks below, the second
(and perhaps third, fourth etc) are user specified.
For first task to be inserted I set AddPosition to AddPositionType.Middle,
AddAfterTaskUID to the default task and TASK_OUTLINE_LEVEL to default task's
level + 1 . Each next task's AddAfterTaskUID is set to the previous inserted
task and the same TASK_OUTLINE_LEVEL.
If I add more than 30 tasks this way I get an exception "TaskUnableToInsert"
from Project Server. It can also happen that some inserted tasks are moved
out of the default task and appear somehere else.
If no task exists after the default task everything works fine.
Does anybody know this strange behavior? Is there a workaround, e.g. insert
the tasks at the end (AddPositionType.Last) and then move them to the default
task? I am going nuts on this for some days now!!!