V
virsharma
We have a project plan which is to be updated programmatically using PSI.
When we are trying to add a child task to a summary task(which does not have
any constraint defined )the project plan gets updated successfully using PSI.
But when we try to a child task to a summary task (having constraint )the
project plan does not get updated successfully.
To overcome this problem we are removing the constraint from the summary
task and then adding child task to it ( same behavior is shown by project
professionally when done manually).
projectSvc.QueueUpdateProject(Guid.NewGuid(), projectSessionUid,
projDsUpdate, false);
projectSvc.QueueAddToProject(jobId, projectSessionUid,
projDs, false);
projectSvc.QueuePublish(jobId, projectId, true, String.Empty);
But when project is getting published following error is thrown: “Queue
request failed "CorrelationBlocked" ‘.
Q#1: How can we add a child task when parent task is havening constraint?
Q#2: If we are removing the constraint and putting on the child task like
project professional, code is producing above errors.
Thanks for Help !!!
When we are trying to add a child task to a summary task(which does not have
any constraint defined )the project plan gets updated successfully using PSI.
But when we try to a child task to a summary task (having constraint )the
project plan does not get updated successfully.
To overcome this problem we are removing the constraint from the summary
task and then adding child task to it ( same behavior is shown by project
professionally when done manually).
projectSvc.QueueUpdateProject(Guid.NewGuid(), projectSessionUid,
projDsUpdate, false);
projectSvc.QueueAddToProject(jobId, projectSessionUid,
projDs, false);
projectSvc.QueuePublish(jobId, projectId, true, String.Empty);
But when project is getting published following error is thrown: “Queue
request failed "CorrelationBlocked" ‘.
Q#1: How can we add a child task when parent task is havening constraint?
Q#2: If we are removing the constraint and putting on the child task like
project professional, code is producing above errors.
Thanks for Help !!!