Tuesday, July 9, 2013

*FIXED* #ProjectServer2013 bug? - cannot close in progress timesheet periods

Timesheet periods cannot be closed "bug"(?):

** UPDATE:  THIS IS NOW FIXED WITH THE JUNE 2013 CUMULATIVE UPDATE FOR PROJECT SERVER 2013 **
http://support.microsoft.com/kb/2817341

The following has been repro'd on 
- an Project Server 2013 (RTM) - next step is June CU
- project online

Repro:
- Create a number of resources/users
- Set up timesheet periods
- Test 1: TS periods can be closed
- Create a timesheet (one user)
- Save timesheet
- Test 2: Close timehseet period (same period as timesheet created in) = Result - TS period cannot be closed 

Note:  you can also note a javascript error in IE at line 1409.  When you look at the source code, this appears to point to a page with the URL /pwa/_Layouts/15/pwa/admin/PeriodCloseConfirmation.aspx
Now I don't know if this is a legacy page or not, but if you navigate to this page you see this (which is exactly what I want to see when closing a period)


So what this means if this means is:- if you are running timesheets it is impossible to exempt some users from timesheets submission as periods wont be able to be closed!! 

Another fail in this is that the Timesheet Status flag is extremely unreliable. I have seen many examples where a timesheet returns to 0 State (not submitted) event when it is approved. This will also trigger this failure to close timesheet periods.

It's my belief that this is not by design behavior due to the existence of this page, which suggests it is an override to allow periods to be closed: