<aside> 🔁 Synced from GitHub #926b3db33c2a. Edit in the paidhr-system-docs repository, not here: changes made in Notion are overwritten.
</aside>
Behaviour that has caught people before. Check here before debugging from scratch. Each row links to the page that explains it.
| Symptom | Real cause | Page |
|---|---|---|
| An admin sees a button but gets "not permitted" | A service re-checks a permission; admins hold almost none | Roles |
| A notification was "sent" but nobody received it | Recipient not in selections; or a role lookup read only the tenant and missed system roles |
Notifications |
| An ewa-service notice fails with "session invalid" | It used the admin route instead of the signed EWA channel | Messaging |
| Leave stopped accruing for a whole tenant | One bad policy row inside the single accrual transaction | Leave |
| A deleted leave policy still shows | Delete sets IsActive = 0, not IsDeleted = 1 |
Leave |
| A maternity policy covers 0 people | Most people have no gender recorded | Leave |
| A request is stuck with nobody to approve | The chain names a deleted role | Approvals |
| Filtering out declined requests filters nothing | IsDeclined is always NULL; use the status id |
Requests |
| A bulk action fails only for big companies | SQL Server's limit of 2,100 parameters in an IN list |
Time & attendance |
| An email has no subject | The subject is empty in the SendGrid template | Notifications |
| One environment sends the old plain email | Template id variable missing in that environment | Environments |
| Works on dev, 500s on staging | Stored procedure bodies differ between environments | Migrations |
| A migration "applied" but nothing changed | Patch anchor missed; severity-10 message; EF recorded it anyway | Migrations |
| Every query on a table fails after an ewa-service deploy | The tenant column was never added: ewa-service schema sync is off | Databases |
| A background job has no tenant | Context set inside a helper; AsyncLocal doesn't flow back up | Sign-in & tenancy |
| Tenant query uses the wrong company | Used the session's organisation id as a company id | Databases |
| A dropdown saves the wrong record | antd Select falls back to the option index when value is undefined |
Web app |
| A feature toggle turns off on save | Server compares to "yes"; form sent true |
Web app |
| A UI list is always empty although the API returns data | Read the envelope instead of .data |
Web app |
| EWA withdrawal blocked all month | A stuck pending withdrawal; only one per month is allowed | EWA |
| Unpaid leave or absence docks the wrong number of days | Counts company working days, not the shift; Saturday excluded | Payroll |
| A timesheet closes with weeks of hours | Forgotten clock-out; now refused after 24 hours | Time & attendance |