Cascade Skyline - with Microsoft Logo and Project Support header - author Brian Smith

Project Server 2007: Have you ever got stuck in the timesheet import page?

Project Server 2007: Have you ever got stuck in the timesheet import page?

  • Comments 4

I was working on a case today where a bug in one place makes something break elsewhere. And the added challenge here is the original problem probably goes un-noticed so isn’t obviously a problem.

If you have ever tried to import a timesheet on the My Tasks page, and the screen flashed but nothing happened – and the only way out was to press Cancel then you may have this problem.  The timesheet does not restrict the tasks that you can add in the same way they show in My Tasks.  Either through Add Lines, or using the automatic method from Server Settings, Timesheet Settings and Defaults page (By default, timesheets will be created by using:  Current task assignment) you could end up with lines on your timesheet where you are not the assignment owner.  It is this that breaks the import.  You will also notice that these tasks do not appear on your My Tasks page.

In many cases I’m guessing that you do expect to be the assignment owner, and some earlier (now fixed) bugs may have led to projects and templates having the incorrect assignment owner for your assignments.  The workaround is therefore to either correct the assignment owner and republish – or remove the tasks from the timesheet if the assignment owner is valid (and not you).

For those searching the following are the errors at various levels that you would find in the ULS logs as a result of this problem.  Not great reading – but the search engines appreciate it.

Exception Level Log
Exception occurred in method Statusing.ImportTimesheet System.ArgumentException: Statusing - Cannot create new Saved Task for resource's task modifications.  Parameter name: taskData     at Microsoft.Office.Project.Server.BusinessLayer.Statusing.CreateSavedTask(PlatformContext context, DalDataAccess dataaccess, ISvrDocEdit doc, ITaskData taskData)     at Microsoft.Office.Project.Server.BusinessLayer.Statusing.ImportTimesheet(Guid periodUID)     at Microsoft.Office.Project.Server.WebService.Statusing.ImportTimesheet(Guid periodUID)

Verbose Level Log
Error is: GeneralUnhandledException. Details: Attributes:  System.ArgumentException: Statusing - Cannot create new Saved Task for resource's task modifications.  Parameter name: taskData     at Microsoft.Office.Project.Server.BusinessLayer.Statusing.CreateSavedTask(PlatformContext context, DalDataAccess dataaccess, ISvrDocEdit doc, ITaskData taskData)     at Microsoft.Office.Project.Server.BusinessLayer.Statusing.ImportTimesheet(Guid periodUID)     at Microsoft.Office.Project.Server.WebService.Statusing.ImportTimesheet(Guid periodUID)  . Standard Information: PSI Entry Point: Statusing.ImportTimesheet  Project User: REDMOND\pkmuser2  Correlation Id: f5af0b6e-a9be-4b88-88fa-3529021a1696  PWA Site URL: http://servername/pwa  SSP Name: SharedServices1  PSError: GeneralUnhandledException (42)

Medium Level Log
PWA:http://servername/pwa, SSP:SharedServices1, User:DOMAIN\User, PSI: Statusing.ImportTimesheet  Undefined Attributes: PSError: GeneralUnhandledException  Undefined attributes list: System.ArgumentException: Statusing - Cannot create new Saved Task for resource's task modifications.  Parameter name: taskData     at Microsoft.Office.Project.Server.BusinessLayer.Statusing.CreateSavedTask(PlatformContext context, DalDataAccess dataaccess, ISvrDocEdit doc, ITaskData taskData)     at Microsoft.Office.Project.Server.BusinessLayer.Statusing.ImportTimesheet(Guid periodUID)     at Microsoft.Office.Project.Server.WebService.Statusing.ImportTimesheet(Guid periodUID)

Verbose Level Log
PWA:http://servername/pwa, SSP:SharedServices1, User:DOMAIN\User, PSI: Statusing.ImportTimesheet  PSI Entry Point: Statusing.ImportTimesheet  Project User: DOMAIN\User Correlation Id: f5af0b6e-a9be-4b88-88fa-3529021a1696  PWA Site URL: http://servername/pwa  SSP Name: SharedServices1  PSError: Success (0) XML: <errinfo><general><class name="An unhandled exception occurred in Statusing.ImportTimesheet."><error id="42" name="GeneralUnhandledException" uid="862074be-9315-4c83-9a1f-66053d785061" /></class></general></errinfo>

Technorati Tags:
Leave a Comment
  • Please add 4 and 1 and type the answer here:
  • Post
  • Thank You. I had same problem with my PMs. They have changed default assignment owner for resources. As result resources can't import timesheets into task at all. this post helped me to solve this issue.

  • Thank you!  This also worked for me.  We had a few tasks that were assigned to someone else as the assignment owner.  Once we changed the owners, things started working and NO MORE ERRORS!

  • I have ONE specific resource who is experiencing this issue. I have gone through every one of her task assignments and confirmed that she is the Assignment Owner on each of her tasks. I've also confirmed that she is her own default assignment owner. Is there anything else I can try?

  • Hi Jim, do you see exactly the same errors in the ULS logs?  Is there a chance the assignment owner changed at some point?  You might need to republish to make sure the right owner is in all the right places.

    Best regards,

    Brian

Page 1 of 1 (4 items)