Hi,
DBMS 2627 is a SQL Server "duplicate key / primary key violation" error. In this case, it's happening in the FillTimesheetsListTempTable stored procedure, which builds a temporary list of timesheets for the PTE navigation window, so this means there's a duplicate/orphaned record somewhere that's colliding when the temp table tries to populate.
This is a known issue pattern in PTE (Project Time and Expense) — it was flagged and addressed in the GP 2016 RTM fix list for the same exact procedure, so if you're on an older build, a hotfix/update may resolve it directly. Worth checking your current GP version/build against the latest cumulative update.
Since clearing temp tables and stuck batches didn't resolve it, the more likely cause now is a duplicate timesheet record sitting in both the work and history-related PTE tables (similar to the classic AP "record exists in both work and history" scenario that causes this same DBMS 2627 pattern). A few steps to narrow it down:
1. Identify which specific timesheet is the culprit. Since the error fires immediately when navigating to Timesheets (not tied to one user action), check if a specific timesheet — possibly one of the ones already stuck/failed in your Approve/Complete screenshot (you show "1 failed" in the batch action) — has a duplicate entry across PTE's underlying SQL tables (e.g., check PA00300/related PTE work tables for duplicate TIMESHEETID + line combos).
2. Check the timesheet that failed approval. Your screenshot shows "Approve/Complete action completed. 12 succeeded; 1 failed" — that failed one is a strong candidate. If its approval got interrupted mid-process, it may now exist in a state that conflicts with the temp table build (similar to the AP posting-interruption cause Microsoft describes for this same error type).
3. Take a SQL backup first, then have your DBA/partner query the PTE-related tables for duplicate TIMESHEETID values (work vs. history) to confirm and manually remove the conflicting record — this mirrors Microsoft's official resolution for the same DBMS 2627 error in Payables (KB 852808), just applied to the PTE tables instead of PM tables.
4. If you don't have direct DB access/expertise for this, this is a good candidate to escalate to your GP partner or Microsoft Support, since manually clearing duplicate SQL records needs care to avoid further data issues.
If you can identify the failed timesheet's ID, checking that record specifically in SQL would be the fastest path to confirming the root cause.