Task creation issue when parent task is having constraint (using P

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

virsharma

How can I add a task if parent task is having constraint using PSI? I am
getting CorrelationBlocked error in this case.

I am able to add child task successfully if parent task is not having any
constraint.

Thanks & Regards,
Virsharma
 

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