Skip to main content

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

  1. In your SQL Server Management Studio instance, locate the Identity Recovery database. The default name is NetwrixRecovery.
  2. 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
  1. Update the Status column for that row to 8 (Failed):
UPDATE TaskInstances SET Status = 8 WHERE ID = '%targetID%'
  1. Restart the Netwrix Recovery Task Server service on the Identity Recovery server.
  2. In the console, start a new scan for the affected domain, tenant, or org.

TaskInstances.Status Values

ValueMeaning
0Initialized
1Running
2Paused
4Stopped
8Failed/Error
16Completed/Finished
32Waiting