Collection Scan Stuck in Running Status
Symptom
A collection scan (Active Directory, Entra ID, or Okta) remains in Running status indefinitely. The console shows no status details or error messages, and the scan never completes or times out.
Cause
The scan hung during its collection step. Netwrix Identity Recovery does not apply a timeout to collection work for any of the three scan types, so a stalled directory query, Graph call, or Okta API call leaves the task instance at Running with no automatic recovery.
Resolution
- In your SQL Server Management Studio instance, locate the Identity Recovery database. The default name is
NetwrixRecovery. - Run a query to find the stuck task instance for the affected task:
SELECT TOP 1 * FROM TaskInstances WHERE TaskID = '%taskID%' ORDER BY ID DESC
- Update the
Statuscolumn for that row to8(Failed):
UPDATE TaskInstances SET Status = 8 WHERE ID = '%targetID%'
- Restart the
Netwrix Recovery Task Serverservice on the Identity Recovery server. - In the console, start a new scan for the affected domain, tenant, or org.
TaskInstances.Status Values
| Value | Meaning |
|---|---|
| 0 | Initialized |
| 1 | Running |
| 2 | Paused |
| 4 | Stopped |
| 8 | Failed/Error |
| 16 | Completed/Finished |
| 32 | Waiting |