The Identity Manager Task Persistence (TP) database may experience performance issues or task execution failures when large volumes of rows accumulate in object12_5 tables. This article provides SQL strategies to resolve Msg 1204 lock resource errors encountered during table cleanup.
Identity Manager 14.5
Large datasets in the TP DB can exceed SQL Server lock resources during table cloning or archiving processes, resulting in an inability to obtain the necessary locks (Msg 1204).
Apply Table-Level Locking: Use table-level locking (TABLOCKX) instead of the default row-level locking to minimize contention during the insert operation: INSERT INTO archive_object12_5 SELECT * FROM object12_5 WITH (TABLOCKX);
Execute Chunked Cleanup: If table-level locking does not resolve the error, use a chunking strategy to copy data in smaller increments: INSERT INTO archive_object12_5 SELECT * FROM object12_5 WHERE objectid LIKE 'a%' AND objecttype='2';
Repeat step 2 for all hexadecimal ranges (1% through f%) and object types as necessary to complete the migration of data to the archive table.
To speak with a customer representative or a Support Engineer see . Scroll to the bottom of the page and click on your respective region.