Timesheet Incorrect Mode in Event

D

Debi Wells

Project Server 2007. Timesheet OnUpdating Event. My process uses context
info to pull up the timesheet dataset, alter the actuals for one specific
line, then push that dataset delta to the queue with the QueueUpdateTimesheet
method. I used the codeplex EPM timesheet example as a starting base, for
Derived classes and impersonation. The reporting Timesheet queue entries
work, but the Timesheet update does not, failing with the
TimesheetIncorrectMode error, then blocking the remaining queue. I have
tried using e.cancel, to make sure these entries are not conflicting with the
original changes, but I still get the same error message.
Does anybody have any better information on that error, or an example that
updates timesheet actuals from a Timesheet event?
 
S

Stephen Sanderlin [MVP]

This seems to be a problem with the platform itself, where it seems that the
Timesheet gets stuck in the wrong mode for some reason. Try restarting the
Queue service and see if the error goes away.

--
Stephen Sanderlin, Project MVP
VP of Technology
MSProjectExperts

For Project Server Consulting: http://www.msprojectexperts.com
For Project Server Training: http://www.projectservertraining.com

Read our blog at: http://www.projectserverhelp.com

Learn | Connect | Grow @ The Microsoft Project Conference Phoenix, AZ -
September 14-17, 2009
 
D

Debi Wells

We get this same error on multiple different test servers, and restarting the
queue service makes no difference. I can't seem to find documentation on
Timesheet modes, and what that is. Do you know of any references?
 
D

Debi Wells

Are you saying that Timesheet Mode is the same thing as Status?
The Timesheet status is In Progress, so it should accept an update, I would
think.
 
S

Stephen Sanderlin [MVP]

Yes. I do not know why Microsoft chose to name this error
InvalidTimesheetMode, but it refers to the status value.

If you want more diagnostic info, increase the diagnostic logging
settings to their maximum and reproduce the issue. The timesheet service
should emit relevant information into the ULS logs that may help you.

--
Stephen Sanderlin, Project MVP
VP of Technology
MSProjectExperts

For Project Server Consulting: http://www.msprojectexperts.com
For Project Server Training: http://www.projectservertraining.com

Read our blog at: http://www.projectserverhelp.com
 

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