PSI error when adding an Assignment

T

tfz

Hello,

I'm using MS Project 2007, SP1, with the latest Infrastructure Update.

I'm trying to add an assignment via the PSI, using the
Assignment.AddAssignmentRow method, and then calling the
Project.QueueAddToProject method. I'm adding an Assignment, NOT a task, but
when I call the QueueAddToProject method and send in my ProjectDataSet that
contains ONLY my new assignment, I get the following error:

Error summary/areas:
GeneralQueueException
GeneralQueueException
Queue
GeneralQueueJobFailed
Error details:

<?xml version="1.0" encoding="utf-16"?>
<errinfo>
<general>
<class name="GeneralQueueException">
<error id="9131" name="GeneralQueueException"
uid="dfcd4c04-5f4f-4dff-bd66-15fb1c7974ff" messageID="2"
exception="Microsoft.Office.Project.Scheduling.SchedulingException: The
ITaskTable already contains this task.
at Microsoft.Office.Project.Scheduling.TaskTable.Insert(ITask task)
at
Microsoft.Office.Project.Server.BusinessLayer.SchedulingData.CreateNewRows()
at
Microsoft.Office.Project.Server.BusinessLayer.SchedulingData.LoadData(Boolean
isDelete)
at
Microsoft.Office.Project.Server.BusinessLayer.ProjectMain.LoadSchedulingData(Boolean isDelete, Int32 revisionCounter)
at
Microsoft.Office.Project.Server.BusinessLayer.ProjectMain.HandleProject(ProjectDataSet
dataset, Guid projectUid, Guid userUid, String userName, Boolean isNew,
Boolean addColumns, ProjectLocks projectLock, Boolean fCheckReadOnly, Boolean
fCheckProtectedActuals, Boolean fAllowAddEntRes, Boolean fOptIndexRecalced)
at
Microsoft.Office.Project.Server.BusinessLayer.ProjectMain.HandleProject(ProjectDataSet
dataset, Guid projectUid, Guid userUid, String userName, Boolean isNew,
Boolean addColumns, ProjectLocks projectLock, Boolean fCheckReadOnly, Boolean
fCheckProtectedActuals, Boolean fAllowAddEntRes)
at
Microsoft.Office.Project.Server.BusinessLayer.ProjectMain.HandleProject(ProjectDataSet
dataset, Guid projectUid, Guid userUid, String userName, Boolean isNew,
Boolean addColumns, ProjectLocks projectLock)
at
Microsoft.Office.Project.Server.BusinessLayer.ProjectQueueDispatch.HandleProject(MessageContext
mContext, ProjectMain project, ServerEventManager sem, ProjectDataSet
dataset, Guid projectUid, Guid userUid, String userName, Boolean isNew,
Boolean addColumns, ProjectLocks projectLock)
at
Microsoft.Office.Project.Server.BusinessLayer.ProjectQueueDispatch.InternalDispatchMessage(PlatformContext
context, Message msg, Group messageGroup, JobTicket jobTicket, MessageContext
mContext)" />
</class>
<class name="Queue">
<error id="26000" name="GeneralQueueJobFailed"
uid="b0e1c2f4-f893-4a9d-a15b-702f3488dea1"
JobUID="303ccf41-ed71-4506-a01c-5713bed7f5fc" ComputerName="KCSPAPP1"
GroupType="ProjectUpdate" MessageType="" MessageId="" Stage="" />
</class>
</general>
</errinfo>

Can anyone tell me what this error means?

Thanks!
--tfz
 
M

Mike Glen

Hi tfz,

Try posting on the microsoft.public.project.developer newsgroup. Please see
FAQ Item: 24. Project Newsgroups. FAQs, companion products and other
useful Project information can be seen at this web address:
http://project.mvps.org/faqs.htm

Mike Glen
Project MVP
 
T

tfz

It appears that this error only occurrs if there are blank lines (aka null
tasks) in the project that I'm trying to update. If there aren't any blank
lines (null tasks), then the code works as expected.

Hope that info helps some other poor shmutz like me who might be trying to
add tasks via the PSI.

Note to Microsoft: I don't think I could be any more frustrated with your
software than I am right now. I know you're trying to make it work, but
geesh, everything I try to do is met with some obscure error. Nothing seems
to work as advertised. Quality, people, focus on quality!
 

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