Cannot insert more than 30 Tasks????

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!!!
 
M

Makkan

If I remove the constraints for dates I can add more tasks, about 50.
What the frak is going on?
 
M

Makkan

Dirty workaround found:

If I add all tasks in blocks of 30, and each block is added after the
default task, it seems to work. This totally distorts the original task order
but I dont care any longer. Still I dont know why this happens..mimimi
 
T

Timo Lenz

I'm at the same point! Few steps away from going crazy!

Is there any comment from an ms-pro?
 
M

Makkan

Problem re-occured.

I tried the following:

Inserted tasks one by one and updated project after each. Then eventually
the insertment failed and I opened the project to see what happened. Task 29
was NOT added after task 28 but anywhere before it. And Task 30 then failed
to be added after task 29. That seems to be the problem, something goes wrong
while inserting. I will have to build a small sample app to narrow all
possiblities for this error. But this will take some time and the error
message from project server is without further detail WHY inserting failed
(all error messages are quite .. well .. <something negative here>).

Will report back if I discover anything.
 
Top