Timesheet is locked preventing users from being able to edit the timesheet.
In Classic Clarity, a TMA-0111 error can occur when attempting to perform an operation that saves a timesheet, e.g populate, submit, add task, return.
One or more of the following symptoms are observed:
5. When data is saved, and user goes back to the timesheet to review the task hours, the save does not take place.
Example:
Release: All
A time entry lock is temporary and should be released immediately from the the PRLOCK table. In some cases the lock may not be cleared on it's own, one known cause is if there is a Database disconnect/outage
If on 15.7 or higher, see TMA-0111 error when saving timesheet where Administrators can use security.locks to remove the timesheet lock.
If on 15.6.1 or lower, or if the above step does not help, see the below.
Use the following details to resolve the issue.
1. Run the following query:
--Oracle
select * from prlock
where (prtablename = 'PRTIMESHEET'
and prname = '~prTimeEntry') or (prtablename = 'SRM_RESOURCES' and prname = '~prTimesheetCreate')
and prlockedsince < sysdate - 0.042
--MSSQL
select * from prlock
where (prtablename = 'PRTIMESHEET'
and prname = '~prTimeEntry') or (prtablename = 'SRM_RESOURCES' and prname = '~prTimesheetCreate')
and prlockedsince < getdate() - 0.042
--PostgreSQL
select * from prlock
where (prtablename = 'PRTIMESHEET'
and prname = '~prTimeEntry') or (prtablename = 'SRM_RESOURCES' and prname = '~prTimesheetCreate')
and prlockedsince < now()::DATE
2. If the query returns any results, run this query:
--ORACLE
delete from prlock
where (prtablename = 'PRTIMESHEET'
and prname = '~prTimeEntry') or (prtablename = 'SRM_RESOURCES' and prname = '~prTimesheetCreate')
and prlockedsince < sysdate - 0.042;
commit;
--MSSQL
delete from prlock
where (prtablename = 'PRTIMESHEET'
and prname = '~prTimeEntry') or (prtablename = 'SRM_RESOURCES' and prname = '~prTimesheetCreate')
and prlockedsince < getdate() - 0.042
--PostgreSQL
delete from prlock
where (prtablename = 'PRTIMESHEET'
and prname = '~prTimeEntry') or (prtablename = 'SRM_RESOURCES' and prname = '~prTimesheetCreate')
and prlockedsince < now()::DATE
NOTE: **This error could also occur in Classic view due to duplicate timesheets in the database. Please see below KB000004723 for steps to resolve.
WORKAROUNDS: