Audience: on-call engineers, Ops, senior Support. Symptom → diagnosis → fix for People/org/HRIS-sync incidents.

Companion: technical.md, hris-integrations.md, how-to.md.

⚠️ Direct SQL runs against a tenant DB — confirm the correct (OrganisationId, CompanyId) first; prefer app endpoints.


1. Org chart is wrong / stale

Symptom: reporting lines on Org. Chart don't match the managers set.

Diagnosis: the chart is materialised by OrganisationChartContainers_Trigger from Person.ManagerId. It can lag after bulk manager changes.

Fix: correct the offending ManagerId(s); the trigger re-materialises. If still stale, ⚠️ VERIFY the manual rebuild path (re-run the org-chart materialisation). Watch for cycles (A→B→A) — they break the tree.

2. HRIS sync not reflecting (Fusion/generic)

Symptom: a change made in the external HRIS isn't in PaidHR.

Check, in order:

  1. Was a webhook received? (Integration/*Notification)
  2. Is the worker running? (5-min cron; look for "… synchronization job failed for organisation group {companyKey}" in logs)
  3. Does the employee carry the correct IntegrationUniqueId? (mismatch → upsert misses)

Full detail: hris-integrations §6.

3. Duplicate employees from an integration

Cause: IntegrationUniqueId absent/mismatched → the upsert didn't find the existing Person and inserted a new one.

Fix: reconcile the keys; merge/deactivate the duplicate. Prevent by ensuring the external key is mapped before enabling sync.

4. Admin locked out / can't do something

Check: their admin role tier, internal-vs-external status, and whether they're the Primary Admin. PrimaryAdminHasFullAccess and ChangePrimaryAdmin govern top-level access (technical §28–29). The deep permission model lives in the Roles & Permissions subsystem.