Audience: On-call / Ops / DBAs. Symptom → diagnosis → fix → prevention.

The dominant failure mode is warehouse staleness — reports read a synced copy, not live data. Most "report is wrong" tickets are sync lag or a filter, not the report engine.


1. Warehouse data is stale

Symptom: reports lag behind live data by more than a few seconds.

Diagnose: the DataSynchronizationService (30s worker) or one of the SyncBIData() calls may be failing/slow. Check the worker is alive and its logs; check ProcedureExecutionContainer for procedure failures.

Fix: restart the worker; fix the failing SyncBIData() path or SQL procedure.

Prevent: monitor the sync worker and alert on lag (last-sync age).

2. A specific report type is stale, others fine

Symptom: e.g. payroll reports lag but employee reports don't.

Diagnose: the per-service sync is independent — _payrollService.SyncBIData() vs _personService.SyncBIData(). One can fail alone.

Fix: investigate that service's sync; the others are unaffected.

3. "Numbers are wrong"

Symptom: report figures don't match expectations.

Diagnose, in order:

  1. Date filter (After/Before/Between/On/YTD) and scope — the usual cause.
  2. Warehouse lag — is the change newer than the last sync?
  3. Genuine mismatch — warehouse vs source disagree beyond lag → a sync/aggregation bug.

Fix: correct the filter; wait out lag; escalate a genuine mismatch with the report + source ids.

4. Report is very slow / times out