{"timestamp": "2026-03-31 00:19:23.607", "level": "Info", "severity": "INFO", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Application started", "stackTrace": ""}
{"timestamp": "2026-03-31 00:19:23.640", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/xmlrpc.php", "stackTrace": ""}
{"timestamp": "2026-03-31 00:19:23.640", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/wp-login.php", "stackTrace": ""}
{"timestamp": "2026-03-31 00:19:39.335", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/wp-login.php", "stackTrace": ""}
{"timestamp": "2026-03-31 00:19:39.371", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/xmlrpc.php", "stackTrace": ""}
{"timestamp": "2026-03-31 00:20:13.544", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/wp-login.php", "stackTrace": ""}
{"timestamp": "2026-03-31 01:04:19.154", "level": "Info", "severity": "INFO", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Application started", "stackTrace": ""}
{"timestamp": "2026-03-31 01:04:19.187", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/.git/config", "stackTrace": ""}
{"timestamp": "2026-03-31 03:46:42.701", "level": "Info", "severity": "INFO", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Application started", "stackTrace": ""}
{"timestamp": "2026-03-31 04:30:06.595", "level": "Info", "severity": "INFO", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Application started", "stackTrace": ""}
{"timestamp": "2026-03-31 04:30:06.625", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Resources/eng", "stackTrace": ""}
{"timestamp": "2026-03-31 04:30:07.211", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Resources/package-features-eng", "stackTrace": ""}
{"timestamp": "2026-03-31 04:30:07.211", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Health", "stackTrace": ""}
{"timestamp": "2026-03-31 04:30:13.100", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Login", "stackTrace": ""}
{"timestamp": "2026-03-31 04:30:13.136", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Login", "stackTrace": ""}
{"timestamp": "2026-03-31 04:30:13.137", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"Email":"TTK_EHS@oqsha.com","Password":"Oqsha@123","Country":"","Slot":"","PortalVersion":"5.36.0"}", "stackTrace": ""}
{"timestamp": "2026-03-31 04:30:13.918", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations", "stackTrace": ""}
{"timestamp": "2026-03-31 04:30:13.952", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations", "stackTrace": ""}
{"timestamp": "2026-03-31 04:30:15.610", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/AccessControl/Modules/248", "stackTrace": ""}
{"timestamp": "2026-03-31 04:30:15.651", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/AccessControl/Modules/248", "stackTrace": ""}
{"timestamp": "2026-03-31 04:30:15.784", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Resources/eng?orgId=248", "stackTrace": ""}
{"timestamp": "2026-03-31 04:30:15.817", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Resources/eng?orgId=248", "stackTrace": ""}
{"timestamp": "2026-03-31 04:30:24.666", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Divisions", "stackTrace": ""}
{"timestamp": "2026-03-31 04:30:24.709", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Divisions", "stackTrace": ""}
{"timestamp": "2026-03-31 04:30:25.009", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/IncidentLocations?isActive=1", "stackTrace": ""}
{"timestamp": "2026-03-31 04:30:25.033", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/IncidentLocations?isActive=1", "stackTrace": ""}
{"timestamp": "2026-03-31 04:30:25.158", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538/incidentsites?isActive=1", "stackTrace": ""}
{"timestamp": "2026-03-31 04:30:25.188", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538/incidentsites?isActive=1", "stackTrace": ""}
{"timestamp": "2026-03-31 04:30:25.261", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248", "stackTrace": ""}
{"timestamp": "2026-03-31 04:30:25.293", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248", "stackTrace": ""}
{"timestamp": "2026-03-31 04:30:25.438", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538", "stackTrace": ""}
{"timestamp": "2026-03-31 04:30:25.512", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538", "stackTrace": ""}
{"timestamp": "2026-03-31 04:30:27.433", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/Modules", "stackTrace": ""}
{"timestamp": "2026-03-31 04:30:27.516", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538", "stackTrace": ""}
{"timestamp": "2026-03-31 04:30:27.528", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/Modules", "stackTrace": ""}
{"timestamp": "2026-03-31 04:30:27.711", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538", "stackTrace": ""}
{"timestamp": "2026-03-31 04:30:27.788", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538", "stackTrace": ""}
{"timestamp": "2026-03-31 04:30:27.797", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Languages", "stackTrace": ""}
{"timestamp": "2026-03-31 04:30:27.797", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/PendingActionsNotifications", "stackTrace": ""}
{"timestamp": "2026-03-31 04:30:27.797", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248", "stackTrace": ""}
{"timestamp": "2026-03-31 04:30:27.797", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/Modules", "stackTrace": ""}
{"timestamp": "2026-03-31 04:30:27.841", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Languages", "stackTrace": ""}
{"timestamp": "2026-03-31 04:30:27.841", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/PendingActionsNotifications", "stackTrace": ""}
{"timestamp": "2026-03-31 04:30:27.887", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/attachments/organisations/TTK_e54e850a-a12b-4b5f-830c-e5eef42ebe61.png", "stackTrace": ""}
{"timestamp": "2026-03-31 04:30:27.918", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/AccessControl/Modules/248", "stackTrace": ""}
{"timestamp": "2026-03-31 04:30:27.957", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/AccessControl/Modules/248", "stackTrace": ""}
{"timestamp": "2026-03-31 04:30:27.972", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetPendingActionsNotificationsCount",
  "Message": "No password has been provided but the backend requires one (in SASL/SCRAM-SHA-256)",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.NpgsqlException (0x80004005): No password has been provided but the backend requires one (in SASL/SCRAM-SHA-256)
   at Npgsql.NpgsqlConnector.<AuthenticateSASL>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlConnector.<Authenticate>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlConnector.<Open>d__147.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.ConnectorPool.<AllocateLong>d__20.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlConnection.<>c__DisplayClass32_0.<<Open>g__OpenLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
   at IncidentReporter.DAL.Repositories.BaseRepo.<ExecuteQueryAsync>d__7`1.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\BaseRepo.cs:line 78
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.DAL.Repositories.OrganisationRepo.<GetOrganisationPreferences>d__12.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\OrganisationRepo.cs:line 379
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.NotificationsBLL.<GetUserAccessibleModules>d__34.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\NotificationsBLL.cs:line 1731
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.NotificationsBLL.<GetPendingActionsNotificationsCount>d__22.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\NotificationsBLL.cs:line 1146"}
{"timestamp": "2026-03-31 04:30:28.049", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/UserPreference", "stackTrace": ""}
{"timestamp": "2026-03-31 04:30:28.100", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/UserPreference", "stackTrace": ""}
{"timestamp": "2026-03-31 04:30:28.174", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248", "stackTrace": ""}
{"timestamp": "2026-03-31 04:30:28.240", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Training/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 04:30:28.240", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/TaskCategories/Dropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 04:30:28.269", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Training/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 04:30:28.269", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31"}", "stackTrace": ""}
{"timestamp": "2026-03-31 04:30:28.307", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/TaskCategories/Dropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 04:30:28.307", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteId":["708","744","707","705","709","706"]}", "stackTrace": ""}
{"timestamp": "2026-03-31 04:30:28.358", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Divisions/Dropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 04:30:28.390", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Divisions/Dropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 04:30:28.452", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Incidents/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 04:30:28.452", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/KPI/PlantMaster/Sites/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 04:30:28.452", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Inspections/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 04:30:28.452", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/ManagementOfChangeList/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 04:30:28.452", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/PermitToWork/All/Sites/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 04:30:28.452", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/IncidentManagement/Firs/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 04:30:28.452", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Courses/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 04:30:28.452", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Tasks/List/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 04:30:28.452", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Tasks/List/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 04:30:28.472", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Incidents/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 04:30:28.472", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31","CategoryId":[1637,1574,1575,1576]}", "stackTrace": ""}
{"timestamp": "2026-03-31 04:30:28.519", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Tasks/List/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 04:30:28.519", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31","CategoryId":[]}", "stackTrace": ""}
{"timestamp": "2026-03-31 04:30:28.519", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Tasks/List/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 04:30:28.519", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31","AcmModuleId":46}", "stackTrace": ""}
{"timestamp": "2026-03-31 04:30:28.519", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/PermitToWork/All/Sites/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 04:30:28.519", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31"}", "stackTrace": ""}
{"timestamp": "2026-03-31 04:30:28.519", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/ManagementOfChangeList/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 04:30:28.519", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31"}", "stackTrace": ""}
{"timestamp": "2026-03-31 04:30:28.519", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Inspections/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 04:30:28.519", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Courses/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 04:30:28.519", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/IncidentManagement/Firs/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 04:30:28.519", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31"}", "stackTrace": ""}
{"timestamp": "2026-03-31 04:30:28.519", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/KPI/PlantMaster/Sites/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 04:30:28.519", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"]}", "stackTrace": ""}
{"timestamp": "2026-03-31 04:30:28.519", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31"}", "stackTrace": ""}
{"timestamp": "2026-03-31 04:30:28.519", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31"}", "stackTrace": ""}
{"timestamp": "2026-03-31 04:30:28.622", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetMultiSiteTaskCounts",
  "Message": "42883: operator does not exist: task_categories_created_source = text",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42883: operator does not exist: task_categories_created_source = text
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Dapper.SqlMapper.<QueryRowAsync>d__34`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.DAL.Repositories.TaskRepo.<>c__DisplayClass161_0.<<GetTaskCategoryIdByAcmModuleId>b__0>d.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\TaskRepo.cs:line 5082
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.DAL.Repositories.BaseRepo.<ExecuteQueryAsync>d__7`1.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\BaseRepo.cs:line 79
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.DAL.Repositories.TaskRepo.<GetTaskCategoryIdByAcmModuleId>d__161.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\TaskRepo.cs:line 5081
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.TaskBLL.<GetMultiSiteTaskCounts>d__73.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\TaskBLL.cs:line 5471"}
{"timestamp": "2026-03-31 04:30:28.993", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/WorkPermit/Statuses", "stackTrace": ""}
{"timestamp": "2026-03-31 04:30:28.998", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Library/Categories", "stackTrace": ""}
{"timestamp": "2026-03-31 04:30:28.998", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/KPI/EmployeeMasterDropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 04:30:28.998", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/KPI/PlantMasterDropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 04:30:28.998", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/Users/DropDown?ModuleName=Library", "stackTrace": ""}
{"timestamp": "2026-03-31 04:30:29.022", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/WorkPermit/Statuses", "stackTrace": ""}
{"timestamp": "2026-03-31 04:30:29.034", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Library/Categories", "stackTrace": ""}
{"timestamp": "2026-03-31 04:30:29.034", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"OrgId":248}", "stackTrace": ""}
{"timestamp": "2026-03-31 04:30:29.034", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/KPI/EmployeeMasterDropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 04:30:29.034", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"OrgId":[248],"SiteId":["708","744","707","705","709","706"]}", "stackTrace": ""}
{"timestamp": "2026-03-31 04:30:29.034", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/KPI/PlantMasterDropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 04:30:29.034", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"OrgId":[248],"SiteId":["708","744","707","705","709","706"]}", "stackTrace": ""}
{"timestamp": "2026-03-31 04:30:29.045", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/Users/DropDown?ModuleName=Library", "stackTrace": ""}
{"timestamp": "2026-03-31 04:30:29.196", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/KPI/PlantMaster/AverageRatings", "stackTrace": ""}
{"timestamp": "2026-03-31 04:30:29.222", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/KPI/PlantMaster/AverageRatings", "stackTrace": ""}
{"timestamp": "2026-03-31 04:30:29.222", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"KpiId":[21,22,23,24,25,33,34,35,36,37,27,28,29,30,31,38,39,40,41,42,16],"SiteIds":["708","744","707","705","709","706"]}", "stackTrace": ""}
{"timestamp": "2026-03-31 04:30:29.243", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetPlantMasterAverageRatings",
  "Message": "42601: syntax error at or near \"$1\"",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42601: syntax error at or near "$1"
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Dapper.SqlMapper.<QueryAsync>d__33`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
   at IncidentReporter.DAL.Repositories.EmployeeKpiRepo.<GetPlantMasterAverageRatings>d__72.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\EmployeeKpiRepo .cs:line 2371
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.EmployeeKpiBLL.<GetPlantMasterAverageRatings>d__46.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\EmployeeKpiBLL.cs:line 2186"}
{"timestamp": "2026-03-31 04:34:26.916", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/.env.bak", "stackTrace": ""}
{"timestamp": "2026-03-31 04:34:27.656", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/.env.save", "stackTrace": ""}
{"timestamp": "2026-03-31 04:34:27.861", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/.env.local", "stackTrace": ""}
{"timestamp": "2026-03-31 04:34:28.140", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/backend/.env", "stackTrace": ""}
{"timestamp": "2026-03-31 04:34:28.327", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/admin/.env", "stackTrace": ""}
{"timestamp": "2026-03-31 04:34:28.508", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/.git/config", "stackTrace": ""}
{"timestamp": "2026-03-31 04:34:28.708", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/wp-config.php", "stackTrace": ""}
{"timestamp": "2026-03-31 04:34:28.873", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/wp-config.php.old", "stackTrace": ""}
{"timestamp": "2026-03-31 04:34:29.088", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/config.php", "stackTrace": ""}
{"timestamp": "2026-03-31 04:34:29.260", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/config.php.bak", "stackTrace": ""}
{"timestamp": "2026-03-31 04:34:29.439", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/config.js", "stackTrace": ""}
{"timestamp": "2026-03-31 04:34:29.618", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/aws-config.js", "stackTrace": ""}
{"timestamp": "2026-03-31 04:34:29.789", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/aws.config.js", "stackTrace": ""}
{"timestamp": "2026-03-31 04:34:29.985", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/.git/HEAD", "stackTrace": ""}
{"timestamp": "2026-03-31 04:34:30.162", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/.git/config", "stackTrace": ""}
{"timestamp": "2026-03-31 04:34:34.182", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Resources/eng?orgId=248", "stackTrace": ""}
{"timestamp": "2026-03-31 04:34:34.230", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Resources/eng?orgId=248", "stackTrace": ""}
{"timestamp": "2026-03-31 04:34:34.613", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/AccessControl/Modules/248", "stackTrace": ""}
{"timestamp": "2026-03-31 04:34:34.840", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/AccessControl/Modules/248", "stackTrace": ""}
{"timestamp": "2026-03-31 04:34:35.195", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Health", "stackTrace": ""}
{"timestamp": "2026-03-31 04:34:35.195", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Resources/package-features-eng", "stackTrace": ""}
{"timestamp": "2026-03-31 04:34:35.237", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Health", "stackTrace": ""}
{"timestamp": "2026-03-31 04:34:35.268", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Resources/package-features-eng", "stackTrace": ""}
{"timestamp": "2026-03-31 04:34:36.890", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538", "stackTrace": ""}
{"timestamp": "2026-03-31 04:34:36.915", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538", "stackTrace": ""}
{"timestamp": "2026-03-31 04:34:36.963", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538", "stackTrace": ""}
{"timestamp": "2026-03-31 04:34:37.088", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538", "stackTrace": ""}
{"timestamp": "2026-03-31 04:34:37.246", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538", "stackTrace": ""}
{"timestamp": "2026-03-31 04:34:40.520", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/Modules", "stackTrace": ""}
{"timestamp": "2026-03-31 04:34:40.523", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248", "stackTrace": ""}
{"timestamp": "2026-03-31 04:34:40.523", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Languages", "stackTrace": ""}
{"timestamp": "2026-03-31 04:34:40.523", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/PendingActionsNotifications", "stackTrace": ""}
{"timestamp": "2026-03-31 04:34:40.566", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Languages", "stackTrace": ""}
{"timestamp": "2026-03-31 04:34:40.566", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248", "stackTrace": ""}
{"timestamp": "2026-03-31 04:34:40.571", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/Modules", "stackTrace": ""}
{"timestamp": "2026-03-31 04:34:40.595", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/PendingActionsNotifications", "stackTrace": ""}
{"timestamp": "2026-03-31 04:34:40.625", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetPendingActionsNotificationsCount",
  "Message": "No password has been provided but the backend requires one (in SASL/SCRAM-SHA-256)",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.NpgsqlException (0x80004005): No password has been provided but the backend requires one (in SASL/SCRAM-SHA-256)
   at Npgsql.NpgsqlConnector.<AuthenticateSASL>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlConnector.<Authenticate>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlConnector.<Open>d__147.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.ConnectorPool.<AllocateLong>d__20.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlConnection.<>c__DisplayClass32_0.<<Open>g__OpenLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
   at IncidentReporter.DAL.Repositories.BaseRepo.<ExecuteQueryAsync>d__7`1.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\BaseRepo.cs:line 78
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.DAL.Repositories.OrganisationRepo.<GetOrganisationPreferences>d__12.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\OrganisationRepo.cs:line 379
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.NotificationsBLL.<GetUserAccessibleModules>d__34.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\NotificationsBLL.cs:line 1731
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.NotificationsBLL.<GetPendingActionsNotificationsCount>d__22.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\NotificationsBLL.cs:line 1146"}
{"timestamp": "2026-03-31 04:34:40.637", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/attachments/organisations/TTK_e54e850a-a12b-4b5f-830c-e5eef42ebe61.png", "stackTrace": ""}
{"timestamp": "2026-03-31 04:34:40.688", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/AccessControl/Modules/248", "stackTrace": ""}
{"timestamp": "2026-03-31 04:34:40.720", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/AccessControl/Modules/248", "stackTrace": ""}
{"timestamp": "2026-03-31 04:34:40.773", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248", "stackTrace": ""}
{"timestamp": "2026-03-31 04:34:40.841", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Training/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 04:34:40.841", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/TaskCategories/Dropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 04:34:40.875", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Training/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 04:34:40.875", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31"}", "stackTrace": ""}
{"timestamp": "2026-03-31 04:34:40.897", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/TaskCategories/Dropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 04:34:40.897", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteId":["708","744","707","705","709","706"]}", "stackTrace": ""}
{"timestamp": "2026-03-31 04:34:40.946", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Divisions/Dropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 04:34:40.975", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Divisions/Dropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 04:34:41.021", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Incidents/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 04:34:41.026", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Tasks/List/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 04:34:41.026", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/KPI/PlantMaster/Sites/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 04:34:41.026", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Tasks/List/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 04:34:41.026", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/IncidentManagement/Firs/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 04:34:41.040", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Inspections/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 04:34:41.040", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/ManagementOfChangeList/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 04:34:41.040", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Incidents/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 04:34:41.040", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/PermitToWork/All/Sites/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 04:34:41.040", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31","CategoryId":[1637,1574,1575,1576]}", "stackTrace": ""}
{"timestamp": "2026-03-31 04:34:41.056", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Courses/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 04:34:41.056", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Tasks/List/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 04:34:41.056", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31","CategoryId":[]}", "stackTrace": ""}
{"timestamp": "2026-03-31 04:34:41.056", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/KPI/PlantMaster/Sites/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 04:34:41.056", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"]}", "stackTrace": ""}
{"timestamp": "2026-03-31 04:34:41.056", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Tasks/List/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 04:34:41.056", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31","AcmModuleId":46}", "stackTrace": ""}
{"timestamp": "2026-03-31 04:34:41.056", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/IncidentManagement/Firs/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 04:34:41.070", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31"}", "stackTrace": ""}
{"timestamp": "2026-03-31 04:34:41.070", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Inspections/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 04:34:41.070", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31"}", "stackTrace": ""}
{"timestamp": "2026-03-31 04:34:41.070", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetMultiSiteTaskCounts",
  "Message": "42883: operator does not exist: task_categories_created_source = text",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42883: operator does not exist: task_categories_created_source = text
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Dapper.SqlMapper.<QueryRowAsync>d__34`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.DAL.Repositories.TaskRepo.<>c__DisplayClass161_0.<<GetTaskCategoryIdByAcmModuleId>b__0>d.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\TaskRepo.cs:line 5082
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.DAL.Repositories.BaseRepo.<ExecuteQueryAsync>d__7`1.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\BaseRepo.cs:line 79
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.DAL.Repositories.TaskRepo.<GetTaskCategoryIdByAcmModuleId>d__161.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\TaskRepo.cs:line 5081
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.TaskBLL.<GetMultiSiteTaskCounts>d__73.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\TaskBLL.cs:line 5471"}
{"timestamp": "2026-03-31 04:34:41.070", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/ManagementOfChangeList/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 04:34:41.070", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31"}", "stackTrace": ""}
{"timestamp": "2026-03-31 04:34:41.070", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/PermitToWork/All/Sites/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 04:34:41.070", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31"}", "stackTrace": ""}
{"timestamp": "2026-03-31 04:34:41.086", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Courses/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 04:34:41.086", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31"}", "stackTrace": ""}
{"timestamp": "2026-03-31 04:34:41.384", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/WorkPermit/Statuses", "stackTrace": ""}
{"timestamp": "2026-03-31 04:34:41.384", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Library/Categories", "stackTrace": ""}
{"timestamp": "2026-03-31 04:34:41.398", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/KPI/PlantMasterDropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 04:34:41.398", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/KPI/EmployeeMasterDropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 04:34:41.398", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/Users/DropDown?ModuleName=Library", "stackTrace": ""}
{"timestamp": "2026-03-31 04:34:41.413", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/WorkPermit/Statuses", "stackTrace": ""}
{"timestamp": "2026-03-31 04:34:41.413", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Library/Categories", "stackTrace": ""}
{"timestamp": "2026-03-31 04:34:41.413", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"OrgId":248}", "stackTrace": ""}
{"timestamp": "2026-03-31 04:34:41.413", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/KPI/PlantMasterDropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 04:34:41.429", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"OrgId":[248],"SiteId":["708","744","707","705","709","706"]}", "stackTrace": ""}
{"timestamp": "2026-03-31 04:34:41.445", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/KPI/EmployeeMasterDropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 04:34:41.445", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"OrgId":[248],"SiteId":["708","744","707","705","709","706"]}", "stackTrace": ""}
{"timestamp": "2026-03-31 04:34:41.445", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/Users/DropDown?ModuleName=Library", "stackTrace": ""}
{"timestamp": "2026-03-31 04:34:41.635", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/KPI/PlantMaster/AverageRatings", "stackTrace": ""}
{"timestamp": "2026-03-31 04:34:41.689", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/KPI/PlantMaster/AverageRatings", "stackTrace": ""}
{"timestamp": "2026-03-31 04:34:41.689", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"KpiId":[21,22,23,24,25,33,34,35,36,37,27,28,29,30,31,38,39,40,41,42,16],"SiteIds":["708","744","707","705","709","706"]}", "stackTrace": ""}
{"timestamp": "2026-03-31 04:34:41.706", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetPlantMasterAverageRatings",
  "Message": "42601: syntax error at or near \"$1\"",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42601: syntax error at or near "$1"
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Dapper.SqlMapper.<QueryAsync>d__33`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
   at IncidentReporter.DAL.Repositories.EmployeeKpiRepo.<GetPlantMasterAverageRatings>d__72.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\EmployeeKpiRepo .cs:line 2371
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.EmployeeKpiBLL.<GetPlantMasterAverageRatings>d__46.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\EmployeeKpiBLL.cs:line 2186"}
{"timestamp": "2026-03-31 04:46:57.600", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/.env.local", "stackTrace": ""}
{"timestamp": "2026-03-31 04:46:57.758", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/.env.production", "stackTrace": ""}
{"timestamp": "2026-03-31 04:46:57.916", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/.env.staging", "stackTrace": ""}
{"timestamp": "2026-03-31 04:46:58.074", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/.env.development", "stackTrace": ""}
{"timestamp": "2026-03-31 04:46:58.228", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/.env.test", "stackTrace": ""}
{"timestamp": "2026-03-31 04:46:58.383", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/.env.remote", "stackTrace": ""}
{"timestamp": "2026-03-31 04:46:58.540", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/.env.bak", "stackTrace": ""}
{"timestamp": "2026-03-31 04:46:58.696", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/.env.backup", "stackTrace": ""}
{"timestamp": "2026-03-31 04:46:58.852", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/.env.save", "stackTrace": ""}
{"timestamp": "2026-03-31 04:46:59.009", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/.env.old", "stackTrace": ""}
{"timestamp": "2026-03-31 04:46:59.171", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/.env.sample", "stackTrace": ""}
{"timestamp": "2026-03-31 04:46:59.328", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/vendor/.env", "stackTrace": ""}
{"timestamp": "2026-03-31 04:46:59.478", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/lib/.env", "stackTrace": ""}
{"timestamp": "2026-03-31 04:46:59.635", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/lab/.env", "stackTrace": ""}
{"timestamp": "2026-03-31 04:46:59.787", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/cronlab/.env", "stackTrace": ""}
{"timestamp": "2026-03-31 04:46:59.954", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/cron/.env", "stackTrace": ""}
{"timestamp": "2026-03-31 04:47:00.114", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/core/.env", "stackTrace": ""}
{"timestamp": "2026-03-31 04:47:00.273", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/core/app/.env", "stackTrace": ""}
{"timestamp": "2026-03-31 04:47:00.431", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/core/Datavase/.env", "stackTrace": ""}
{"timestamp": "2026-03-31 04:47:00.590", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/database/.env", "stackTrace": ""}
{"timestamp": "2026-03-31 04:47:00.746", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/config/.env", "stackTrace": ""}
{"timestamp": "2026-03-31 04:47:00.902", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/assets/.env", "stackTrace": ""}
{"timestamp": "2026-03-31 04:47:00.902", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "System.ArgumentException: token
   at JWT.JwtParts..ctor(String token)
   at JWT.Builder.JwtBuilder.Decode(String token)
   at IncidentReporter.API.Handlers.Authorise.DecodeToken(String token, String secret) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\Handlers\Authorise.cs:line 112
   at IncidentReporter.API.Handlers.Authorise.OnActionExecuting(HttpActionContext actionContext) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\Handlers\Authorise.cs:line 49", "stackTrace": "System.ArgumentException: token
   at JWT.JwtParts..ctor(String token)
   at JWT.Builder.JwtBuilder.Decode(String token)
   at IncidentReporter.API.Handlers.Authorise.DecodeToken(String token, String secret) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\Handlers\Authorise.cs:line 112
   at IncidentReporter.API.Handlers.Authorise.OnActionExecuting(HttpActionContext actionContext) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\Handlers\Authorise.cs:line 49"}
{"timestamp": "2026-03-31 04:47:01.070", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/app/.env", "stackTrace": ""}
{"timestamp": "2026-03-31 04:47:01.227", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/apps/.env", "stackTrace": ""}
{"timestamp": "2026-03-31 04:47:01.377", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/uploads/.env", "stackTrace": ""}
{"timestamp": "2026-03-31 04:47:01.536", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/sitemaps/.env", "stackTrace": ""}
{"timestamp": "2026-03-31 04:47:01.693", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/saas/.env", "stackTrace": ""}
{"timestamp": "2026-03-31 04:47:01.854", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/api/.env", "stackTrace": ""}
{"timestamp": "2026-03-31 04:47:02.009", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/psnlink/.env", "stackTrace": ""}
{"timestamp": "2026-03-31 04:47:02.167", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/exapi/.env", "stackTrace": ""}
{"timestamp": "2026-03-31 04:47:02.325", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/site/.env", "stackTrace": ""}
{"timestamp": "2026-03-31 04:47:02.484", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/admin/.env", "stackTrace": ""}
{"timestamp": "2026-03-31 04:47:02.639", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/web/.env", "stackTrace": ""}
{"timestamp": "2026-03-31 04:47:02.794", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/public/.env", "stackTrace": ""}
{"timestamp": "2026-03-31 04:47:02.950", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/en/.env", "stackTrace": ""}
{"timestamp": "2026-03-31 04:47:03.101", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/tools/.env", "stackTrace": ""}
{"timestamp": "2026-03-31 04:47:03.268", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/v1/.env", "stackTrace": ""}
{"timestamp": "2026-03-31 04:47:03.425", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/v2/.env", "stackTrace": ""}
{"timestamp": "2026-03-31 04:47:03.584", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/administrator/.env", "stackTrace": ""}
{"timestamp": "2026-03-31 04:47:03.738", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/laravel/.env", "stackTrace": ""}
{"timestamp": "2026-03-31 04:47:03.898", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/storage/.env", "stackTrace": ""}
{"timestamp": "2026-03-31 04:47:04.057", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/backend/.env", "stackTrace": ""}
{"timestamp": "2026-03-31 04:47:04.213", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/server/.env", "stackTrace": ""}
{"timestamp": "2026-03-31 04:47:04.371", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/frontend/.env", "stackTrace": ""}
{"timestamp": "2026-03-31 04:47:04.526", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/current/.env", "stackTrace": ""}
{"timestamp": "2026-03-31 04:47:04.682", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/dist/.env", "stackTrace": ""}
{"timestamp": "2026-03-31 04:47:04.843", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/build/.env", "stackTrace": ""}
{"timestamp": "2026-03-31 04:47:05.001", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/public_html/.env", "stackTrace": ""}
{"timestamp": "2026-03-31 04:47:05.160", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/live/.env", "stackTrace": ""}
{"timestamp": "2026-03-31 04:47:05.320", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/prod/.env", "stackTrace": ""}
{"timestamp": "2026-03-31 04:47:05.477", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/dev/.env", "stackTrace": ""}
{"timestamp": "2026-03-31 04:47:05.640", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/project/.env", "stackTrace": ""}
{"timestamp": "2026-03-31 04:47:05.791", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/client/.env", "stackTrace": ""}
{"timestamp": "2026-03-31 04:47:05.948", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/service/.env", "stackTrace": ""}
{"timestamp": "2026-03-31 04:47:06.107", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/node/.env", "stackTrace": ""}
{"timestamp": "2026-03-31 04:47:06.267", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/phpinfo.php", "stackTrace": ""}
{"timestamp": "2026-03-31 04:47:06.419", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/info.php", "stackTrace": ""}
{"timestamp": "2026-03-31 04:47:06.580", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/php.php", "stackTrace": ""}
{"timestamp": "2026-03-31 04:47:06.735", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/pinfo.php", "stackTrace": ""}
{"timestamp": "2026-03-31 04:47:06.899", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/phpinfo", "stackTrace": ""}
{"timestamp": "2026-03-31 04:47:07.055", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/admin/phpinfo.php", "stackTrace": ""}
{"timestamp": "2026-03-31 04:47:07.209", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/test/phpinfo.php", "stackTrace": ""}
{"timestamp": "2026-03-31 04:47:07.375", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/dev/phpinfo.php", "stackTrace": ""}
{"timestamp": "2026-03-31 04:47:07.533", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/development/phpinfo.php", "stackTrace": ""}
{"timestamp": "2026-03-31 04:47:07.691", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/develop/phpinfo.php", "stackTrace": ""}
{"timestamp": "2026-03-31 04:47:07.848", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/api/phpinfo.php", "stackTrace": ""}
{"timestamp": "2026-03-31 04:47:08.004", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/backend/phpinfo.php", "stackTrace": ""}
{"timestamp": "2026-03-31 04:47:08.161", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/server/phpinfo.php", "stackTrace": ""}
{"timestamp": "2026-03-31 04:47:08.326", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/current/phpinfo.php", "stackTrace": ""}
{"timestamp": "2026-03-31 04:47:08.481", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/services/phpinfo.php", "stackTrace": ""}
{"timestamp": "2026-03-31 04:47:08.642", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/service/phpinfo.php", "stackTrace": ""}
{"timestamp": "2026-03-31 04:47:08.800", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/laravel/phpinfo.php", "stackTrace": ""}
{"timestamp": "2026-03-31 04:47:08.955", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/dashboard/phpinfo.php", "stackTrace": ""}
{"timestamp": "2026-03-31 04:47:09.113", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/helper/phpinfo.php", "stackTrace": ""}
{"timestamp": "2026-03-31 04:47:09.270", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/xampp/phpinfo.php", "stackTrace": ""}
{"timestamp": "2026-03-31 04:47:09.430", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/backup/phpinfo.php", "stackTrace": ""}
{"timestamp": "2026-03-31 04:47:09.583", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/old/phpinfo.php", "stackTrace": ""}
{"timestamp": "2026-03-31 04:47:09.751", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/crm/phpinfo.php", "stackTrace": ""}
{"timestamp": "2026-03-31 04:47:09.912", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/admin/info.php", "stackTrace": ""}
{"timestamp": "2026-03-31 04:47:10.070", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/test/info.php", "stackTrace": ""}
{"timestamp": "2026-03-31 04:47:10.227", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/dev/info.php", "stackTrace": ""}
{"timestamp": "2026-03-31 04:47:10.380", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/development/info.php", "stackTrace": ""}
{"timestamp": "2026-03-31 04:47:10.536", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/develop/info.php", "stackTrace": ""}
{"timestamp": "2026-03-31 04:47:10.698", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/api/info.php", "stackTrace": ""}
{"timestamp": "2026-03-31 04:47:10.849", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/backend/info.php", "stackTrace": ""}
{"timestamp": "2026-03-31 04:47:11.011", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/server/info.php", "stackTrace": ""}
{"timestamp": "2026-03-31 04:47:11.163", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/current/info.php", "stackTrace": ""}
{"timestamp": "2026-03-31 04:47:11.326", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/services/info.php", "stackTrace": ""}
{"timestamp": "2026-03-31 04:47:11.481", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/service/info.php", "stackTrace": ""}
{"timestamp": "2026-03-31 04:47:11.643", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/laravel/info.php", "stackTrace": ""}
{"timestamp": "2026-03-31 04:47:11.800", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/helper/info.php", "stackTrace": ""}
{"timestamp": "2026-03-31 04:47:11.955", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/xampp/info.php", "stackTrace": ""}
{"timestamp": "2026-03-31 04:47:12.111", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/backup/info.php", "stackTrace": ""}
{"timestamp": "2026-03-31 04:47:12.271", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/old/info.php", "stackTrace": ""}
{"timestamp": "2026-03-31 04:47:12.429", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/crm/info.php", "stackTrace": ""}
{"timestamp": "2026-03-31 04:47:12.585", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/php-info.php", "stackTrace": ""}
{"timestamp": "2026-03-31 04:47:12.743", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/phpversion.php", "stackTrace": ""}
{"timestamp": "2026-03-31 04:47:12.899", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/old_phpinfo.php", "stackTrace": ""}
{"timestamp": "2026-03-31 04:47:13.053", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/_profiler/phpinfo", "stackTrace": ""}
{"timestamp": "2026-03-31 04:47:13.205", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/_environment", "stackTrace": ""}
{"timestamp": "2026-03-31 04:47:13.368", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/webroot/index.php/_environment", "stackTrace": ""}
{"timestamp": "2026-03-31 04:47:13.527", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/.git/config", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:29.178", "level": "Info", "severity": "INFO", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Application started", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:29.210", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Resources/eng?orgId=248", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:29.252", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Resources/eng?orgId=248", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:29.611", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/AccessControl/Modules/248", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:29.649", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/AccessControl/Modules/248", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:31.469", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Health", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:31.469", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Resources/package-features-eng", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:31.514", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Health", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:31.549", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Resources/package-features-eng", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:32.643", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:32.658", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:32.672", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:33.111", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:33.286", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:33.656", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/Modules", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:33.656", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:33.656", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Languages", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:33.656", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/PendingActionsNotifications", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:33.696", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/Modules", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:33.696", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:33.713", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Languages", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:33.713", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/PendingActionsNotifications", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:33.759", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/attachments/organisations/TTK_e54e850a-a12b-4b5f-830c-e5eef42ebe61.png", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:33.784", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/AccessControl/Modules/248", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:33.821", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetPendingActionsNotificationsCount",
  "Message": "No password has been provided but the backend requires one (in SASL/SCRAM-SHA-256)",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.NpgsqlException (0x80004005): No password has been provided but the backend requires one (in SASL/SCRAM-SHA-256)
   at Npgsql.NpgsqlConnector.<AuthenticateSASL>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlConnector.<Authenticate>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlConnector.<Open>d__147.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.ConnectorPool.<AllocateLong>d__20.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlConnection.<>c__DisplayClass32_0.<<Open>g__OpenLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
   at IncidentReporter.DAL.Repositories.BaseRepo.<ExecuteQueryAsync>d__7`1.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\BaseRepo.cs:line 78
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.DAL.Repositories.OrganisationRepo.<GetOrganisationPreferences>d__12.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\OrganisationRepo.cs:line 379
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.NotificationsBLL.<GetUserAccessibleModules>d__34.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\NotificationsBLL.cs:line 1731
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.NotificationsBLL.<GetPendingActionsNotificationsCount>d__22.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\NotificationsBLL.cs:line 1146"}
{"timestamp": "2026-03-31 05:54:33.898", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:33.972", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Training/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:33.972", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/TaskCategories/Dropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:34.001", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Training/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:34.001", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31"}", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:34.031", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/TaskCategories/Dropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:34.031", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteId":["708","744","707","705","709","706"]}", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:34.103", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Divisions/Dropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:34.172", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Divisions/Dropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:34.246", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Incidents/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:34.246", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Tasks/List/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:34.246", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/KPI/PlantMaster/Sites/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:34.246", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Tasks/List/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:34.262", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/IncidentManagement/Firs/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:34.262", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Inspections/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:34.262", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/ManagementOfChangeList/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:34.278", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Incidents/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:34.278", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31","CategoryId":[1637,1574,1575,1576]}", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:34.278", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Tasks/List/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:34.278", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31","CategoryId":[]}", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:34.278", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/PermitToWork/All/Sites/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:34.278", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/KPI/PlantMaster/Sites/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:34.278", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Courses/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:34.278", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"]}", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:34.278", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Tasks/List/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:34.278", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31","AcmModuleId":46}", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:34.295", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/IncidentManagement/Firs/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:34.295", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31"}", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:34.295", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Inspections/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:34.295", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31"}", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:34.309", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/PermitToWork/All/Sites/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:34.309", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31"}", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:34.309", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/ManagementOfChangeList/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:34.309", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31"}", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:34.309", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Courses/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:34.309", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31"}", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:34.452", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetMultiSiteTaskCounts",
  "Message": "42883: operator does not exist: task_categories_created_source = text",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42883: operator does not exist: task_categories_created_source = text
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Dapper.SqlMapper.<QueryRowAsync>d__34`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.DAL.Repositories.TaskRepo.<>c__DisplayClass161_0.<<GetTaskCategoryIdByAcmModuleId>b__0>d.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\TaskRepo.cs:line 5082
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.DAL.Repositories.BaseRepo.<ExecuteQueryAsync>d__7`1.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\BaseRepo.cs:line 79
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.DAL.Repositories.TaskRepo.<GetTaskCategoryIdByAcmModuleId>d__161.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\TaskRepo.cs:line 5081
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.TaskBLL.<GetMultiSiteTaskCounts>d__73.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\TaskBLL.cs:line 5471"}
{"timestamp": "2026-03-31 05:54:35.022", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/WorkPermit/Statuses", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:35.030", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Library/Categories", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:35.030", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/KPI/PlantMasterDropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:35.030", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/KPI/EmployeeMasterDropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:35.051", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/Users/DropDown?ModuleName=Library", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:35.065", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/WorkPermit/Statuses", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:35.065", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Library/Categories", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:35.065", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"OrgId":248}", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:35.065", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/KPI/EmployeeMasterDropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:35.065", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/KPI/PlantMasterDropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:35.075", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"OrgId":[248],"SiteId":["708","744","707","705","709","706"]}", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:35.075", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"OrgId":[248],"SiteId":["708","744","707","705","709","706"]}", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:35.191", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/Users/DropDown?ModuleName=Library", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:35.849", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/KPI/PlantMaster/AverageRatings", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:35.920", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/KPI/PlantMaster/AverageRatings", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:35.920", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"KpiId":[21,22,23,24,25,33,34,35,36,37,27,28,29,30,31,38,39,40,41,42,16],"SiteIds":["708","744","707","705","709","706"]}", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:35.945", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetPlantMasterAverageRatings",
  "Message": "42601: syntax error at or near \"$1\"",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42601: syntax error at or near "$1"
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Dapper.SqlMapper.<QueryAsync>d__33`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
   at IncidentReporter.DAL.Repositories.EmployeeKpiRepo.<GetPlantMasterAverageRatings>d__72.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\EmployeeKpiRepo .cs:line 2371
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.EmployeeKpiBLL.<GetPlantMasterAverageRatings>d__46.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\EmployeeKpiBLL.cs:line 2186"}
{"timestamp": "2026-03-31 05:54:46.499", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:46.499", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:46.569", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:46.580", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:46.972", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/AppFilterUsers?Role=fieldStaff&OrgId=248&LocationId=708&LocationId=744&LocationId=707&LocationId=705&LocationId=709&LocationId=706", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:46.972", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/IncidentStatuses", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:46.972", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:47.001", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/AppFilterUsers?Role=fieldStaff&OrgId=248&LocationId=708&LocationId=744&LocationId=707&LocationId=705&LocationId=709&LocationId=706", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:47.001", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/IncidentStatuses", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:47.017", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetUsersforAppFilter",
  "Message": "42601: syntax error at or near \"$1\"",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42601: syntax error at or near "$1"
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Dapper.SqlMapper.<QueryAsync>d__33`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.DAL.Repositories.UsersRepo.<GetAppFilterUsers>d__57.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\UsersRepo.cs:line 1788
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.UsersBLL.<GetUsersforAppFilter>d__25.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\UsersBLL.cs:line 1764"}
{"timestamp": "2026-03-31 05:54:47.058", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:47.753", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Company/All?&IsActive=1", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:47.753", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Divisions/Dropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:47.767", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Incidents", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:47.785", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Company/All?&IsActive=1", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:47.795", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Divisions/Dropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:47.795", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Incidents", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:47.795", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"OrgId":[248],"PageNumber":1,"PageLimit":1,"StartDate":"2026-03-31","EndDate":"2026-03-31","SearchTerm":"","SortingColumn":["CreatedOn"],"SortingOrder":["desc"]}", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:47.795", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Npgsql.PostgresException (0x80004005): 42601: syntax error at or near "$1"
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlDataReader.NextResult()
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
   at Dapper.SqlMapper.ExecuteReaderWithFlagsFallback(IDbCommand cmd, Boolean wasClosed, CommandBehavior behavior)
   at Dapper.SqlMapper.<QueryImpl>d__138`1.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at Dapper.SqlMapper.Query[T](IDbConnection cnn, String sql, Object param, IDbTransaction transaction, Boolean buffered, Nullable`1 commandTimeout, Nullable`1 commandType)
   at IncidentReporter.DAL.Repositories.IncidentsRepo.GetDistinctUserIdsBySiteIds(Int32 organisationId, List`1 siteIds) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\IncidentsRepo.cs:line 4829
   at IncidentReporter.API.BLL.PtwBLL.<GetAllCompanyByOrgId>d__49.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\PtwBLL.cs:line 3449", "stackTrace": "Npgsql.PostgresException (0x80004005): 42601: syntax error at or near "$1"
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlDataReader.NextResult()
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
   at Dapper.SqlMapper.ExecuteReaderWithFlagsFallback(IDbCommand cmd, Boolean wasClosed, CommandBehavior behavior)
   at Dapper.SqlMapper.<QueryImpl>d__138`1.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at Dapper.SqlMapper.Query[T](IDbConnection cnn, String sql, Object param, IDbTransaction transaction, Boolean buffered, Nullable`1 commandTimeout, Nullable`1 commandType)
   at IncidentReporter.DAL.Repositories.IncidentsRepo.GetDistinctUserIdsBySiteIds(Int32 organisationId, List`1 siteIds) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\IncidentsRepo.cs:line 4829
   at IncidentReporter.API.BLL.PtwBLL.<GetAllCompanyByOrgId>d__49.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\PtwBLL.cs:line 3449"}
{"timestamp": "2026-03-31 05:54:47.827", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "Get",
  "Message": "42883: operator does not exist: boolean = integer",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42883: operator does not exist: boolean = integer
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlDataReader.NextResult()
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.<ExecuteScalar>d__90.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.ExecuteScalar()
   at Dapper.SqlMapper.ExecuteScalarImpl[T](IDbConnection cnn, CommandDefinition& command)
   at Dapper.SqlMapper.ExecuteScalar[T](IDbConnection cnn, String sql, Object param, IDbTransaction transaction, Nullable`1 commandTimeout, Nullable`1 commandType)
   at IncidentReporter.DAL.Repositories.PtwRepo.GetDefaultCompany(Int32 orgId) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\PtwRepo.cs:line 6184
   at IncidentReporter.API.BLL.IncidentsBLL.<ApplyFiltersAsync>d__110.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\IncidentsBLL.cs:line 7592
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.IncidentsBLL.<Get>d__10.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\IncidentsBLL.cs:line 90"}
{"timestamp": "2026-03-31 05:54:47.827", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Departments?SortingColumn=Name&SortingOrder=Asc&SiteId=708&SiteId=744&SiteId=707&SiteId=705&SiteId=709&SiteId=706", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:47.916", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Departments?SortingColumn=Name&SortingOrder=Asc&SiteId=708&SiteId=744&SiteId=707&SiteId=705&SiteId=709&SiteId=706", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:47.930", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetDepartmentsByOrgIdAsync",
  "Message": "42601: syntax error at or near \"$3\"",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42601: syntax error at or near "$3"
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Dapper.SqlMapper.<QueryAsync>d__33`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
   at IncidentReporter.DAL.Repositories.DepartmentsRepo.<GetDepartmentsByOrgIdAsync>d__14.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\DepartmentsRepo.cs:line 492
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.DepartmentsBLL.<GetDepartmentsByOrgIdAsync>d__11.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\DepartmentsBLL.cs:line 357"}
{"timestamp": "2026-03-31 05:54:47.958", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/FieldStaffAndAppUsers?Role=3&SiteIds=708&SiteIds=744&SiteIds=707&SiteIds=705&SiteIds=709&SiteIds=706", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:47.970", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/FieldStaffAndAppUsers?Role=1&SiteIds=708&SiteIds=744&SiteIds=707&SiteIds=705&SiteIds=709&SiteIds=706", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:47.991", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/FieldStaffAndAppUsers?Role=3&SiteIds=708&SiteIds=744&SiteIds=707&SiteIds=705&SiteIds=709&SiteIds=706", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:47.999", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetFieldStaffAndAppUsers",
  "Message": "42601: syntax error at or near \"$3\"",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42601: syntax error at or near "$3"
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Dapper.SqlMapper.<QueryAsync>d__33`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.DAL.Repositories.UsersRepo.<GetFieldStaffAndAppUsersAsync>d__331.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\UsersRepo.cs:line 9262
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.UsersBLL.<GetFieldStaffAndAppUsers>d__127.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\UsersBLL.cs:line 8962"}
{"timestamp": "2026-03-31 05:54:48.020", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/FieldStaffAndAppUsers?Role=1&SiteIds=708&SiteIds=744&SiteIds=707&SiteIds=705&SiteIds=709&SiteIds=706", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:48.030", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetFieldStaffAndAppUsers",
  "Message": "42601: syntax error at or near \"$3\"",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42601: syntax error at or near "$3"
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Dapper.SqlMapper.<QueryAsync>d__33`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.DAL.Repositories.UsersRepo.<GetFieldStaffAndAppUsersAsync>d__331.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\UsersRepo.cs:line 9262
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.UsersBLL.<GetFieldStaffAndAppUsers>d__127.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\UsersBLL.cs:line 8962"}
{"timestamp": "2026-03-31 05:54:49.060", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Incidents", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:49.060", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"UserId":null,"ReportedByUserIds":[],"OrgId":[248],"CompanyId":[],"LocationId":[],"DivisionId":[1637,1574,1575,1576],"DepartmentId":[],"AssignedTo":[],"IncidentStatusIds":[390],"PageNumber":1,"PageLimit":10,"StartDate":"2025-05-01","EndDate":"2026-03-31","SearchTerm":"","SortingColumn":["CreatedOn"],"SortingOrder":["desc"],"ShowReportedTicket":false}", "stackTrace": ""}
{"timestamp": "2026-03-31 05:54:49.080", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "Get",
  "Message": "42883: operator does not exist: boolean = integer",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42883: operator does not exist: boolean = integer
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlDataReader.NextResult()
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.<ExecuteScalar>d__90.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.ExecuteScalar()
   at Dapper.SqlMapper.ExecuteScalarImpl[T](IDbConnection cnn, CommandDefinition& command)
   at Dapper.SqlMapper.ExecuteScalar[T](IDbConnection cnn, String sql, Object param, IDbTransaction transaction, Nullable`1 commandTimeout, Nullable`1 commandType)
   at IncidentReporter.DAL.Repositories.PtwRepo.GetDefaultCompany(Int32 orgId) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\PtwRepo.cs:line 6184
   at IncidentReporter.API.BLL.IncidentsBLL.<ApplyFiltersAsync>d__110.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\IncidentsBLL.cs:line 7592
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.IncidentsBLL.<Get>d__10.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\IncidentsBLL.cs:line 90"}
{"timestamp": "2026-03-31 05:58:57.987", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538", "stackTrace": ""}
{"timestamp": "2026-03-31 05:58:58.095", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538", "stackTrace": ""}
{"timestamp": "2026-03-31 05:58:58.669", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Training/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 05:58:58.669", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/TaskCategories/Dropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 05:58:58.724", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Training/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 05:58:58.724", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31"}", "stackTrace": ""}
{"timestamp": "2026-03-31 05:58:58.732", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/TaskCategories/Dropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 05:58:58.732", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteId":["708","744","707","705","709","706"]}", "stackTrace": ""}
{"timestamp": "2026-03-31 05:58:59.054", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538", "stackTrace": ""}
{"timestamp": "2026-03-31 05:58:59.054", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248", "stackTrace": ""}
{"timestamp": "2026-03-31 05:58:59.190", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Divisions/Dropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 05:58:59.430", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248", "stackTrace": ""}
{"timestamp": "2026-03-31 05:58:59.430", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Divisions/Dropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 05:58:59.492", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248", "stackTrace": ""}
{"timestamp": "2026-03-31 05:58:59.492", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Incidents/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 05:58:59.492", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Tasks/List/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 05:58:59.507", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/KPI/PlantMaster/Sites/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 05:58:59.507", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Tasks/List/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 05:58:59.507", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/IncidentManagement/Firs/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 05:58:59.507", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Inspections/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 05:58:59.524", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/ManagementOfChangeList/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 05:58:59.524", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Incidents/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 05:58:59.524", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31","CategoryId":[1637,1574,1575,1576]}", "stackTrace": ""}
{"timestamp": "2026-03-31 05:58:59.524", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/PermitToWork/All/Sites/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 05:58:59.524", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Courses/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 05:58:59.524", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Tasks/List/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 05:58:59.524", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31","CategoryId":[]}", "stackTrace": ""}
{"timestamp": "2026-03-31 05:58:59.539", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/KPI/PlantMaster/Sites/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 05:58:59.539", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"]}", "stackTrace": ""}
{"timestamp": "2026-03-31 05:58:59.539", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Tasks/List/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 05:58:59.539", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31","AcmModuleId":46}", "stackTrace": ""}
{"timestamp": "2026-03-31 05:58:59.554", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Inspections/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 05:58:59.554", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/IncidentManagement/Firs/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 05:58:59.554", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31"}", "stackTrace": ""}
{"timestamp": "2026-03-31 05:58:59.554", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/ManagementOfChangeList/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 05:58:59.554", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31"}", "stackTrace": ""}
{"timestamp": "2026-03-31 05:58:59.554", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31"}", "stackTrace": ""}
{"timestamp": "2026-03-31 05:58:59.554", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetMultiSiteTaskCounts",
  "Message": "42883: operator does not exist: task_categories_created_source = text",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42883: operator does not exist: task_categories_created_source = text
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Dapper.SqlMapper.<QueryRowAsync>d__34`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.DAL.Repositories.TaskRepo.<>c__DisplayClass161_0.<<GetTaskCategoryIdByAcmModuleId>b__0>d.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\TaskRepo.cs:line 5082
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.DAL.Repositories.BaseRepo.<ExecuteQueryAsync>d__7`1.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\BaseRepo.cs:line 79
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.DAL.Repositories.TaskRepo.<GetTaskCategoryIdByAcmModuleId>d__161.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\TaskRepo.cs:line 5081
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.TaskBLL.<GetMultiSiteTaskCounts>d__73.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\TaskBLL.cs:line 5471"}
{"timestamp": "2026-03-31 05:58:59.554", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/AppFilterUsers?Role=fieldStaff&OrgId=248&LocationId=708&LocationId=744&LocationId=707&LocationId=705&LocationId=709&LocationId=706", "stackTrace": ""}
{"timestamp": "2026-03-31 05:58:59.554", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/PermitToWork/All/Sites/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 05:58:59.554", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31"}", "stackTrace": ""}
{"timestamp": "2026-03-31 05:58:59.554", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/IncidentStatuses", "stackTrace": ""}
{"timestamp": "2026-03-31 05:58:59.554", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Courses/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 05:58:59.554", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31"}", "stackTrace": ""}
{"timestamp": "2026-03-31 05:58:59.554", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538", "stackTrace": ""}
{"timestamp": "2026-03-31 05:58:59.647", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Incidents", "stackTrace": ""}
{"timestamp": "2026-03-31 05:58:59.670", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/AppFilterUsers?Role=fieldStaff&OrgId=248&LocationId=708&LocationId=744&LocationId=707&LocationId=705&LocationId=709&LocationId=706", "stackTrace": ""}
{"timestamp": "2026-03-31 05:58:59.670", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/IncidentStatuses", "stackTrace": ""}
{"timestamp": "2026-03-31 05:58:59.670", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Incidents", "stackTrace": ""}
{"timestamp": "2026-03-31 05:58:59.670", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"OrgId":[248],"PageNumber":1,"PageLimit":1,"StartDate":"2026-03-31","EndDate":"2026-03-31","SearchTerm":"","SortingColumn":["CreatedOn"],"SortingOrder":["desc"]}", "stackTrace": ""}
{"timestamp": "2026-03-31 05:58:59.687", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetUsersforAppFilter",
  "Message": "42601: syntax error at or near \"$1\"",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42601: syntax error at or near "$1"
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Dapper.SqlMapper.<QueryAsync>d__33`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.DAL.Repositories.UsersRepo.<GetAppFilterUsers>d__57.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\UsersRepo.cs:line 1788
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.UsersBLL.<GetUsersforAppFilter>d__25.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\UsersBLL.cs:line 1764"}
{"timestamp": "2026-03-31 05:58:59.687", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "Get",
  "Message": "42883: operator does not exist: boolean = integer",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42883: operator does not exist: boolean = integer
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlDataReader.NextResult()
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.<ExecuteScalar>d__90.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.ExecuteScalar()
   at Dapper.SqlMapper.ExecuteScalarImpl[T](IDbConnection cnn, CommandDefinition& command)
   at Dapper.SqlMapper.ExecuteScalar[T](IDbConnection cnn, String sql, Object param, IDbTransaction transaction, Nullable`1 commandTimeout, Nullable`1 commandType)
   at IncidentReporter.DAL.Repositories.PtwRepo.GetDefaultCompany(Int32 orgId) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\PtwRepo.cs:line 6184
   at IncidentReporter.API.BLL.IncidentsBLL.<ApplyFiltersAsync>d__110.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\IncidentsBLL.cs:line 7592
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.IncidentsBLL.<Get>d__10.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\IncidentsBLL.cs:line 90"}
{"timestamp": "2026-03-31 05:58:59.840", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Company/All?&IsActive=1", "stackTrace": ""}
{"timestamp": "2026-03-31 05:58:59.889", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Company/All?&IsActive=1", "stackTrace": ""}
{"timestamp": "2026-03-31 05:58:59.905", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Npgsql.PostgresException (0x80004005): 42601: syntax error at or near "$1"
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlDataReader.NextResult()
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
   at Dapper.SqlMapper.ExecuteReaderWithFlagsFallback(IDbCommand cmd, Boolean wasClosed, CommandBehavior behavior)
   at Dapper.SqlMapper.<QueryImpl>d__138`1.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at Dapper.SqlMapper.Query[T](IDbConnection cnn, String sql, Object param, IDbTransaction transaction, Boolean buffered, Nullable`1 commandTimeout, Nullable`1 commandType)
   at IncidentReporter.DAL.Repositories.IncidentsRepo.GetDistinctUserIdsBySiteIds(Int32 organisationId, List`1 siteIds) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\IncidentsRepo.cs:line 4829
   at IncidentReporter.API.BLL.PtwBLL.<GetAllCompanyByOrgId>d__49.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\PtwBLL.cs:line 3449", "stackTrace": "Npgsql.PostgresException (0x80004005): 42601: syntax error at or near "$1"
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlDataReader.NextResult()
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
   at Dapper.SqlMapper.ExecuteReaderWithFlagsFallback(IDbCommand cmd, Boolean wasClosed, CommandBehavior behavior)
   at Dapper.SqlMapper.<QueryImpl>d__138`1.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at Dapper.SqlMapper.Query[T](IDbConnection cnn, String sql, Object param, IDbTransaction transaction, Boolean buffered, Nullable`1 commandTimeout, Nullable`1 commandType)
   at IncidentReporter.DAL.Repositories.IncidentsRepo.GetDistinctUserIdsBySiteIds(Int32 organisationId, List`1 siteIds) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\IncidentsRepo.cs:line 4829
   at IncidentReporter.API.BLL.PtwBLL.<GetAllCompanyByOrgId>d__49.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\PtwBLL.cs:line 3449"}
{"timestamp": "2026-03-31 05:58:59.926", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Divisions/Dropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 05:59:00.000", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Departments?SortingColumn=Name&SortingOrder=Asc&SiteId=708&SiteId=744&SiteId=707&SiteId=705&SiteId=709&SiteId=706", "stackTrace": ""}
{"timestamp": "2026-03-31 05:59:00.045", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Departments?SortingColumn=Name&SortingOrder=Asc&SiteId=708&SiteId=744&SiteId=707&SiteId=705&SiteId=709&SiteId=706", "stackTrace": ""}
{"timestamp": "2026-03-31 05:59:00.059", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetDepartmentsByOrgIdAsync",
  "Message": "42601: syntax error at or near \"$3\"",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42601: syntax error at or near "$3"
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Dapper.SqlMapper.<QueryAsync>d__33`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
   at IncidentReporter.DAL.Repositories.DepartmentsRepo.<GetDepartmentsByOrgIdAsync>d__14.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\DepartmentsRepo.cs:line 492
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.DepartmentsBLL.<GetDepartmentsByOrgIdAsync>d__11.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\DepartmentsBLL.cs:line 357"}
{"timestamp": "2026-03-31 05:59:00.940", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/FieldStaffAndAppUsers?Role=3&SiteIds=708&SiteIds=744&SiteIds=707&SiteIds=705&SiteIds=709&SiteIds=706", "stackTrace": ""}
{"timestamp": "2026-03-31 05:59:00.940", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/FieldStaffAndAppUsers?Role=1&SiteIds=708&SiteIds=744&SiteIds=707&SiteIds=705&SiteIds=709&SiteIds=706", "stackTrace": ""}
{"timestamp": "2026-03-31 05:59:00.980", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/FieldStaffAndAppUsers?Role=3&SiteIds=708&SiteIds=744&SiteIds=707&SiteIds=705&SiteIds=709&SiteIds=706", "stackTrace": ""}
{"timestamp": "2026-03-31 05:59:00.991", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetFieldStaffAndAppUsers",
  "Message": "42601: syntax error at or near \"$3\"",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42601: syntax error at or near "$3"
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Dapper.SqlMapper.<QueryAsync>d__33`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.DAL.Repositories.UsersRepo.<GetFieldStaffAndAppUsersAsync>d__331.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\UsersRepo.cs:line 9262
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.UsersBLL.<GetFieldStaffAndAppUsers>d__127.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\UsersBLL.cs:line 8962"}
{"timestamp": "2026-03-31 05:59:00.991", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Incidents", "stackTrace": ""}
{"timestamp": "2026-03-31 05:59:00.991", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"UserId":null,"ReportedByUserIds":[],"OrgId":[248],"CompanyId":[],"LocationId":[708,744,707,705,709,706],"DivisionId":[],"DepartmentId":[],"AssignedTo":[],"PageNumber":1,"PageLimit":10,"StartDate":"2025-05-01","EndDate":"2026-03-31","SearchTerm":"","SortingColumn":["CreatedOn"],"SortingOrder":["desc"],"ShowReportedTicket":false}", "stackTrace": ""}
{"timestamp": "2026-03-31 05:59:00.991", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/FieldStaffAndAppUsers?Role=1&SiteIds=708&SiteIds=744&SiteIds=707&SiteIds=705&SiteIds=709&SiteIds=706", "stackTrace": ""}
{"timestamp": "2026-03-31 05:59:01.011", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetFieldStaffAndAppUsers",
  "Message": "42601: syntax error at or near \"$3\"",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42601: syntax error at or near "$3"
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Dapper.SqlMapper.<QueryAsync>d__33`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.DAL.Repositories.UsersRepo.<GetFieldStaffAndAppUsersAsync>d__331.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\UsersRepo.cs:line 9262
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.UsersBLL.<GetFieldStaffAndAppUsers>d__127.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\UsersBLL.cs:line 8962"}
{"timestamp": "2026-03-31 05:59:01.011", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "Get",
  "Message": "42883: operator does not exist: boolean = integer",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42883: operator does not exist: boolean = integer
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlDataReader.NextResult()
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.<ExecuteScalar>d__90.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.ExecuteScalar()
   at Dapper.SqlMapper.ExecuteScalarImpl[T](IDbConnection cnn, CommandDefinition& command)
   at Dapper.SqlMapper.ExecuteScalar[T](IDbConnection cnn, String sql, Object param, IDbTransaction transaction, Nullable`1 commandTimeout, Nullable`1 commandType)
   at IncidentReporter.DAL.Repositories.PtwRepo.GetDefaultCompany(Int32 orgId) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\PtwRepo.cs:line 6184
   at IncidentReporter.API.BLL.IncidentsBLL.<ApplyFiltersAsync>d__110.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\IncidentsBLL.cs:line 7592
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.IncidentsBLL.<Get>d__10.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\IncidentsBLL.cs:line 90"}
{"timestamp": "2026-03-31 05:59:02.410", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Incidents", "stackTrace": ""}
{"timestamp": "2026-03-31 05:59:02.410", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"UserId":null,"ReportedByUserIds":[],"OrgId":[248],"CompanyId":[],"LocationId":[],"DivisionId":[1637,1574,1575,1576],"DepartmentId":[],"AssignedTo":[],"IncidentStatusIds":[390],"PageNumber":1,"PageLimit":10,"StartDate":"2025-05-01","EndDate":"2026-03-31","SearchTerm":"","SortingColumn":["CreatedOn"],"SortingOrder":["desc"],"ShowReportedTicket":false}", "stackTrace": ""}
{"timestamp": "2026-03-31 05:59:02.420", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "Get",
  "Message": "42883: operator does not exist: boolean = integer",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42883: operator does not exist: boolean = integer
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlDataReader.NextResult()
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.<ExecuteScalar>d__90.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.ExecuteScalar()
   at Dapper.SqlMapper.ExecuteScalarImpl[T](IDbConnection cnn, CommandDefinition& command)
   at Dapper.SqlMapper.ExecuteScalar[T](IDbConnection cnn, String sql, Object param, IDbTransaction transaction, Nullable`1 commandTimeout, Nullable`1 commandType)
   at IncidentReporter.DAL.Repositories.PtwRepo.GetDefaultCompany(Int32 orgId) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\PtwRepo.cs:line 6184
   at IncidentReporter.API.BLL.IncidentsBLL.<ApplyFiltersAsync>d__110.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\IncidentsBLL.cs:line 7592
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.IncidentsBLL.<Get>d__10.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\IncidentsBLL.cs:line 90"}
{"timestamp": "2026-03-31 05:59:02.742", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248", "stackTrace": ""}
{"timestamp": "2026-03-31 05:59:02.775", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Departments?SortingColumn=Name&SortingOrder=Asc&SiteId=708&SiteId=744&SiteId=707&SiteId=705&SiteId=709&SiteId=706", "stackTrace": ""}
{"timestamp": "2026-03-31 05:59:02.775", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/WorkPermit/Statuses", "stackTrace": ""}
{"timestamp": "2026-03-31 05:59:02.775", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/WorkPermit/Categories", "stackTrace": ""}
{"timestamp": "2026-03-31 05:59:02.789", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetDepartmentsByOrgIdAsync",
  "Message": "42601: syntax error at or near \"$3\"",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42601: syntax error at or near "$3"
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Dapper.SqlMapper.<QueryAsync>d__33`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
   at IncidentReporter.DAL.Repositories.DepartmentsRepo.<GetDepartmentsByOrgIdAsync>d__14.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\DepartmentsRepo.cs:line 492
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.DepartmentsBLL.<GetDepartmentsByOrgIdAsync>d__11.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\DepartmentsBLL.cs:line 357"}
{"timestamp": "2026-03-31 05:59:02.832", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/WorkPermit/Categories", "stackTrace": ""}
{"timestamp": "2026-03-31 05:59:02.832", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {}", "stackTrace": ""}
{"timestamp": "2026-03-31 05:59:02.857", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/WorkPermit/Statuses", "stackTrace": ""}
{"timestamp": "2026-03-31 05:59:02.875", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetAllWorkPermitCategories",
  "Message": "42601: syntax error at or near \"$4\"",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42601: syntax error at or near "$4"
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Dapper.SqlMapper.<QueryAsync>d__33`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.DAL.Repositories.WorkPermitRepo.<GetAllWorkPermitCategories>d__65.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\WorkPermitRepo.cs:line 2311
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.WorkPermitBLL.<GetAllWorkPermitCategories>d__29.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\WorkPermitBLL.cs:line 2833"}
{"timestamp": "2026-03-31 05:59:02.958", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Departments?SortingColumn=Name&SortingOrder=Asc&SiteId=708&SiteId=744&SiteId=707&SiteId=705&SiteId=709&SiteId=706", "stackTrace": ""}
{"timestamp": "2026-03-31 05:59:02.971", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetDepartmentsByOrgIdAsync",
  "Message": "42601: syntax error at or near \"$3\"",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42601: syntax error at or near "$3"
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Dapper.SqlMapper.<QueryAsync>d__33`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
   at IncidentReporter.DAL.Repositories.DepartmentsRepo.<GetDepartmentsByOrgIdAsync>d__14.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\DepartmentsRepo.cs:line 492
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.DepartmentsBLL.<GetDepartmentsByOrgIdAsync>d__11.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\DepartmentsBLL.cs:line 357"}
{"timestamp": "2026-03-31 05:59:03.708", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/WorkPermit/All", "stackTrace": ""}
{"timestamp": "2026-03-31 05:59:03.748", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/WorkPermit/All", "stackTrace": ""}
{"timestamp": "2026-03-31 05:59:03.748", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"OrgId":248,"PageNumber":1,"PageLimit":10,"SearchTerm":"","SortingColumn":["Uid"],"SortingOrder":["desc"],"SiteIds":[],"CompanyId":[],"WorkPermitTypeId":[],"DepartmentId":[],"WorkPermitStatusId":[],"FromDate":"2025-04-30","ToDate":"2026-03-31","Live":false,"Pending":false,"InitiatedBy":[]}", "stackTrace": ""}
{"timestamp": "2026-03-31 05:59:03.776", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/WorkPermit/All", "stackTrace": ""}
{"timestamp": "2026-03-31 05:59:03.776", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"OrgId":248,"PageNumber":1,"PageLimit":10,"SearchTerm":"","SortingColumn":["Uid"],"SortingOrder":["desc"],"SiteIds":[],"CompanyId":[],"WorkPermitTypeId":[],"DepartmentId":[],"WorkPermitStatusId":[],"FromDate":"2025-04-30","ToDate":"2026-03-31","Live":false,"Pending":false,"InitiatedBy":[]}", "stackTrace": ""}
{"timestamp": "2026-03-31 05:59:03.791", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetAllWorkPermitsAsync",
  "Message": "No password has been provided but the backend requires one (in SASL/SCRAM-SHA-256)",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.NpgsqlException (0x80004005): No password has been provided but the backend requires one (in SASL/SCRAM-SHA-256)
   at Npgsql.NpgsqlConnector.<AuthenticateSASL>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlConnector.<Authenticate>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlConnector.<Open>d__147.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.ConnectorPool.<AllocateLong>d__20.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlConnection.<>c__DisplayClass32_0.<<Open>g__OpenLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlConnection.Open()
   at IncidentReporter.DAL.Repositories.BaseRepo.ExecuteQuery[T](Func`2 query) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\BaseRepo.cs:line 64
   at IncidentReporter.DAL.Repositories.IncidentsRepo.GetUserAccessibleSites(Int32 orgId, Int32 userId) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\IncidentsRepo.cs:line 6493
   at IncidentReporter.API.BLL.WorkPermitBLL.<GetAllWorkPermitsAsync>d__18.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\WorkPermitBLL.cs:line 1919"}
{"timestamp": "2026-03-31 05:59:03.807", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetAllWorkPermitsAsync",
  "Message": "No password has been provided but the backend requires one (in SASL/SCRAM-SHA-256)",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.NpgsqlException (0x80004005): No password has been provided but the backend requires one (in SASL/SCRAM-SHA-256)
   at Npgsql.NpgsqlConnector.<AuthenticateSASL>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlConnector.<Authenticate>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlConnector.<Open>d__147.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.ConnectorPool.<AllocateLong>d__20.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlConnection.<>c__DisplayClass32_0.<<Open>g__OpenLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlConnection.Open()
   at IncidentReporter.DAL.Repositories.BaseRepo.ExecuteQuery[T](Func`2 query) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\BaseRepo.cs:line 64
   at IncidentReporter.DAL.Repositories.IncidentsRepo.GetUserAccessibleSites(Int32 orgId, Int32 userId) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\IncidentsRepo.cs:line 6493
   at IncidentReporter.API.BLL.WorkPermitBLL.<GetAllWorkPermitsAsync>d__18.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\WorkPermitBLL.cs:line 1919"}
{"timestamp": "2026-03-31 05:59:05.005", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538", "stackTrace": ""}
{"timestamp": "2026-03-31 05:59:05.038", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538", "stackTrace": ""}
{"timestamp": "2026-03-31 05:59:05.237", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Training/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 05:59:05.237", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/TaskCategories/Dropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 05:59:05.279", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Training/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 05:59:05.279", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31"}", "stackTrace": ""}
{"timestamp": "2026-03-31 05:59:05.312", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/TaskCategories/Dropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 05:59:05.312", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteId":["708","744","707","705","709","706"]}", "stackTrace": ""}
{"timestamp": "2026-03-31 05:59:05.356", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Divisions/Dropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 05:59:05.380", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Divisions/Dropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 05:59:05.461", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Incidents/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 05:59:05.461", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Tasks/List/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 05:59:05.461", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/KPI/PlantMaster/Sites/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 05:59:05.461", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Tasks/List/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 05:59:05.461", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/IncidentManagement/Firs/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 05:59:05.482", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Inspections/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 05:59:05.482", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Incidents/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 05:59:05.482", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31","CategoryId":[1637,1574,1575,1576]}", "stackTrace": ""}
{"timestamp": "2026-03-31 05:59:05.482", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/ManagementOfChangeList/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 05:59:05.492", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/PermitToWork/All/Sites/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 05:59:05.492", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Tasks/List/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 05:59:05.492", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31","CategoryId":[]}", "stackTrace": ""}
{"timestamp": "2026-03-31 05:59:05.492", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/KPI/PlantMaster/Sites/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 05:59:05.492", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"]}", "stackTrace": ""}
{"timestamp": "2026-03-31 05:59:05.492", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Courses/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 05:59:05.492", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Tasks/List/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 05:59:05.492", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31","AcmModuleId":46}", "stackTrace": ""}
{"timestamp": "2026-03-31 05:59:05.513", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Inspections/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 05:59:05.513", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31"}", "stackTrace": ""}
{"timestamp": "2026-03-31 05:59:05.513", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/IncidentManagement/Firs/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 05:59:05.513", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31"}", "stackTrace": ""}
{"timestamp": "2026-03-31 05:59:05.522", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/ManagementOfChangeList/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 05:59:05.522", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31"}", "stackTrace": ""}
{"timestamp": "2026-03-31 05:59:05.522", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetMultiSiteTaskCounts",
  "Message": "42883: operator does not exist: task_categories_created_source = text",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42883: operator does not exist: task_categories_created_source = text
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Dapper.SqlMapper.<QueryRowAsync>d__34`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.DAL.Repositories.TaskRepo.<>c__DisplayClass161_0.<<GetTaskCategoryIdByAcmModuleId>b__0>d.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\TaskRepo.cs:line 5082
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.DAL.Repositories.BaseRepo.<ExecuteQueryAsync>d__7`1.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\BaseRepo.cs:line 79
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.DAL.Repositories.TaskRepo.<GetTaskCategoryIdByAcmModuleId>d__161.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\TaskRepo.cs:line 5081
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.TaskBLL.<GetMultiSiteTaskCounts>d__73.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\TaskBLL.cs:line 5471"}
{"timestamp": "2026-03-31 05:59:05.522", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/PermitToWork/All/Sites/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 05:59:05.522", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31"}", "stackTrace": ""}
{"timestamp": "2026-03-31 05:59:05.522", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Courses/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 05:59:05.522", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31"}", "stackTrace": ""}
{"timestamp": "2026-03-31 05:59:05.940", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/WorkPermit/Statuses", "stackTrace": ""}
{"timestamp": "2026-03-31 05:59:05.947", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Library/Categories", "stackTrace": ""}
{"timestamp": "2026-03-31 05:59:05.947", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/KPI/PlantMasterDropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 05:59:05.961", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/KPI/EmployeeMasterDropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 05:59:05.961", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/Users/DropDown?ModuleName=Library", "stackTrace": ""}
{"timestamp": "2026-03-31 05:59:05.961", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Library/Categories", "stackTrace": ""}
{"timestamp": "2026-03-31 05:59:05.961", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"OrgId":248}", "stackTrace": ""}
{"timestamp": "2026-03-31 05:59:05.992", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/KPI/PlantMasterDropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 05:59:05.992", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"OrgId":[248],"SiteId":["708","744","707","705","709","706"]}", "stackTrace": ""}
{"timestamp": "2026-03-31 05:59:05.992", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/KPI/EmployeeMasterDropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 05:59:05.992", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"OrgId":[248],"SiteId":["708","744","707","705","709","706"]}", "stackTrace": ""}
{"timestamp": "2026-03-31 05:59:06.098", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/Users/DropDown?ModuleName=Library", "stackTrace": ""}
{"timestamp": "2026-03-31 05:59:06.272", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/KPI/PlantMaster/AverageRatings", "stackTrace": ""}
{"timestamp": "2026-03-31 05:59:06.319", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/KPI/PlantMaster/AverageRatings", "stackTrace": ""}
{"timestamp": "2026-03-31 05:59:06.319", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"KpiId":[21,22,23,24,25,33,34,35,36,37,27,28,29,30,31,38,39,40,41,42,16],"SiteIds":["708","744","707","705","709","706"]}", "stackTrace": ""}
{"timestamp": "2026-03-31 05:59:06.328", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetPlantMasterAverageRatings",
  "Message": "42601: syntax error at or near \"$1\"",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42601: syntax error at or near "$1"
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Dapper.SqlMapper.<QueryAsync>d__33`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
   at IncidentReporter.DAL.Repositories.EmployeeKpiRepo.<GetPlantMasterAverageRatings>d__72.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\EmployeeKpiRepo .cs:line 2371
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.EmployeeKpiBLL.<GetPlantMasterAverageRatings>d__46.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\EmployeeKpiBLL.cs:line 2186"}
{"timestamp": "2026-03-31 05:59:09.975", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248", "stackTrace": ""}
{"timestamp": "2026-03-31 05:59:10.000", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Departments?SortingColumn=Name&SortingOrder=Asc&SiteId=708&SiteId=744&SiteId=707&SiteId=705&SiteId=709&SiteId=706", "stackTrace": ""}
{"timestamp": "2026-03-31 05:59:10.000", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248", "stackTrace": ""}
{"timestamp": "2026-03-31 05:59:10.000", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/WorkPermit/Statuses", "stackTrace": ""}
{"timestamp": "2026-03-31 05:59:10.006", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/WorkPermit/Categories", "stackTrace": ""}
{"timestamp": "2026-03-31 05:59:10.060", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Departments?SortingColumn=Name&SortingOrder=Asc&SiteId=708&SiteId=744&SiteId=707&SiteId=705&SiteId=709&SiteId=706", "stackTrace": ""}
{"timestamp": "2026-03-31 05:59:10.060", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/WorkPermit/Categories", "stackTrace": ""}
{"timestamp": "2026-03-31 05:59:10.060", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/WorkPermit/Statuses", "stackTrace": ""}
{"timestamp": "2026-03-31 05:59:10.060", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {}", "stackTrace": ""}
{"timestamp": "2026-03-31 05:59:10.070", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetDepartmentsByOrgIdAsync",
  "Message": "42601: syntax error at or near \"$3\"",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42601: syntax error at or near "$3"
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Dapper.SqlMapper.<QueryAsync>d__33`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
   at IncidentReporter.DAL.Repositories.DepartmentsRepo.<GetDepartmentsByOrgIdAsync>d__14.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\DepartmentsRepo.cs:line 492
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.DepartmentsBLL.<GetDepartmentsByOrgIdAsync>d__11.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\DepartmentsBLL.cs:line 357"}
{"timestamp": "2026-03-31 05:59:10.070", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetAllWorkPermitCategories",
  "Message": "42601: syntax error at or near \"$4\"",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42601: syntax error at or near "$4"
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Dapper.SqlMapper.<QueryAsync>d__33`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.DAL.Repositories.WorkPermitRepo.<GetAllWorkPermitCategories>d__65.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\WorkPermitRepo.cs:line 2311
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.WorkPermitBLL.<GetAllWorkPermitCategories>d__29.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\WorkPermitBLL.cs:line 2833"}
{"timestamp": "2026-03-31 05:59:10.194", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Departments?SortingColumn=Name&SortingOrder=Asc&SiteId=708&SiteId=744&SiteId=707&SiteId=705&SiteId=709&SiteId=706", "stackTrace": ""}
{"timestamp": "2026-03-31 05:59:10.194", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetDepartmentsByOrgIdAsync",
  "Message": "42601: syntax error at or near \"$3\"",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42601: syntax error at or near "$3"
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Dapper.SqlMapper.<QueryAsync>d__33`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
   at IncidentReporter.DAL.Repositories.DepartmentsRepo.<GetDepartmentsByOrgIdAsync>d__14.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\DepartmentsRepo.cs:line 492
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.DepartmentsBLL.<GetDepartmentsByOrgIdAsync>d__11.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\DepartmentsBLL.cs:line 357"}
{"timestamp": "2026-03-31 05:59:10.908", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/WorkPermit/All", "stackTrace": ""}
{"timestamp": "2026-03-31 05:59:10.943", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/WorkPermit/All", "stackTrace": ""}
{"timestamp": "2026-03-31 05:59:10.945", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"OrgId":248,"PageNumber":1,"PageLimit":10,"SearchTerm":"","SortingColumn":["Uid"],"SortingOrder":["desc"],"SiteIds":[],"CompanyId":[],"WorkPermitTypeId":[],"DepartmentId":[],"WorkPermitStatusId":[],"FromDate":"2025-04-30","ToDate":"2026-03-31","Live":false,"Pending":false,"InitiatedBy":[]}", "stackTrace": ""}
{"timestamp": "2026-03-31 05:59:10.962", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/WorkPermit/All", "stackTrace": ""}
{"timestamp": "2026-03-31 05:59:10.962", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"OrgId":248,"PageNumber":1,"PageLimit":10,"SearchTerm":"","SortingColumn":["Uid"],"SortingOrder":["desc"],"SiteIds":[],"CompanyId":[],"WorkPermitTypeId":[],"DepartmentId":[],"WorkPermitStatusId":[],"FromDate":"2025-04-30","ToDate":"2026-03-31","Live":false,"Pending":false,"InitiatedBy":[]}", "stackTrace": ""}
{"timestamp": "2026-03-31 05:59:10.981", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetAllWorkPermitsAsync",
  "Message": "No password has been provided but the backend requires one (in SASL/SCRAM-SHA-256)",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.NpgsqlException (0x80004005): No password has been provided but the backend requires one (in SASL/SCRAM-SHA-256)
   at Npgsql.NpgsqlConnector.<AuthenticateSASL>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlConnector.<Authenticate>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlConnector.<Open>d__147.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.ConnectorPool.<AllocateLong>d__20.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlConnection.<>c__DisplayClass32_0.<<Open>g__OpenLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlConnection.Open()
   at IncidentReporter.DAL.Repositories.BaseRepo.ExecuteQuery[T](Func`2 query) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\BaseRepo.cs:line 64
   at IncidentReporter.DAL.Repositories.IncidentsRepo.GetUserAccessibleSites(Int32 orgId, Int32 userId) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\IncidentsRepo.cs:line 6493
   at IncidentReporter.API.BLL.WorkPermitBLL.<GetAllWorkPermitsAsync>d__18.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\WorkPermitBLL.cs:line 1919"}
{"timestamp": "2026-03-31 05:59:10.991", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetAllWorkPermitsAsync",
  "Message": "No password has been provided but the backend requires one (in SASL/SCRAM-SHA-256)",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.NpgsqlException (0x80004005): No password has been provided but the backend requires one (in SASL/SCRAM-SHA-256)
   at Npgsql.NpgsqlConnector.<AuthenticateSASL>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlConnector.<Authenticate>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlConnector.<Open>d__147.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.ConnectorPool.<AllocateLong>d__20.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlConnection.<>c__DisplayClass32_0.<<Open>g__OpenLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlConnection.Open()
   at IncidentReporter.DAL.Repositories.BaseRepo.ExecuteQuery[T](Func`2 query) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\BaseRepo.cs:line 64
   at IncidentReporter.DAL.Repositories.IncidentsRepo.GetUserAccessibleSites(Int32 orgId, Int32 userId) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\IncidentsRepo.cs:line 6493
   at IncidentReporter.API.BLL.WorkPermitBLL.<GetAllWorkPermitsAsync>d__18.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\WorkPermitBLL.cs:line 1919"}
{"timestamp": "2026-03-31 07:15:54.432", "level": "Info", "severity": "INFO", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Application started", "stackTrace": ""}
{"timestamp": "2026-03-31 07:15:54.463", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/robots.txt", "stackTrace": ""}
{"timestamp": "2026-03-31 08:49:48.261", "level": "Info", "severity": "INFO", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Application started", "stackTrace": ""}
{"timestamp": "2026-03-31 08:49:48.295", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/.git/config", "stackTrace": ""}
{"timestamp": "2026-03-31 08:49:48.347", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : http://api-postgres.oqsha.com/.git/config", "stackTrace": ""}
{"timestamp": "2026-03-31 11:03:20.869", "level": "Info", "severity": "INFO", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Application started", "stackTrace": ""}
{"timestamp": "2026-03-31 11:04:00.206", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Resources/eng?orgId=211", "stackTrace": ""}
{"timestamp": "2026-03-31 11:04:00.245", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Resources/eng?orgId=211", "stackTrace": ""}
{"timestamp": "2026-03-31 11:04:00.452", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/AccessControl/Modules/211", "stackTrace": ""}
{"timestamp": "2026-03-31 11:04:00.477", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/AccessControl/Modules/211", "stackTrace": ""}
{"timestamp": "2026-03-31 11:04:00.492", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "JWT.Exceptions.TokenExpiredException: Token has expired.
   at JWT.JwtValidator.Validate(String decodedPayload, String signature, String[] decodedSignatures)
   at JWT.JwtDecoder.Decode(JwtParts jwt, Byte[][] keys, Boolean verify)
   at JWT.Builder.JwtBuilder.Decode(String token)
   at IncidentReporter.API.Handlers.Authorise.DecodeToken(String token, String secret) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\Handlers\Authorise.cs:line 112
   at IncidentReporter.API.Handlers.Authorise.OnActionExecuting(HttpActionContext actionContext) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\Handlers\Authorise.cs:line 49", "stackTrace": "JWT.Exceptions.TokenExpiredException: Token has expired.
   at JWT.JwtValidator.Validate(String decodedPayload, String signature, String[] decodedSignatures)
   at JWT.JwtDecoder.Decode(JwtParts jwt, Byte[][] keys, Boolean verify)
   at JWT.Builder.JwtBuilder.Decode(String token)
   at IncidentReporter.API.Handlers.Authorise.DecodeToken(String token, String secret) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\Handlers\Authorise.cs:line 112
   at IncidentReporter.API.Handlers.Authorise.OnActionExecuting(HttpActionContext actionContext) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\Handlers\Authorise.cs:line 49"}
{"timestamp": "2026-03-31 11:04:00.628", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Resources/package-features-eng", "stackTrace": ""}
{"timestamp": "2026-03-31 11:04:03.065", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Login", "stackTrace": ""}
{"timestamp": "2026-03-31 11:04:03.093", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Login", "stackTrace": ""}
{"timestamp": "2026-03-31 11:04:03.093", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"Email":"MH_Admin_HO@oqsha.com","Password":"Oqsha@123","Country":"","Slot":"","PortalVersion":"5.36.0"}", "stackTrace": ""}
{"timestamp": "2026-03-31 11:04:07.128", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Login", "stackTrace": ""}
{"timestamp": "2026-03-31 11:04:07.128", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"Email":"MH_Admin_HO@oqsha.com","Password":"Oqsha@1234","Country":"","Slot":"","PortalVersion":"5.36.0"}", "stackTrace": ""}
{"timestamp": "2026-03-31 11:04:07.573", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations", "stackTrace": ""}
{"timestamp": "2026-03-31 11:04:07.593", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations", "stackTrace": ""}
{"timestamp": "2026-03-31 11:04:09.171", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/AccessControl/Modules/211", "stackTrace": ""}
{"timestamp": "2026-03-31 11:04:09.194", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/AccessControl/Modules/211", "stackTrace": ""}
{"timestamp": "2026-03-31 11:04:09.346", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Resources/eng?orgId=211", "stackTrace": ""}
{"timestamp": "2026-03-31 11:04:09.346", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211/Divisions", "stackTrace": ""}
{"timestamp": "2026-03-31 11:04:09.367", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Resources/eng?orgId=211", "stackTrace": ""}
{"timestamp": "2026-03-31 11:04:09.396", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211/Divisions", "stackTrace": ""}
{"timestamp": "2026-03-31 11:04:10.003", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211/IncidentLocations?isActive=1", "stackTrace": ""}
{"timestamp": "2026-03-31 11:04:10.028", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211/IncidentLocations?isActive=1", "stackTrace": ""}
{"timestamp": "2026-03-31 11:04:10.644", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211/Users/1955/incidentsites?isActive=1", "stackTrace": ""}
{"timestamp": "2026-03-31 11:04:10.670", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211/Users/1955/incidentsites?isActive=1", "stackTrace": ""}
{"timestamp": "2026-03-31 11:04:10.848", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211", "stackTrace": ""}
{"timestamp": "2026-03-31 11:04:10.872", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211", "stackTrace": ""}
{"timestamp": "2026-03-31 11:04:10.965", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211/Users/1955", "stackTrace": ""}
{"timestamp": "2026-03-31 11:04:10.991", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211/Users/1955", "stackTrace": ""}
{"timestamp": "2026-03-31 11:04:12.217", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/211/Modules", "stackTrace": ""}
{"timestamp": "2026-03-31 11:04:12.235", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211/Users/1955", "stackTrace": ""}
{"timestamp": "2026-03-31 11:04:12.235", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/211/Modules", "stackTrace": ""}
{"timestamp": "2026-03-31 11:04:12.256", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Reports/IncidentCountReport?OrgId=211&StartDate=2026-03-31&EndDate=2026-03-31", "stackTrace": ""}
{"timestamp": "2026-03-31 11:04:12.262", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211/Divisions/Dropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 11:04:12.280", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Reports/IncidentCountReport?OrgId=211&StartDate=2026-03-31&EndDate=2026-03-31", "stackTrace": ""}
{"timestamp": "2026-03-31 11:04:12.302", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211/Divisions/Dropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 11:04:12.376", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211/Users/1955", "stackTrace": ""}
{"timestamp": "2026-03-31 11:04:12.387", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Reports/IncidentStatusReport?OrgId=211&FromDate=2026-03-24&ToDate=2026-03-31&DivisionId=1274&DivisionId=1272&DivisionId=1273", "stackTrace": ""}
{"timestamp": "2026-03-31 11:04:12.415", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Reports/IncidentStatusReport?OrgId=211&FromDate=2026-03-24&ToDate=2026-03-31&DivisionId=1274&DivisionId=1272&DivisionId=1273", "stackTrace": ""}
{"timestamp": "2026-03-31 11:04:12.497", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetIncidentCategoryCounts",
  "Message": "42601: syntax error at or near \"$5\"",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42601: syntax error at or near "$5"
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlDataReader.NextResult()
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
   at Dapper.SqlMapper.ExecuteReaderWithFlagsFallback(IDbCommand cmd, Boolean wasClosed, CommandBehavior behavior)
   at Dapper.SqlMapper.<QueryImpl>d__138`1.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at Dapper.SqlMapper.Query[T](IDbConnection cnn, String sql, Object param, IDbTransaction transaction, Boolean buffered, Nullable`1 commandTimeout, Nullable`1 commandType)
   at IncidentReporter.DAL.Repositories.ReportsRepo.GetIncidentCategoryCounts(Int32 orgId, DateTime FromDate, DateTime ToDate, List`1 locationId, List`1 DivisionId) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\ReportsRepo.cs:line 416
   at IncidentReporter.API.BLL.ReportsBLL.GetIncidentCategoryCounts(ReportsFilter reportsFilter) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\ReportsBLL.cs:line 198"}
{"timestamp": "2026-03-31 11:04:12.497", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/211/Modules", "stackTrace": ""}
{"timestamp": "2026-03-31 11:04:12.497", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211", "stackTrace": ""}
{"timestamp": "2026-03-31 11:04:12.497", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Languages", "stackTrace": ""}
{"timestamp": "2026-03-31 11:04:12.497", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211/PendingActionsNotifications", "stackTrace": ""}
{"timestamp": "2026-03-31 11:04:12.527", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Reports/IncidentCountReport?OrgId=211&StartDate=2026-03-24&EndDate=2026-03-31&DivisionId=1274&DivisionId=1272&DivisionId=1273", "stackTrace": ""}
{"timestamp": "2026-03-31 11:04:12.527", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Languages", "stackTrace": ""}
{"timestamp": "2026-03-31 11:04:12.527", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211/PendingActionsNotifications", "stackTrace": ""}
{"timestamp": "2026-03-31 11:04:12.543", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/AccessControl/Modules/211", "stackTrace": ""}
{"timestamp": "2026-03-31 11:04:12.543", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/attachments/organisations/logo2_68f3e96c-64c9-4944-91ef-5df7c3d5c925.png", "stackTrace": ""}
{"timestamp": "2026-03-31 11:04:12.559", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Reports/IncidentCountReport?OrgId=211&StartDate=2026-03-24&EndDate=2026-03-31&DivisionId=1274&DivisionId=1272&DivisionId=1273", "stackTrace": ""}
{"timestamp": "2026-03-31 11:04:12.586", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetPendingActionsNotificationsCount",
  "Message": "No password has been provided but the backend requires one (in SASL/SCRAM-SHA-256)",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.NpgsqlException (0x80004005): No password has been provided but the backend requires one (in SASL/SCRAM-SHA-256)
   at Npgsql.NpgsqlConnector.<AuthenticateSASL>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlConnector.<Authenticate>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlConnector.<Open>d__147.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.ConnectorPool.<AllocateLong>d__20.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlConnection.<>c__DisplayClass32_0.<<Open>g__OpenLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
   at IncidentReporter.DAL.Repositories.BaseRepo.<ExecuteQueryAsync>d__7`1.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\BaseRepo.cs:line 78
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.DAL.Repositories.OrganisationRepo.<GetOrganisationPreferences>d__12.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\OrganisationRepo.cs:line 379
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.NotificationsBLL.<GetUserAccessibleModules>d__34.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\NotificationsBLL.cs:line 1731
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.NotificationsBLL.<GetPendingActionsNotificationsCount>d__22.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\NotificationsBLL.cs:line 1146"}
{"timestamp": "2026-03-31 11:04:12.632", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/211/OrganisationStats?FromDate=2026-03-24&ToDate=2026-03-31&", "stackTrace": ""}
{"timestamp": "2026-03-31 11:04:12.632", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211/EscalatedIncidents", "stackTrace": ""}
{"timestamp": "2026-03-31 11:04:12.656", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/211/OrganisationStats?FromDate=2026-03-24&ToDate=2026-03-31&", "stackTrace": ""}
{"timestamp": "2026-03-31 11:04:12.678", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211/EscalatedIncidents", "stackTrace": ""}
{"timestamp": "2026-03-31 11:04:12.678", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetOrganisationStats",
  "Message": "42883: operator does not exist: boolean = integer",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42883: operator does not exist: boolean = integer
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlDataReader.NextResult()
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
   at Dapper.SqlMapper.ExecuteReaderWithFlagsFallback(IDbCommand cmd, Boolean wasClosed, CommandBehavior behavior)
   at Dapper.SqlMapper.<QueryImpl>d__138`1.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at Dapper.SqlMapper.Query[T](IDbConnection cnn, String sql, Object param, IDbTransaction transaction, Boolean buffered, Nullable`1 commandTimeout, Nullable`1 commandType)
   at IncidentReporter.DAL.Repositories.IncidentsRepo.GetLocationIds(Int32 orgId) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\IncidentsRepo.cs:line 2991
   at IncidentReporter.API.BLL.ReportsBLL.GetOrganisationStats(Int32 OrgId, DashboardCountFilter dashboardCountFilter) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\ReportsBLL.cs:line 136"}
{"timestamp": "2026-03-31 11:04:12.690", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetIncidentsAfterEscalation",
  "Message": "42601: syntax error at or near \"od\"",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42601: syntax error at or near "od"
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlDataReader.NextResult()
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
   at Dapper.SqlMapper.ExecuteReaderWithFlagsFallback(IDbCommand cmd, Boolean wasClosed, CommandBehavior behavior)
   at Dapper.SqlMapper.<QueryImpl>d__138`1.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at Dapper.SqlMapper.Query[T](IDbConnection cnn, String sql, Object param, IDbTransaction transaction, Boolean buffered, Nullable`1 commandTimeout, Nullable`1 commandType)
   at IncidentReporter.DAL.Repositories.IncidentsRepo.GetOpenIncidentsAfterEscalation(Int32 orgId) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\IncidentsRepo.cs:line 2506
   at IncidentReporter.API.BLL.IncidentsBLL.GetIncidentsAfterEscalation(Int32 orgId) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\IncidentsBLL.cs:line 3961"}
{"timestamp": "2026-03-31 11:04:12.690", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/211/UserPreference", "stackTrace": ""}
{"timestamp": "2026-03-31 11:04:12.737", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/211/UserPreference", "stackTrace": ""}
{"timestamp": "2026-03-31 11:04:12.801", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211", "stackTrace": ""}
{"timestamp": "2026-03-31 11:04:45.425", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Reports/IncidentCountReport?OrgId=211&StartDate=2026-01-01&EndDate=2026-03-31&DivisionId=1274&DivisionId=1272&DivisionId=1273", "stackTrace": ""}
{"timestamp": "2026-03-31 11:04:45.516", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Reports/IncidentCountReport?OrgId=211&StartDate=2026-01-01&EndDate=2026-03-31&DivisionId=1274&DivisionId=1272&DivisionId=1273", "stackTrace": ""}
{"timestamp": "2026-03-31 11:04:45.585", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetIncidentCountsAsync",
  "Message": "The conversion could not be completed because the supplied DateTime did not have the Kind property set correctly.  For example, when the Kind property is DateTimeKind.Local, the source time zone must be TimeZoneInfo.Local.\r\nParameter name: sourceTimeZone",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "System.ArgumentException: The conversion could not be completed because the supplied DateTime did not have the Kind property set correctly.  For example, when the Kind property is DateTimeKind.Local, the source time zone must be TimeZoneInfo.Local.
Parameter name: sourceTimeZone
   at System.TimeZoneInfo.ConvertTime(DateTime dateTime, TimeZoneInfo sourceTimeZone, TimeZoneInfo destinationTimeZone, TimeZoneInfoOptions flags, CachedData cachedData)
   at System.TimeZoneInfo.ConvertTime(DateTime dateTime, TimeZoneInfo sourceTimeZone, TimeZoneInfo destinationTimeZone)
   at IncidentReporter.DAL.Helpers.TimeConverter.LocalTime(DateTime localDateTime, String timezone) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Helpers\FormulaHelper.cs:line 16
   at IncidentReporter.API.BLL.ReportsBLL.<GetIncidentCountsAsync>d__11.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\ReportsBLL.cs:line 264"}
{"timestamp": "2026-03-31 11:04:53.663", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211/Divisions/Dropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 11:04:53.703", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211/Divisions/Dropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 11:04:53.772", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Reports/IncidentCountReport?OrgId=211&StartDate=2026-01-01&EndDate=2026-03-31&DivisionId=1274&DivisionId=1272&DivisionId=1273", "stackTrace": ""}
{"timestamp": "2026-03-31 11:04:53.772", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/211/OrganisationStats?FromDate=2026-03-24&ToDate=2026-03-31&", "stackTrace": ""}
{"timestamp": "2026-03-31 11:04:53.798", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Reports/IncidentCountReport?OrgId=211&StartDate=2026-01-01&EndDate=2026-03-31&DivisionId=1274&DivisionId=1272&DivisionId=1273", "stackTrace": ""}
{"timestamp": "2026-03-31 11:04:53.833", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetIncidentCountsAsync",
  "Message": "The conversion could not be completed because the supplied DateTime did not have the Kind property set correctly.  For example, when the Kind property is DateTimeKind.Local, the source time zone must be TimeZoneInfo.Local.\r\nParameter name: sourceTimeZone",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "System.ArgumentException: The conversion could not be completed because the supplied DateTime did not have the Kind property set correctly.  For example, when the Kind property is DateTimeKind.Local, the source time zone must be TimeZoneInfo.Local.
Parameter name: sourceTimeZone
   at System.TimeZoneInfo.ConvertTime(DateTime dateTime, TimeZoneInfo sourceTimeZone, TimeZoneInfo destinationTimeZone, TimeZoneInfoOptions flags, CachedData cachedData)
   at System.TimeZoneInfo.ConvertTime(DateTime dateTime, TimeZoneInfo sourceTimeZone, TimeZoneInfo destinationTimeZone)
   at IncidentReporter.DAL.Helpers.TimeConverter.LocalTime(DateTime localDateTime, String timezone) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Helpers\FormulaHelper.cs:line 16
   at IncidentReporter.API.BLL.ReportsBLL.<GetIncidentCountsAsync>d__11.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\ReportsBLL.cs:line 264"}
{"timestamp": "2026-03-31 11:04:53.876", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/211/OrganisationStats?FromDate=2026-03-24&ToDate=2026-03-31&", "stackTrace": ""}
{"timestamp": "2026-03-31 11:04:53.892", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetOrganisationStats",
  "Message": "42883: operator does not exist: boolean = integer",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42883: operator does not exist: boolean = integer
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlDataReader.NextResult()
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
   at Dapper.SqlMapper.ExecuteReaderWithFlagsFallback(IDbCommand cmd, Boolean wasClosed, CommandBehavior behavior)
   at Dapper.SqlMapper.<QueryImpl>d__138`1.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at Dapper.SqlMapper.Query[T](IDbConnection cnn, String sql, Object param, IDbTransaction transaction, Boolean buffered, Nullable`1 commandTimeout, Nullable`1 commandType)
   at IncidentReporter.DAL.Repositories.IncidentsRepo.GetLocationIds(Int32 orgId) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\IncidentsRepo.cs:line 2991
   at IncidentReporter.API.BLL.ReportsBLL.GetOrganisationStats(Int32 OrgId, DashboardCountFilter dashboardCountFilter) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\ReportsBLL.cs:line 136"}
{"timestamp": "2026-03-31 11:04:56.792", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Reports/IncidentCountReport?OrgId=211&StartDate=2025-09-01&EndDate=2026-03-31&DivisionId=1274&DivisionId=1272&DivisionId=1273", "stackTrace": ""}
{"timestamp": "2026-03-31 11:04:56.816", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Reports/IncidentCountReport?OrgId=211&StartDate=2025-09-01&EndDate=2026-03-31&DivisionId=1274&DivisionId=1272&DivisionId=1273", "stackTrace": ""}
{"timestamp": "2026-03-31 11:04:56.864", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetIncidentCountsAsync",
  "Message": "The conversion could not be completed because the supplied DateTime did not have the Kind property set correctly.  For example, when the Kind property is DateTimeKind.Local, the source time zone must be TimeZoneInfo.Local.\r\nParameter name: sourceTimeZone",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "System.ArgumentException: The conversion could not be completed because the supplied DateTime did not have the Kind property set correctly.  For example, when the Kind property is DateTimeKind.Local, the source time zone must be TimeZoneInfo.Local.
Parameter name: sourceTimeZone
   at System.TimeZoneInfo.ConvertTime(DateTime dateTime, TimeZoneInfo sourceTimeZone, TimeZoneInfo destinationTimeZone, TimeZoneInfoOptions flags, CachedData cachedData)
   at System.TimeZoneInfo.ConvertTime(DateTime dateTime, TimeZoneInfo sourceTimeZone, TimeZoneInfo destinationTimeZone)
   at IncidentReporter.DAL.Helpers.TimeConverter.LocalTime(DateTime localDateTime, String timezone) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Helpers\FormulaHelper.cs:line 16
   at IncidentReporter.API.BLL.ReportsBLL.<GetIncidentCountsAsync>d__11.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\ReportsBLL.cs:line 264"}
{"timestamp": "2026-03-31 11:06:36.793", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211", "stackTrace": ""}
{"timestamp": "2026-03-31 11:06:36.835", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211/Contractors/All?siteIds=588&siteIds=604&siteIds=830&siteIds=619&siteIds=582&siteIds=801&siteIds=602&siteIds=536&siteIds=603&siteIds=537&siteIds=616&siteIds=617&IsActive=1", "stackTrace": ""}
{"timestamp": "2026-03-31 11:06:36.836", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/PtwStatuses?orgId=211", "stackTrace": ""}
{"timestamp": "2026-03-31 11:06:36.836", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/211/User/1955/JobTypes", "stackTrace": ""}
{"timestamp": "2026-03-31 11:06:36.836", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211", "stackTrace": ""}
{"timestamp": "2026-03-31 11:06:36.865", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211/Contractors/All?siteIds=588&siteIds=604&siteIds=830&siteIds=619&siteIds=582&siteIds=801&siteIds=602&siteIds=536&siteIds=603&siteIds=537&siteIds=616&siteIds=617&IsActive=1", "stackTrace": ""}
{"timestamp": "2026-03-31 11:06:36.865", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/PtwStatuses?orgId=211", "stackTrace": ""}
{"timestamp": "2026-03-31 11:06:36.865", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/211/User/1955/JobTypes", "stackTrace": ""}
{"timestamp": "2026-03-31 11:06:36.882", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetActiveJobTypesByUserId",
  "Message": "42883: operator does not exist: boolean = integer",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42883: operator does not exist: boolean = integer
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Dapper.SqlMapper.<QueryAsync>d__33`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.DAL.Repositories.UsersRepo.<GetActiveJobTypesByUserId>d__287.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\UsersRepo.cs:line 7886
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.UsersBLL.<GetActiveJobTypesByUserId>d__131.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\UsersBLL.cs:line 9088"}
{"timestamp": "2026-03-31 11:06:36.882", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetAllContractors",
  "Message": "42601: syntax error at or near \"$4\"",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42601: syntax error at or near "$4"
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Dapper.SqlMapper.<QueryAsync>d__33`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.DAL.Repositories.ContractorRepo.<GetAllContractorsRecords>d__16.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\ContractorRepo.cs:line 631
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.ContractorBLL.<GetAllContractors>d__13.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\ContractorBLL.cs:line 705"}
{"timestamp": "2026-03-31 11:06:37.816", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211/PermitToWork/All", "stackTrace": ""}
{"timestamp": "2026-03-31 11:06:37.816", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211/PermitToWork/All", "stackTrace": ""}
{"timestamp": "2026-03-31 11:06:37.841", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211/PermitToWork/All", "stackTrace": ""}
{"timestamp": "2026-03-31 11:06:37.841", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"OrgId":211,"PageNumber":1,"PageLimit":10,"SearchTerm":"","SortingColumn":["PermitToWorkStartDate"],"SortingOrder":["desc"],"SiteId":[],"CompanyId":[],"JobType":[],"PermitToWorkStatus":[],"FromDate":"2026-03-24","ToDate":"2026-03-31","Live":false,"Pending":false,"UserId":[]}", "stackTrace": ""}
{"timestamp": "2026-03-31 11:06:37.857", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211/PermitToWork/All", "stackTrace": ""}
{"timestamp": "2026-03-31 11:06:37.857", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"OrgId":211,"PageNumber":1,"PageLimit":10,"SearchTerm":"","SortingColumn":["PermitToWorkStartDate"],"SortingOrder":["desc"],"SiteId":[],"CompanyId":[],"JobType":[],"PermitToWorkStatus":[],"FromDate":"2026-03-24","ToDate":"2026-03-31","Live":false,"Pending":false,"UserId":[]}", "stackTrace": ""}
{"timestamp": "2026-03-31 11:06:37.880", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetAllPermitToWork",
  "Message": "42883: operator does not exist: boolean = integer",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42883: operator does not exist: boolean = integer
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Dapper.SqlMapper.<QueryAsync>d__33`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.DAL.Repositories.PtwRepo.<GetAccessibleSiteIdsForUser>d__65.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\PtwRepo.cs:line 3049
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.PtwBLL.<GetAllPermitToWork>d__25.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\PtwBLL.cs:line 2516"}
{"timestamp": "2026-03-31 11:06:37.883", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetAllPermitToWork",
  "Message": "42883: operator does not exist: boolean = integer",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42883: operator does not exist: boolean = integer
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Dapper.SqlMapper.<QueryAsync>d__33`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.DAL.Repositories.PtwRepo.<GetAccessibleSiteIdsForUser>d__65.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\PtwRepo.cs:line 3049
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.PtwBLL.<GetAllPermitToWork>d__25.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\PtwBLL.cs:line 2516"}
{"timestamp": "2026-03-31 11:06:43.826", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211/Users/1955", "stackTrace": ""}
{"timestamp": "2026-03-31 11:06:43.837", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211", "stackTrace": ""}
{"timestamp": "2026-03-31 11:06:43.858", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211/Users/1955", "stackTrace": ""}
{"timestamp": "2026-03-31 11:06:43.878", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211", "stackTrace": ""}
{"timestamp": "2026-03-31 11:06:43.927", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/AppFilterUsers?Role=fieldStaff&OrgId=211&LocationId=588&LocationId=604&LocationId=830&LocationId=619&LocationId=582&LocationId=801&LocationId=602&LocationId=536&LocationId=603&LocationId=537&LocationId=616&LocationId=617", "stackTrace": ""}
{"timestamp": "2026-03-31 11:06:43.927", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211/IncidentStatuses", "stackTrace": ""}
{"timestamp": "2026-03-31 11:06:43.948", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211/Users/1955", "stackTrace": ""}
{"timestamp": "2026-03-31 11:06:43.965", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/AppFilterUsers?Role=fieldStaff&OrgId=211&LocationId=588&LocationId=604&LocationId=830&LocationId=619&LocationId=582&LocationId=801&LocationId=602&LocationId=536&LocationId=603&LocationId=537&LocationId=616&LocationId=617", "stackTrace": ""}
{"timestamp": "2026-03-31 11:06:43.983", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211/IncidentStatuses", "stackTrace": ""}
{"timestamp": "2026-03-31 11:06:43.983", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetUsersforAppFilter",
  "Message": "42601: syntax error at or near \"$1\"",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42601: syntax error at or near "$1"
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Dapper.SqlMapper.<QueryAsync>d__33`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.DAL.Repositories.UsersRepo.<GetAppFilterUsers>d__57.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\UsersRepo.cs:line 1788
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.UsersBLL.<GetUsersforAppFilter>d__25.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\UsersBLL.cs:line 1764"}
{"timestamp": "2026-03-31 11:06:43.992", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211", "stackTrace": ""}
{"timestamp": "2026-03-31 11:06:44.199", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211/Company/All?&IsActive=1", "stackTrace": ""}
{"timestamp": "2026-03-31 11:06:44.199", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211/Divisions/Dropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 11:06:44.223", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211/Company/All?&IsActive=1", "stackTrace": ""}
{"timestamp": "2026-03-31 11:06:44.241", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Npgsql.PostgresException (0x80004005): 42601: syntax error at or near "$1"
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlDataReader.NextResult()
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
   at Dapper.SqlMapper.ExecuteReaderWithFlagsFallback(IDbCommand cmd, Boolean wasClosed, CommandBehavior behavior)
   at Dapper.SqlMapper.<QueryImpl>d__138`1.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at Dapper.SqlMapper.Query[T](IDbConnection cnn, String sql, Object param, IDbTransaction transaction, Boolean buffered, Nullable`1 commandTimeout, Nullable`1 commandType)
   at IncidentReporter.DAL.Repositories.IncidentsRepo.GetDistinctUserIdsBySiteIds(Int32 organisationId, List`1 siteIds) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\IncidentsRepo.cs:line 4829
   at IncidentReporter.API.BLL.PtwBLL.<GetAllCompanyByOrgId>d__49.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\PtwBLL.cs:line 3449", "stackTrace": "Npgsql.PostgresException (0x80004005): 42601: syntax error at or near "$1"
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlDataReader.NextResult()
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
   at Dapper.SqlMapper.ExecuteReaderWithFlagsFallback(IDbCommand cmd, Boolean wasClosed, CommandBehavior behavior)
   at Dapper.SqlMapper.<QueryImpl>d__138`1.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at Dapper.SqlMapper.Query[T](IDbConnection cnn, String sql, Object param, IDbTransaction transaction, Boolean buffered, Nullable`1 commandTimeout, Nullable`1 commandType)
   at IncidentReporter.DAL.Repositories.IncidentsRepo.GetDistinctUserIdsBySiteIds(Int32 organisationId, List`1 siteIds) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\IncidentsRepo.cs:line 4829
   at IncidentReporter.API.BLL.PtwBLL.<GetAllCompanyByOrgId>d__49.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\PtwBLL.cs:line 3449"}
{"timestamp": "2026-03-31 11:06:44.246", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211/Divisions/Dropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 11:06:44.262", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Incidents", "stackTrace": ""}
{"timestamp": "2026-03-31 11:06:44.303", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Incidents", "stackTrace": ""}
{"timestamp": "2026-03-31 11:06:44.303", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"OrgId":[211],"PageNumber":1,"PageLimit":1,"StartDate":"2026-03-31","EndDate":"2026-03-31","SearchTerm":"","SortingColumn":["CreatedOn"],"SortingOrder":["desc"]}", "stackTrace": ""}
{"timestamp": "2026-03-31 11:06:44.335", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "Get",
  "Message": "42883: operator does not exist: boolean = integer",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42883: operator does not exist: boolean = integer
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlDataReader.NextResult()
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.<ExecuteScalar>d__90.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.ExecuteScalar()
   at Dapper.SqlMapper.ExecuteScalarImpl[T](IDbConnection cnn, CommandDefinition& command)
   at Dapper.SqlMapper.ExecuteScalar[T](IDbConnection cnn, String sql, Object param, IDbTransaction transaction, Nullable`1 commandTimeout, Nullable`1 commandType)
   at IncidentReporter.DAL.Repositories.PtwRepo.GetDefaultCompany(Int32 orgId) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\PtwRepo.cs:line 6184
   at IncidentReporter.API.BLL.IncidentsBLL.<ApplyFiltersAsync>d__110.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\IncidentsBLL.cs:line 7592
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.IncidentsBLL.<Get>d__10.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\IncidentsBLL.cs:line 90"}
{"timestamp": "2026-03-31 11:06:44.390", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211/FieldStaffAndAppUsers?Role=3&SiteIds=588&SiteIds=604&SiteIds=830&SiteIds=619&SiteIds=582&SiteIds=801&SiteIds=602&SiteIds=536&SiteIds=603&SiteIds=537&SiteIds=616&SiteIds=617", "stackTrace": ""}
{"timestamp": "2026-03-31 11:06:44.390", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211/FieldStaffAndAppUsers?Role=1&SiteIds=588&SiteIds=604&SiteIds=830&SiteIds=619&SiteIds=582&SiteIds=801&SiteIds=602&SiteIds=536&SiteIds=603&SiteIds=537&SiteIds=616&SiteIds=617", "stackTrace": ""}
{"timestamp": "2026-03-31 11:06:44.419", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211/FieldStaffAndAppUsers?Role=3&SiteIds=588&SiteIds=604&SiteIds=830&SiteIds=619&SiteIds=582&SiteIds=801&SiteIds=602&SiteIds=536&SiteIds=603&SiteIds=537&SiteIds=616&SiteIds=617", "stackTrace": ""}
{"timestamp": "2026-03-31 11:06:44.433", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetFieldStaffAndAppUsers",
  "Message": "42601: syntax error at or near \"$3\"",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42601: syntax error at or near "$3"
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Dapper.SqlMapper.<QueryAsync>d__33`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.DAL.Repositories.UsersRepo.<GetFieldStaffAndAppUsersAsync>d__331.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\UsersRepo.cs:line 9262
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.UsersBLL.<GetFieldStaffAndAppUsers>d__127.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\UsersBLL.cs:line 8962"}
{"timestamp": "2026-03-31 11:06:44.433", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211/FieldStaffAndAppUsers?Role=1&SiteIds=588&SiteIds=604&SiteIds=830&SiteIds=619&SiteIds=582&SiteIds=801&SiteIds=602&SiteIds=536&SiteIds=603&SiteIds=537&SiteIds=616&SiteIds=617", "stackTrace": ""}
{"timestamp": "2026-03-31 11:06:44.453", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetFieldStaffAndAppUsers",
  "Message": "42601: syntax error at or near \"$3\"",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42601: syntax error at or near "$3"
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Dapper.SqlMapper.<QueryAsync>d__33`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.DAL.Repositories.UsersRepo.<GetFieldStaffAndAppUsersAsync>d__331.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\UsersRepo.cs:line 9262
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.UsersBLL.<GetFieldStaffAndAppUsers>d__127.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\UsersBLL.cs:line 8962"}
{"timestamp": "2026-03-31 11:06:44.906", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Incidents", "stackTrace": ""}
{"timestamp": "2026-03-31 11:06:44.906", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"UserId":null,"ReportedByUserIds":[],"OrgId":[211],"CompanyId":[],"LocationId":[],"DivisionId":[1274,1272,1273],"DepartmentId":[],"AssignedTo":[],"PageNumber":1,"PageLimit":10,"StartDate":"2026-03-24","EndDate":"2026-03-31","SearchTerm":"","SortingColumn":["CreatedOn"],"SortingOrder":["desc"],"ShowReportedTicket":false}", "stackTrace": ""}
{"timestamp": "2026-03-31 11:06:44.926", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "Get",
  "Message": "42883: operator does not exist: boolean = integer",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42883: operator does not exist: boolean = integer
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlDataReader.NextResult()
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.<ExecuteScalar>d__90.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.ExecuteScalar()
   at Dapper.SqlMapper.ExecuteScalarImpl[T](IDbConnection cnn, CommandDefinition& command)
   at Dapper.SqlMapper.ExecuteScalar[T](IDbConnection cnn, String sql, Object param, IDbTransaction transaction, Nullable`1 commandTimeout, Nullable`1 commandType)
   at IncidentReporter.DAL.Repositories.PtwRepo.GetDefaultCompany(Int32 orgId) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\PtwRepo.cs:line 6184
   at IncidentReporter.API.BLL.IncidentsBLL.<ApplyFiltersAsync>d__110.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\IncidentsBLL.cs:line 7592
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.IncidentsBLL.<Get>d__10.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\IncidentsBLL.cs:line 90"}
{"timestamp": "2026-03-31 11:06:50.556", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Incidents", "stackTrace": ""}
{"timestamp": "2026-03-31 11:06:50.582", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Incidents", "stackTrace": ""}
{"timestamp": "2026-03-31 11:06:50.582", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"UserId":null,"ReportedByUserIds":[],"OrgId":[211],"CompanyId":[],"LocationId":[],"DivisionId":[1274,1272,1273],"DepartmentId":[],"AssignedTo":[],"PageNumber":1,"PageLimit":10,"StartDate":"2026-01-01","EndDate":"2026-03-31","SearchTerm":"","SortingColumn":["CreatedOn"],"SortingOrder":["desc"],"ShowReportedTicket":false}", "stackTrace": ""}
{"timestamp": "2026-03-31 11:06:50.590", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "Get",
  "Message": "42883: operator does not exist: boolean = integer",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42883: operator does not exist: boolean = integer
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlDataReader.NextResult()
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.<ExecuteScalar>d__90.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.ExecuteScalar()
   at Dapper.SqlMapper.ExecuteScalarImpl[T](IDbConnection cnn, CommandDefinition& command)
   at Dapper.SqlMapper.ExecuteScalar[T](IDbConnection cnn, String sql, Object param, IDbTransaction transaction, Nullable`1 commandTimeout, Nullable`1 commandType)
   at IncidentReporter.DAL.Repositories.PtwRepo.GetDefaultCompany(Int32 orgId) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\PtwRepo.cs:line 6184
   at IncidentReporter.API.BLL.IncidentsBLL.<ApplyFiltersAsync>d__110.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\IncidentsBLL.cs:line 7592
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.IncidentsBLL.<Get>d__10.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\IncidentsBLL.cs:line 90"}
{"timestamp": "2026-03-31 11:07:55.667", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538", "stackTrace": ""}
{"timestamp": "2026-03-31 11:07:55.724", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538", "stackTrace": ""}
{"timestamp": "2026-03-31 11:07:55.900", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Training/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 11:07:55.900", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/TaskCategories/Dropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 11:07:55.929", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Training/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 11:07:55.929", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31"}", "stackTrace": ""}
{"timestamp": "2026-03-31 11:07:55.965", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/TaskCategories/Dropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 11:07:55.965", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteId":["708","744","707","705","709","706"]}", "stackTrace": ""}
{"timestamp": "2026-03-31 11:07:56.086", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Divisions/Dropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 11:07:56.117", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Divisions/Dropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 11:07:56.177", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Incidents/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 11:07:56.187", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Tasks/List/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 11:07:56.187", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/KPI/PlantMaster/Sites/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 11:07:56.197", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Tasks/List/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 11:07:56.197", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Incidents/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 11:07:56.197", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31","CategoryId":[1637,1574,1575,1576]}", "stackTrace": ""}
{"timestamp": "2026-03-31 11:07:56.197", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/IncidentManagement/Firs/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 11:07:56.197", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Inspections/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 11:07:56.214", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/ManagementOfChangeList/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 11:07:56.214", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Tasks/List/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 11:07:56.214", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31","CategoryId":[]}", "stackTrace": ""}
{"timestamp": "2026-03-31 11:07:56.214", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/PermitToWork/All/Sites/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 11:07:56.214", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/KPI/PlantMaster/Sites/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 11:07:56.214", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"]}", "stackTrace": ""}
{"timestamp": "2026-03-31 11:07:56.225", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Courses/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 11:07:56.225", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Tasks/List/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 11:07:56.225", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/IncidentManagement/Firs/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 11:07:56.225", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31"}", "stackTrace": ""}
{"timestamp": "2026-03-31 11:07:56.225", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31","AcmModuleId":46}", "stackTrace": ""}
{"timestamp": "2026-03-31 11:07:56.225", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Inspections/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 11:07:56.225", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31"}", "stackTrace": ""}
{"timestamp": "2026-03-31 11:07:56.243", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/ManagementOfChangeList/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 11:07:56.243", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31"}", "stackTrace": ""}
{"timestamp": "2026-03-31 11:07:56.243", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/PermitToWork/All/Sites/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 11:07:56.243", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31"}", "stackTrace": ""}
{"timestamp": "2026-03-31 11:07:56.259", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Courses/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 11:07:56.259", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31"}", "stackTrace": ""}
{"timestamp": "2026-03-31 11:07:56.259", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetMultiSiteTaskCounts",
  "Message": "42883: operator does not exist: task_categories_created_source = text",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42883: operator does not exist: task_categories_created_source = text
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Dapper.SqlMapper.<QueryRowAsync>d__34`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.DAL.Repositories.TaskRepo.<>c__DisplayClass161_0.<<GetTaskCategoryIdByAcmModuleId>b__0>d.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\TaskRepo.cs:line 5082
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.DAL.Repositories.BaseRepo.<ExecuteQueryAsync>d__7`1.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\BaseRepo.cs:line 79
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.DAL.Repositories.TaskRepo.<GetTaskCategoryIdByAcmModuleId>d__161.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\TaskRepo.cs:line 5081
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.TaskBLL.<GetMultiSiteTaskCounts>d__73.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\TaskBLL.cs:line 5471"}
{"timestamp": "2026-03-31 11:07:56.670", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/WorkPermit/Statuses", "stackTrace": ""}
{"timestamp": "2026-03-31 11:07:56.680", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Library/Categories", "stackTrace": ""}
{"timestamp": "2026-03-31 11:07:56.694", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/KPI/PlantMasterDropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 11:07:56.694", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/KPI/EmployeeMasterDropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 11:07:56.694", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/Users/DropDown?ModuleName=Library", "stackTrace": ""}
{"timestamp": "2026-03-31 11:07:56.728", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/WorkPermit/Statuses", "stackTrace": ""}
{"timestamp": "2026-03-31 11:07:56.728", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/KPI/PlantMasterDropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 11:07:56.728", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Library/Categories", "stackTrace": ""}
{"timestamp": "2026-03-31 11:07:56.728", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"OrgId":248}", "stackTrace": ""}
{"timestamp": "2026-03-31 11:07:56.728", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"OrgId":[248],"SiteId":["708","744","707","705","709","706"]}", "stackTrace": ""}
{"timestamp": "2026-03-31 11:07:56.728", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/KPI/EmployeeMasterDropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 11:07:56.728", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"OrgId":[248],"SiteId":["708","744","707","705","709","706"]}", "stackTrace": ""}
{"timestamp": "2026-03-31 11:07:56.760", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/Users/DropDown?ModuleName=Library", "stackTrace": ""}
{"timestamp": "2026-03-31 11:07:56.998", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/KPI/PlantMaster/AverageRatings", "stackTrace": ""}
{"timestamp": "2026-03-31 11:07:57.034", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/KPI/PlantMaster/AverageRatings", "stackTrace": ""}
{"timestamp": "2026-03-31 11:07:57.034", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"KpiId":[21,22,23,24,25,33,34,35,36,37,27,28,29,30,31,38,39,40,41,42,16],"SiteIds":["708","744","707","705","709","706"]}", "stackTrace": ""}
{"timestamp": "2026-03-31 11:07:57.055", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetPlantMasterAverageRatings",
  "Message": "42601: syntax error at or near \"$1\"",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42601: syntax error at or near "$1"
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Dapper.SqlMapper.<QueryAsync>d__33`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
   at IncidentReporter.DAL.Repositories.EmployeeKpiRepo.<GetPlantMasterAverageRatings>d__72.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\EmployeeKpiRepo .cs:line 2371
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.EmployeeKpiBLL.<GetPlantMasterAverageRatings>d__46.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\EmployeeKpiBLL.cs:line 2186"}
{"timestamp": "2026-03-31 11:08:50.509", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Logout", "stackTrace": ""}
{"timestamp": "2026-03-31 11:08:50.533", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Logout", "stackTrace": ""}
{"timestamp": "2026-03-31 11:08:50.533", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {}", "stackTrace": ""}
{"timestamp": "2026-03-31 11:08:50.611", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Health", "stackTrace": ""}
{"timestamp": "2026-03-31 11:08:50.636", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Health", "stackTrace": ""}
{"timestamp": "2026-03-31 11:08:50.678", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211/Users/1955", "stackTrace": ""}
{"timestamp": "2026-03-31 11:08:50.678", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Reports/IncidentCountReport?OrgId=211&StartDate=2026-03-31&EndDate=2026-03-31", "stackTrace": ""}
{"timestamp": "2026-03-31 11:08:50.678", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211/Divisions/Dropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 11:08:50.704", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211/Users/1955", "stackTrace": ""}
{"timestamp": "2026-03-31 11:08:50.715", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Reports/IncidentCountReport?OrgId=211&StartDate=2026-03-31&EndDate=2026-03-31", "stackTrace": ""}
{"timestamp": "2026-03-31 11:08:50.725", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211/Divisions/Dropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 11:08:50.768", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Reports/IncidentStatusReport?OrgId=211&FromDate=2026-03-24&ToDate=2026-03-31&DivisionId=1274&DivisionId=1272&DivisionId=1273", "stackTrace": ""}
{"timestamp": "2026-03-31 11:08:50.806", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Reports/IncidentStatusReport?OrgId=211&FromDate=2026-03-24&ToDate=2026-03-31&DivisionId=1274&DivisionId=1272&DivisionId=1273", "stackTrace": ""}
{"timestamp": "2026-03-31 11:08:50.819", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetIncidentCategoryCounts",
  "Message": "42601: syntax error at or near \"$5\"",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42601: syntax error at or near "$5"
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlDataReader.NextResult()
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
   at Dapper.SqlMapper.ExecuteReaderWithFlagsFallback(IDbCommand cmd, Boolean wasClosed, CommandBehavior behavior)
   at Dapper.SqlMapper.<QueryImpl>d__138`1.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at Dapper.SqlMapper.Query[T](IDbConnection cnn, String sql, Object param, IDbTransaction transaction, Boolean buffered, Nullable`1 commandTimeout, Nullable`1 commandType)
   at IncidentReporter.DAL.Repositories.ReportsRepo.GetIncidentCategoryCounts(Int32 orgId, DateTime FromDate, DateTime ToDate, List`1 locationId, List`1 DivisionId) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\ReportsRepo.cs:line 416
   at IncidentReporter.API.BLL.ReportsBLL.GetIncidentCategoryCounts(ReportsFilter reportsFilter) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\ReportsBLL.cs:line 198"}
{"timestamp": "2026-03-31 11:08:50.862", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/211/Modules", "stackTrace": ""}
{"timestamp": "2026-03-31 11:08:50.865", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211", "stackTrace": ""}
{"timestamp": "2026-03-31 11:08:50.865", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Languages", "stackTrace": ""}
{"timestamp": "2026-03-31 11:08:50.865", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211/PendingActionsNotifications", "stackTrace": ""}
{"timestamp": "2026-03-31 11:08:50.884", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/211/Modules", "stackTrace": ""}
{"timestamp": "2026-03-31 11:08:50.884", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211", "stackTrace": ""}
{"timestamp": "2026-03-31 11:08:50.884", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Languages", "stackTrace": ""}
{"timestamp": "2026-03-31 11:08:50.904", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211/PendingActionsNotifications", "stackTrace": ""}
{"timestamp": "2026-03-31 11:08:50.915", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/attachments/organisations/logo2_68f3e96c-64c9-4944-91ef-5df7c3d5c925.png", "stackTrace": ""}
{"timestamp": "2026-03-31 11:08:50.915", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetPendingActionsNotificationsCount",
  "Message": "No password has been provided but the backend requires one (in SASL/SCRAM-SHA-256)",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.NpgsqlException (0x80004005): No password has been provided but the backend requires one (in SASL/SCRAM-SHA-256)
   at Npgsql.NpgsqlConnector.<AuthenticateSASL>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlConnector.<Authenticate>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlConnector.<Open>d__147.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.ConnectorPool.<AllocateLong>d__20.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlConnection.<>c__DisplayClass32_0.<<Open>g__OpenLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
   at IncidentReporter.DAL.Repositories.BaseRepo.<ExecuteQueryAsync>d__7`1.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\BaseRepo.cs:line 78
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.DAL.Repositories.OrganisationRepo.<GetOrganisationPreferences>d__12.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\OrganisationRepo.cs:line 379
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.NotificationsBLL.<GetUserAccessibleModules>d__34.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\NotificationsBLL.cs:line 1731
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.NotificationsBLL.<GetPendingActionsNotificationsCount>d__22.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\NotificationsBLL.cs:line 1146"}
{"timestamp": "2026-03-31 11:08:51.034", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Reports/IncidentCountReport?OrgId=211&StartDate=2026-03-24&EndDate=2026-03-31&DivisionId=1274&DivisionId=1272&DivisionId=1273", "stackTrace": ""}
{"timestamp": "2026-03-31 11:08:51.041", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/AccessControl/Modules/211", "stackTrace": ""}
{"timestamp": "2026-03-31 11:08:51.059", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Reports/IncidentCountReport?OrgId=211&StartDate=2026-03-24&EndDate=2026-03-31&DivisionId=1274&DivisionId=1272&DivisionId=1273", "stackTrace": ""}
{"timestamp": "2026-03-31 11:08:51.084", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/AccessControl/Modules/211", "stackTrace": ""}
{"timestamp": "2026-03-31 11:08:51.120", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/211/OrganisationStats?FromDate=2026-03-24&ToDate=2026-03-31&", "stackTrace": ""}
{"timestamp": "2026-03-31 11:08:51.120", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211/EscalatedIncidents", "stackTrace": ""}
{"timestamp": "2026-03-31 11:08:51.148", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/211/OrganisationStats?FromDate=2026-03-24&ToDate=2026-03-31&", "stackTrace": ""}
{"timestamp": "2026-03-31 11:08:51.148", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211/EscalatedIncidents", "stackTrace": ""}
{"timestamp": "2026-03-31 11:08:51.164", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetOrganisationStats",
  "Message": "42883: operator does not exist: boolean = integer",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42883: operator does not exist: boolean = integer
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlDataReader.NextResult()
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
   at Dapper.SqlMapper.ExecuteReaderWithFlagsFallback(IDbCommand cmd, Boolean wasClosed, CommandBehavior behavior)
   at Dapper.SqlMapper.<QueryImpl>d__138`1.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at Dapper.SqlMapper.Query[T](IDbConnection cnn, String sql, Object param, IDbTransaction transaction, Boolean buffered, Nullable`1 commandTimeout, Nullable`1 commandType)
   at IncidentReporter.DAL.Repositories.IncidentsRepo.GetLocationIds(Int32 orgId) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\IncidentsRepo.cs:line 2991
   at IncidentReporter.API.BLL.ReportsBLL.GetOrganisationStats(Int32 OrgId, DashboardCountFilter dashboardCountFilter) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\ReportsBLL.cs:line 136"}
{"timestamp": "2026-03-31 11:08:51.164", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetIncidentsAfterEscalation",
  "Message": "42601: syntax error at or near \"od\"",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42601: syntax error at or near "od"
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlDataReader.NextResult()
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
   at Dapper.SqlMapper.ExecuteReaderWithFlagsFallback(IDbCommand cmd, Boolean wasClosed, CommandBehavior behavior)
   at Dapper.SqlMapper.<QueryImpl>d__138`1.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at Dapper.SqlMapper.Query[T](IDbConnection cnn, String sql, Object param, IDbTransaction transaction, Boolean buffered, Nullable`1 commandTimeout, Nullable`1 commandType)
   at IncidentReporter.DAL.Repositories.IncidentsRepo.GetOpenIncidentsAfterEscalation(Int32 orgId) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\IncidentsRepo.cs:line 2506
   at IncidentReporter.API.BLL.IncidentsBLL.GetIncidentsAfterEscalation(Int32 orgId) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\IncidentsBLL.cs:line 3961"}
{"timestamp": "2026-03-31 11:08:51.178", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211", "stackTrace": ""}
{"timestamp": "2026-03-31 11:08:52.664", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Logout", "stackTrace": ""}
{"timestamp": "2026-03-31 11:08:52.664", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {}", "stackTrace": ""}
{"timestamp": "2026-03-31 11:08:52.723", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Health", "stackTrace": ""}
{"timestamp": "2026-03-31 11:08:52.764", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211/Users/1955", "stackTrace": ""}
{"timestamp": "2026-03-31 11:08:52.773", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Reports/IncidentCountReport?OrgId=211&StartDate=2026-03-31&EndDate=2026-03-31", "stackTrace": ""}
{"timestamp": "2026-03-31 11:08:52.773", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211/Divisions/Dropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 11:08:52.812", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Reports/IncidentStatusReport?OrgId=211&FromDate=2026-03-24&ToDate=2026-03-31&DivisionId=1274&DivisionId=1272&DivisionId=1273", "stackTrace": ""}
{"timestamp": "2026-03-31 11:08:52.822", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetIncidentCategoryCounts",
  "Message": "42601: syntax error at or near \"$5\"",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42601: syntax error at or near "$5"
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlDataReader.NextResult()
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
   at Dapper.SqlMapper.ExecuteReaderWithFlagsFallback(IDbCommand cmd, Boolean wasClosed, CommandBehavior behavior)
   at Dapper.SqlMapper.<QueryImpl>d__138`1.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at Dapper.SqlMapper.Query[T](IDbConnection cnn, String sql, Object param, IDbTransaction transaction, Boolean buffered, Nullable`1 commandTimeout, Nullable`1 commandType)
   at IncidentReporter.DAL.Repositories.ReportsRepo.GetIncidentCategoryCounts(Int32 orgId, DateTime FromDate, DateTime ToDate, List`1 locationId, List`1 DivisionId) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\ReportsRepo.cs:line 416
   at IncidentReporter.API.BLL.ReportsBLL.GetIncidentCategoryCounts(ReportsFilter reportsFilter) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\ReportsBLL.cs:line 198"}
{"timestamp": "2026-03-31 11:08:52.874", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Reports/IncidentCountReport?OrgId=211&StartDate=2026-03-24&EndDate=2026-03-31&DivisionId=1274&DivisionId=1272&DivisionId=1273", "stackTrace": ""}
{"timestamp": "2026-03-31 11:08:52.887", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/211/Modules", "stackTrace": ""}
{"timestamp": "2026-03-31 11:08:52.887", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211", "stackTrace": ""}
{"timestamp": "2026-03-31 11:08:52.887", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Languages", "stackTrace": ""}
{"timestamp": "2026-03-31 11:08:52.887", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211/PendingActionsNotifications", "stackTrace": ""}
{"timestamp": "2026-03-31 11:08:52.887", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/attachments/organisations/logo2_68f3e96c-64c9-4944-91ef-5df7c3d5c925.png", "stackTrace": ""}
{"timestamp": "2026-03-31 11:08:52.910", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetPendingActionsNotificationsCount",
  "Message": "No password has been provided but the backend requires one (in SASL/SCRAM-SHA-256)",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.NpgsqlException (0x80004005): No password has been provided but the backend requires one (in SASL/SCRAM-SHA-256)
   at Npgsql.NpgsqlConnector.<AuthenticateSASL>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlConnector.<Authenticate>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlConnector.<Open>d__147.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.ConnectorPool.<AllocateLong>d__20.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlConnection.<>c__DisplayClass32_0.<<Open>g__OpenLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
   at IncidentReporter.DAL.Repositories.BaseRepo.<ExecuteQueryAsync>d__7`1.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\BaseRepo.cs:line 78
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.DAL.Repositories.OrganisationRepo.<GetOrganisationPreferences>d__12.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\OrganisationRepo.cs:line 379
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.NotificationsBLL.<GetUserAccessibleModules>d__34.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\NotificationsBLL.cs:line 1731
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.NotificationsBLL.<GetPendingActionsNotificationsCount>d__22.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\NotificationsBLL.cs:line 1146"}
{"timestamp": "2026-03-31 11:08:53.099", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/AccessControl/Modules/211", "stackTrace": ""}
{"timestamp": "2026-03-31 11:08:53.099", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/211/OrganisationStats?FromDate=2026-03-24&ToDate=2026-03-31&", "stackTrace": ""}
{"timestamp": "2026-03-31 11:08:53.099", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211/EscalatedIncidents", "stackTrace": ""}
{"timestamp": "2026-03-31 11:08:53.117", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetIncidentsAfterEscalation",
  "Message": "42601: syntax error at or near \"od\"",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42601: syntax error at or near "od"
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlDataReader.NextResult()
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
   at Dapper.SqlMapper.ExecuteReaderWithFlagsFallback(IDbCommand cmd, Boolean wasClosed, CommandBehavior behavior)
   at Dapper.SqlMapper.<QueryImpl>d__138`1.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at Dapper.SqlMapper.Query[T](IDbConnection cnn, String sql, Object param, IDbTransaction transaction, Boolean buffered, Nullable`1 commandTimeout, Nullable`1 commandType)
   at IncidentReporter.DAL.Repositories.IncidentsRepo.GetOpenIncidentsAfterEscalation(Int32 orgId) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\IncidentsRepo.cs:line 2506
   at IncidentReporter.API.BLL.IncidentsBLL.GetIncidentsAfterEscalation(Int32 orgId) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\IncidentsBLL.cs:line 3961"}
{"timestamp": "2026-03-31 11:08:53.117", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetOrganisationStats",
  "Message": "42883: operator does not exist: boolean = integer",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42883: operator does not exist: boolean = integer
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlDataReader.NextResult()
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
   at Dapper.SqlMapper.ExecuteReaderWithFlagsFallback(IDbCommand cmd, Boolean wasClosed, CommandBehavior behavior)
   at Dapper.SqlMapper.<QueryImpl>d__138`1.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at Dapper.SqlMapper.Query[T](IDbConnection cnn, String sql, Object param, IDbTransaction transaction, Boolean buffered, Nullable`1 commandTimeout, Nullable`1 commandType)
   at IncidentReporter.DAL.Repositories.IncidentsRepo.GetLocationIds(Int32 orgId) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\IncidentsRepo.cs:line 2991
   at IncidentReporter.API.BLL.ReportsBLL.GetOrganisationStats(Int32 OrgId, DashboardCountFilter dashboardCountFilter) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\ReportsBLL.cs:line 136"}
{"timestamp": "2026-03-31 11:08:53.160", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211", "stackTrace": ""}
{"timestamp": "2026-03-31 11:09:33.289", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Logout", "stackTrace": ""}
{"timestamp": "2026-03-31 11:09:33.335", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Logout", "stackTrace": ""}
{"timestamp": "2026-03-31 11:09:33.335", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {}", "stackTrace": ""}
{"timestamp": "2026-03-31 11:09:33.399", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Health", "stackTrace": ""}
{"timestamp": "2026-03-31 11:09:33.431", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Health", "stackTrace": ""}
{"timestamp": "2026-03-31 11:09:33.505", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538", "stackTrace": ""}
{"timestamp": "2026-03-31 11:09:33.535", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Reports/IncidentCountReport?OrgId=248&StartDate=2026-03-31&EndDate=2026-03-31", "stackTrace": ""}
{"timestamp": "2026-03-31 11:09:33.562", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Divisions/Dropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 11:09:33.588", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Reports/IncidentCountReport?OrgId=248&StartDate=2026-03-31&EndDate=2026-03-31", "stackTrace": ""}
{"timestamp": "2026-03-31 11:09:33.588", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538", "stackTrace": ""}
{"timestamp": "2026-03-31 11:09:33.588", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Divisions/Dropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 11:09:33.636", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Reports/IncidentStatusReport?OrgId=248&FromDate=2026-03-24&ToDate=2026-03-31&DivisionId=1637&DivisionId=1574&DivisionId=1575&DivisionId=1576", "stackTrace": ""}
{"timestamp": "2026-03-31 11:09:33.710", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Reports/IncidentStatusReport?OrgId=248&FromDate=2026-03-24&ToDate=2026-03-31&DivisionId=1637&DivisionId=1574&DivisionId=1575&DivisionId=1576", "stackTrace": ""}
{"timestamp": "2026-03-31 11:09:33.734", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetIncidentCategoryCounts",
  "Message": "42601: syntax error at or near \"$5\"",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42601: syntax error at or near "$5"
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlDataReader.NextResult()
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
   at Dapper.SqlMapper.ExecuteReaderWithFlagsFallback(IDbCommand cmd, Boolean wasClosed, CommandBehavior behavior)
   at Dapper.SqlMapper.<QueryImpl>d__138`1.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at Dapper.SqlMapper.Query[T](IDbConnection cnn, String sql, Object param, IDbTransaction transaction, Boolean buffered, Nullable`1 commandTimeout, Nullable`1 commandType)
   at IncidentReporter.DAL.Repositories.ReportsRepo.GetIncidentCategoryCounts(Int32 orgId, DateTime FromDate, DateTime ToDate, List`1 locationId, List`1 DivisionId) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\ReportsRepo.cs:line 416
   at IncidentReporter.API.BLL.ReportsBLL.GetIncidentCategoryCounts(ReportsFilter reportsFilter) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\ReportsBLL.cs:line 198"}
{"timestamp": "2026-03-31 11:09:33.741", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/Modules", "stackTrace": ""}
{"timestamp": "2026-03-31 11:09:33.741", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248", "stackTrace": ""}
{"timestamp": "2026-03-31 11:09:33.741", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Languages", "stackTrace": ""}
{"timestamp": "2026-03-31 11:09:33.741", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/PendingActionsNotifications", "stackTrace": ""}
{"timestamp": "2026-03-31 11:09:33.772", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Reports/IncidentCountReport?OrgId=248&StartDate=2026-03-24&EndDate=2026-03-31&DivisionId=1637&DivisionId=1574&DivisionId=1575&DivisionId=1576", "stackTrace": ""}
{"timestamp": "2026-03-31 11:09:33.806", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Languages", "stackTrace": ""}
{"timestamp": "2026-03-31 11:09:33.806", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/Modules", "stackTrace": ""}
{"timestamp": "2026-03-31 11:09:33.806", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248", "stackTrace": ""}
{"timestamp": "2026-03-31 11:09:33.806", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/PendingActionsNotifications", "stackTrace": ""}
{"timestamp": "2026-03-31 11:09:33.825", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetPendingActionsNotificationsCount",
  "Message": "No password has been provided but the backend requires one (in SASL/SCRAM-SHA-256)",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.NpgsqlException (0x80004005): No password has been provided but the backend requires one (in SASL/SCRAM-SHA-256)
   at Npgsql.NpgsqlConnector.<AuthenticateSASL>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlConnector.<Authenticate>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlConnector.<Open>d__147.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.ConnectorPool.<AllocateLong>d__20.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlConnection.<>c__DisplayClass32_0.<<Open>g__OpenLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
   at IncidentReporter.DAL.Repositories.BaseRepo.<ExecuteQueryAsync>d__7`1.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\BaseRepo.cs:line 78
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.DAL.Repositories.OrganisationRepo.<GetOrganisationPreferences>d__12.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\OrganisationRepo.cs:line 379
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.NotificationsBLL.<GetUserAccessibleModules>d__34.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\NotificationsBLL.cs:line 1731
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.NotificationsBLL.<GetPendingActionsNotificationsCount>d__22.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\NotificationsBLL.cs:line 1146"}
{"timestamp": "2026-03-31 11:09:33.856", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Reports/IncidentCountReport?OrgId=248&StartDate=2026-03-24&EndDate=2026-03-31&DivisionId=1637&DivisionId=1574&DivisionId=1575&DivisionId=1576", "stackTrace": ""}
{"timestamp": "2026-03-31 11:09:33.867", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/AccessControl/Modules/248", "stackTrace": ""}
{"timestamp": "2026-03-31 11:09:33.911", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/AccessControl/Modules/248", "stackTrace": ""}
{"timestamp": "2026-03-31 11:09:33.911", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/OrganisationStats?FromDate=2026-03-24&ToDate=2026-03-31&", "stackTrace": ""}
{"timestamp": "2026-03-31 11:09:33.911", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/EscalatedIncidents", "stackTrace": ""}
{"timestamp": "2026-03-31 11:09:33.946", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/OrganisationStats?FromDate=2026-03-24&ToDate=2026-03-31&", "stackTrace": ""}
{"timestamp": "2026-03-31 11:09:33.960", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/EscalatedIncidents", "stackTrace": ""}
{"timestamp": "2026-03-31 11:09:33.960", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248", "stackTrace": ""}
{"timestamp": "2026-03-31 11:09:33.973", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetIncidentsAfterEscalation",
  "Message": "42601: syntax error at or near \"od\"",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42601: syntax error at or near "od"
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlDataReader.NextResult()
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
   at Dapper.SqlMapper.ExecuteReaderWithFlagsFallback(IDbCommand cmd, Boolean wasClosed, CommandBehavior behavior)
   at Dapper.SqlMapper.<QueryImpl>d__138`1.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at Dapper.SqlMapper.Query[T](IDbConnection cnn, String sql, Object param, IDbTransaction transaction, Boolean buffered, Nullable`1 commandTimeout, Nullable`1 commandType)
   at IncidentReporter.DAL.Repositories.IncidentsRepo.GetOpenIncidentsAfterEscalation(Int32 orgId) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\IncidentsRepo.cs:line 2506
   at IncidentReporter.API.BLL.IncidentsBLL.GetIncidentsAfterEscalation(Int32 orgId) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\IncidentsBLL.cs:line 3961"}
{"timestamp": "2026-03-31 11:09:33.973", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetOrganisationStats",
  "Message": "42883: operator does not exist: boolean = integer",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42883: operator does not exist: boolean = integer
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlDataReader.NextResult()
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
   at Dapper.SqlMapper.ExecuteReaderWithFlagsFallback(IDbCommand cmd, Boolean wasClosed, CommandBehavior behavior)
   at Dapper.SqlMapper.<QueryImpl>d__138`1.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at Dapper.SqlMapper.Query[T](IDbConnection cnn, String sql, Object param, IDbTransaction transaction, Boolean buffered, Nullable`1 commandTimeout, Nullable`1 commandType)
   at IncidentReporter.DAL.Repositories.IncidentsRepo.GetLocationIds(Int32 orgId) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\IncidentsRepo.cs:line 2991
   at IncidentReporter.API.BLL.ReportsBLL.GetOrganisationStats(Int32 OrgId, DashboardCountFilter dashboardCountFilter) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\ReportsBLL.cs:line 136"}
{"timestamp": "2026-03-31 11:09:38.396", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Logout", "stackTrace": ""}
{"timestamp": "2026-03-31 11:09:38.481", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Logout", "stackTrace": ""}
{"timestamp": "2026-03-31 11:09:38.481", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {}", "stackTrace": ""}
{"timestamp": "2026-03-31 11:09:38.538", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Health", "stackTrace": ""}
{"timestamp": "2026-03-31 11:09:38.564", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Health", "stackTrace": ""}
{"timestamp": "2026-03-31 11:09:38.606", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211/Users/1955", "stackTrace": ""}
{"timestamp": "2026-03-31 11:09:38.606", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Reports/IncidentCountReport?OrgId=211&StartDate=2026-03-31&EndDate=2026-03-31", "stackTrace": ""}
{"timestamp": "2026-03-31 11:09:38.606", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211/Divisions/Dropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 11:09:38.630", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211/Users/1955", "stackTrace": ""}
{"timestamp": "2026-03-31 11:09:38.630", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Reports/IncidentCountReport?OrgId=211&StartDate=2026-03-31&EndDate=2026-03-31", "stackTrace": ""}
{"timestamp": "2026-03-31 11:09:38.648", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211/Divisions/Dropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 11:09:38.697", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Reports/IncidentStatusReport?OrgId=211&FromDate=2026-03-24&ToDate=2026-03-31&DivisionId=1274&DivisionId=1272&DivisionId=1273", "stackTrace": ""}
{"timestamp": "2026-03-31 11:09:38.736", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Reports/IncidentStatusReport?OrgId=211&FromDate=2026-03-24&ToDate=2026-03-31&DivisionId=1274&DivisionId=1272&DivisionId=1273", "stackTrace": ""}
{"timestamp": "2026-03-31 11:09:38.756", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetIncidentCategoryCounts",
  "Message": "42601: syntax error at or near \"$5\"",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42601: syntax error at or near "$5"
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlDataReader.NextResult()
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
   at Dapper.SqlMapper.ExecuteReaderWithFlagsFallback(IDbCommand cmd, Boolean wasClosed, CommandBehavior behavior)
   at Dapper.SqlMapper.<QueryImpl>d__138`1.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at Dapper.SqlMapper.Query[T](IDbConnection cnn, String sql, Object param, IDbTransaction transaction, Boolean buffered, Nullable`1 commandTimeout, Nullable`1 commandType)
   at IncidentReporter.DAL.Repositories.ReportsRepo.GetIncidentCategoryCounts(Int32 orgId, DateTime FromDate, DateTime ToDate, List`1 locationId, List`1 DivisionId) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\ReportsRepo.cs:line 416
   at IncidentReporter.API.BLL.ReportsBLL.GetIncidentCategoryCounts(ReportsFilter reportsFilter) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\ReportsBLL.cs:line 198"}
{"timestamp": "2026-03-31 11:09:38.817", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/211/Modules", "stackTrace": ""}
{"timestamp": "2026-03-31 11:09:38.817", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211", "stackTrace": ""}
{"timestamp": "2026-03-31 11:09:38.817", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Languages", "stackTrace": ""}
{"timestamp": "2026-03-31 11:09:38.817", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211/PendingActionsNotifications", "stackTrace": ""}
{"timestamp": "2026-03-31 11:09:38.817", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/attachments/organisations/logo2_68f3e96c-64c9-4944-91ef-5df7c3d5c925.png", "stackTrace": ""}
{"timestamp": "2026-03-31 11:09:38.849", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/211/Modules", "stackTrace": ""}
{"timestamp": "2026-03-31 11:09:38.849", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211", "stackTrace": ""}
{"timestamp": "2026-03-31 11:09:38.849", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Languages", "stackTrace": ""}
{"timestamp": "2026-03-31 11:09:38.866", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211/PendingActionsNotifications", "stackTrace": ""}
{"timestamp": "2026-03-31 11:09:38.882", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetPendingActionsNotificationsCount",
  "Message": "No password has been provided but the backend requires one (in SASL/SCRAM-SHA-256)",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.NpgsqlException (0x80004005): No password has been provided but the backend requires one (in SASL/SCRAM-SHA-256)
   at Npgsql.NpgsqlConnector.<AuthenticateSASL>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlConnector.<Authenticate>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlConnector.<Open>d__147.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.ConnectorPool.<AllocateLong>d__20.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlConnection.<>c__DisplayClass32_0.<<Open>g__OpenLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
   at IncidentReporter.DAL.Repositories.BaseRepo.<ExecuteQueryAsync>d__7`1.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\BaseRepo.cs:line 78
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.DAL.Repositories.OrganisationRepo.<GetOrganisationPreferences>d__12.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\OrganisationRepo.cs:line 379
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.NotificationsBLL.<GetUserAccessibleModules>d__34.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\NotificationsBLL.cs:line 1731
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.NotificationsBLL.<GetPendingActionsNotificationsCount>d__22.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\NotificationsBLL.cs:line 1146"}
{"timestamp": "2026-03-31 11:09:38.932", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Reports/IncidentCountReport?OrgId=211&StartDate=2026-03-24&EndDate=2026-03-31&DivisionId=1274&DivisionId=1272&DivisionId=1273", "stackTrace": ""}
{"timestamp": "2026-03-31 11:09:38.952", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/AccessControl/Modules/211", "stackTrace": ""}
{"timestamp": "2026-03-31 11:09:38.960", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Reports/IncidentCountReport?OrgId=211&StartDate=2026-03-24&EndDate=2026-03-31&DivisionId=1274&DivisionId=1272&DivisionId=1273", "stackTrace": ""}
{"timestamp": "2026-03-31 11:09:38.984", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/AccessControl/Modules/211", "stackTrace": ""}
{"timestamp": "2026-03-31 11:09:39.019", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/211/OrganisationStats?FromDate=2026-03-24&ToDate=2026-03-31&", "stackTrace": ""}
{"timestamp": "2026-03-31 11:09:39.029", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211/EscalatedIncidents", "stackTrace": ""}
{"timestamp": "2026-03-31 11:09:39.051", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/211/OrganisationStats?FromDate=2026-03-24&ToDate=2026-03-31&", "stackTrace": ""}
{"timestamp": "2026-03-31 11:09:39.066", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211", "stackTrace": ""}
{"timestamp": "2026-03-31 11:09:39.070", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetOrganisationStats",
  "Message": "42883: operator does not exist: boolean = integer",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42883: operator does not exist: boolean = integer
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlDataReader.NextResult()
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
   at Dapper.SqlMapper.ExecuteReaderWithFlagsFallback(IDbCommand cmd, Boolean wasClosed, CommandBehavior behavior)
   at Dapper.SqlMapper.<QueryImpl>d__138`1.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at Dapper.SqlMapper.Query[T](IDbConnection cnn, String sql, Object param, IDbTransaction transaction, Boolean buffered, Nullable`1 commandTimeout, Nullable`1 commandType)
   at IncidentReporter.DAL.Repositories.IncidentsRepo.GetLocationIds(Int32 orgId) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\IncidentsRepo.cs:line 2991
   at IncidentReporter.API.BLL.ReportsBLL.GetOrganisationStats(Int32 OrgId, DashboardCountFilter dashboardCountFilter) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\ReportsBLL.cs:line 136"}
{"timestamp": "2026-03-31 11:09:39.070", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211/EscalatedIncidents", "stackTrace": ""}
{"timestamp": "2026-03-31 11:09:39.088", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetIncidentsAfterEscalation",
  "Message": "42601: syntax error at or near \"od\"",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42601: syntax error at or near "od"
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlDataReader.NextResult()
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
   at Dapper.SqlMapper.ExecuteReaderWithFlagsFallback(IDbCommand cmd, Boolean wasClosed, CommandBehavior behavior)
   at Dapper.SqlMapper.<QueryImpl>d__138`1.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at Dapper.SqlMapper.Query[T](IDbConnection cnn, String sql, Object param, IDbTransaction transaction, Boolean buffered, Nullable`1 commandTimeout, Nullable`1 commandType)
   at IncidentReporter.DAL.Repositories.IncidentsRepo.GetOpenIncidentsAfterEscalation(Int32 orgId) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\IncidentsRepo.cs:line 2506
   at IncidentReporter.API.BLL.IncidentsBLL.GetIncidentsAfterEscalation(Int32 orgId) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\IncidentsBLL.cs:line 3961"}
{"timestamp": "2026-03-31 11:09:59.343", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Resources/eng", "stackTrace": ""}
{"timestamp": "2026-03-31 11:09:59.540", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Health", "stackTrace": ""}
{"timestamp": "2026-03-31 11:09:59.540", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Resources/package-features-eng", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:04.530", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Resources/eng", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:04.689", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Health", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:04.694", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Resources/package-features-eng", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:12.147", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Login", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:12.235", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Login", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:12.235", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"Email":"TTK_EHS@oqsha.com","Password":"Oasha@123","Country":"","Slot":"","PortalVersion":"5.36.0"}", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:16.212", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Login", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:16.277", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Login", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:16.277", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"Email":"MH_Admin_HO@oqsha.com","Password":"Oqsha@123","Country":"","Slot":"","PortalVersion":"5.36.0"}", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:20.177", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Login", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:20.177", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"Email":"MH_Admin_HO@oqsha.com","Password":"Oqsha@1234","Country":"","Slot":"","PortalVersion":"5.36.0"}", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:20.491", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:20.513", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:20.575", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/AccessControl/Modules/211", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:20.602", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/AccessControl/Modules/211", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:20.661", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Resources/eng?orgId=211", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:20.661", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211/Divisions", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:20.698", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Resources/eng?orgId=211", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:20.724", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211/Divisions", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:21.097", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211/IncidentLocations?isActive=1", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:21.124", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211/IncidentLocations?isActive=1", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:21.232", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211/Users/1955/incidentsites?isActive=1", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:21.262", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211/Users/1955/incidentsites?isActive=1", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:21.317", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:21.342", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:21.394", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211/Users/1955", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:21.421", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211/Users/1955", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:23.031", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/211/Modules", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:23.052", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211/Users/1955", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:23.052", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/211/Modules", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:23.082", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Reports/IncidentCountReport?OrgId=211&StartDate=2026-03-31&EndDate=2026-03-31", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:23.082", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211/Divisions/Dropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:23.120", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Reports/IncidentCountReport?OrgId=211&StartDate=2026-03-31&EndDate=2026-03-31", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:23.120", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211/Divisions/Dropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:23.193", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211/Users/1955", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:23.232", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Reports/IncidentStatusReport?OrgId=211&FromDate=2026-03-24&ToDate=2026-03-31&DivisionId=1274&DivisionId=1272&DivisionId=1273", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:23.266", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Reports/IncidentStatusReport?OrgId=211&FromDate=2026-03-24&ToDate=2026-03-31&DivisionId=1274&DivisionId=1272&DivisionId=1273", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:23.277", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetIncidentCategoryCounts",
  "Message": "42601: syntax error at or near \"$5\"",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42601: syntax error at or near "$5"
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlDataReader.NextResult()
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
   at Dapper.SqlMapper.ExecuteReaderWithFlagsFallback(IDbCommand cmd, Boolean wasClosed, CommandBehavior behavior)
   at Dapper.SqlMapper.<QueryImpl>d__138`1.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at Dapper.SqlMapper.Query[T](IDbConnection cnn, String sql, Object param, IDbTransaction transaction, Boolean buffered, Nullable`1 commandTimeout, Nullable`1 commandType)
   at IncidentReporter.DAL.Repositories.ReportsRepo.GetIncidentCategoryCounts(Int32 orgId, DateTime FromDate, DateTime ToDate, List`1 locationId, List`1 DivisionId) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\ReportsRepo.cs:line 416
   at IncidentReporter.API.BLL.ReportsBLL.GetIncidentCategoryCounts(ReportsFilter reportsFilter) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\ReportsBLL.cs:line 198"}
{"timestamp": "2026-03-31 11:10:23.316", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/211/Modules", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:23.316", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Languages", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:23.316", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:23.316", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211/PendingActionsNotifications", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:23.337", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Reports/IncidentCountReport?OrgId=211&StartDate=2026-03-24&EndDate=2026-03-31&DivisionId=1274&DivisionId=1272&DivisionId=1273", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:23.348", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Languages", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:23.348", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211/PendingActionsNotifications", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:23.369", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetPendingActionsNotificationsCount",
  "Message": "No password has been provided but the backend requires one (in SASL/SCRAM-SHA-256)",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.NpgsqlException (0x80004005): No password has been provided but the backend requires one (in SASL/SCRAM-SHA-256)
   at Npgsql.NpgsqlConnector.<AuthenticateSASL>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlConnector.<Authenticate>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlConnector.<Open>d__147.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.ConnectorPool.<AllocateLong>d__20.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlConnection.<>c__DisplayClass32_0.<<Open>g__OpenLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
   at IncidentReporter.DAL.Repositories.BaseRepo.<ExecuteQueryAsync>d__7`1.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\BaseRepo.cs:line 78
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.DAL.Repositories.OrganisationRepo.<GetOrganisationPreferences>d__12.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\OrganisationRepo.cs:line 379
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.NotificationsBLL.<GetUserAccessibleModules>d__34.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\NotificationsBLL.cs:line 1731
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.NotificationsBLL.<GetPendingActionsNotificationsCount>d__22.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\NotificationsBLL.cs:line 1146"}
{"timestamp": "2026-03-31 11:10:23.369", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/AccessControl/Modules/211", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:23.369", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Reports/IncidentCountReport?OrgId=211&StartDate=2026-03-24&EndDate=2026-03-31&DivisionId=1274&DivisionId=1272&DivisionId=1273", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:23.384", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/attachments/organisations/logo2_68f3e96c-64c9-4944-91ef-5df7c3d5c925.png", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:23.511", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/211/UserPreference", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:23.511", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/211/OrganisationStats?FromDate=2026-03-24&ToDate=2026-03-31&", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:23.511", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211/EscalatedIncidents", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:23.543", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/211/UserPreference", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:23.566", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211/EscalatedIncidents", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:23.566", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/211/OrganisationStats?FromDate=2026-03-24&ToDate=2026-03-31&", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:23.581", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetIncidentsAfterEscalation",
  "Message": "42601: syntax error at or near \"od\"",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42601: syntax error at or near "od"
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlDataReader.NextResult()
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
   at Dapper.SqlMapper.ExecuteReaderWithFlagsFallback(IDbCommand cmd, Boolean wasClosed, CommandBehavior behavior)
   at Dapper.SqlMapper.<QueryImpl>d__138`1.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at Dapper.SqlMapper.Query[T](IDbConnection cnn, String sql, Object param, IDbTransaction transaction, Boolean buffered, Nullable`1 commandTimeout, Nullable`1 commandType)
   at IncidentReporter.DAL.Repositories.IncidentsRepo.GetOpenIncidentsAfterEscalation(Int32 orgId) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\IncidentsRepo.cs:line 2506
   at IncidentReporter.API.BLL.IncidentsBLL.GetIncidentsAfterEscalation(Int32 orgId) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\IncidentsBLL.cs:line 3961"}
{"timestamp": "2026-03-31 11:10:23.581", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetOrganisationStats",
  "Message": "42883: operator does not exist: boolean = integer",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42883: operator does not exist: boolean = integer
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlDataReader.NextResult()
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
   at Dapper.SqlMapper.ExecuteReaderWithFlagsFallback(IDbCommand cmd, Boolean wasClosed, CommandBehavior behavior)
   at Dapper.SqlMapper.<QueryImpl>d__138`1.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at Dapper.SqlMapper.Query[T](IDbConnection cnn, String sql, Object param, IDbTransaction transaction, Boolean buffered, Nullable`1 commandTimeout, Nullable`1 commandType)
   at IncidentReporter.DAL.Repositories.IncidentsRepo.GetLocationIds(Int32 orgId) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\IncidentsRepo.cs:line 2991
   at IncidentReporter.API.BLL.ReportsBLL.GetOrganisationStats(Int32 OrgId, DashboardCountFilter dashboardCountFilter) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\ReportsBLL.cs:line 136"}
{"timestamp": "2026-03-31 11:10:23.644", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:34.242", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Login", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:34.335", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Login", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:34.335", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"Email":"TTK_EHS@oqsha.com","Password":"Oqsha@123","Country":"","Slot":"","PortalVersion":"5.36.0"}", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:34.528", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:34.553", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:34.598", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/AccessControl/Modules/248", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:34.623", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/AccessControl/Modules/248", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:34.670", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Resources/eng?orgId=248", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:34.694", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Resources/eng?orgId=248", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:42.502", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Divisions", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:42.533", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Divisions", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:42.726", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/IncidentLocations?isActive=1", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:42.751", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/IncidentLocations?isActive=1", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:42.838", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538/incidentsites?isActive=1", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:42.860", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538/incidentsites?isActive=1", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:42.913", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:42.933", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:43.001", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/Modules", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:43.027", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/Modules", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:43.055", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:43.055", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:43.074", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Reports/IncidentCountReport?OrgId=248&StartDate=2026-03-31&EndDate=2026-03-31", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:43.074", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:43.099", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Divisions/Dropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:43.099", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Reports/IncidentCountReport?OrgId=248&StartDate=2026-03-31&EndDate=2026-03-31", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:43.135", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Divisions/Dropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:43.162", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:43.186", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Reports/IncidentStatusReport?OrgId=248&FromDate=2026-03-24&ToDate=2026-03-31&DivisionId=1637&DivisionId=1574&DivisionId=1575&DivisionId=1576", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:43.209", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Reports/IncidentStatusReport?OrgId=248&FromDate=2026-03-24&ToDate=2026-03-31&DivisionId=1637&DivisionId=1574&DivisionId=1575&DivisionId=1576", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:43.252", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/Modules", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:43.255", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:43.255", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Languages", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:43.255", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/PendingActionsNotifications", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:43.282", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Languages", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:43.290", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/PendingActionsNotifications", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:43.290", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/AccessControl/Modules/248", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:43.301", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetIncidentCategoryCounts",
  "Message": "42601: syntax error at or near \"$5\"",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42601: syntax error at or near "$5"
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlDataReader.NextResult()
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
   at Dapper.SqlMapper.ExecuteReaderWithFlagsFallback(IDbCommand cmd, Boolean wasClosed, CommandBehavior behavior)
   at Dapper.SqlMapper.<QueryImpl>d__138`1.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at Dapper.SqlMapper.Query[T](IDbConnection cnn, String sql, Object param, IDbTransaction transaction, Boolean buffered, Nullable`1 commandTimeout, Nullable`1 commandType)
   at IncidentReporter.DAL.Repositories.ReportsRepo.GetIncidentCategoryCounts(Int32 orgId, DateTime FromDate, DateTime ToDate, List`1 locationId, List`1 DivisionId) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\ReportsRepo.cs:line 416
   at IncidentReporter.API.BLL.ReportsBLL.GetIncidentCategoryCounts(ReportsFilter reportsFilter) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\ReportsBLL.cs:line 198"}
{"timestamp": "2026-03-31 11:10:43.301", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetPendingActionsNotificationsCount",
  "Message": "No password has been provided but the backend requires one (in SASL/SCRAM-SHA-256)",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.NpgsqlException (0x80004005): No password has been provided but the backend requires one (in SASL/SCRAM-SHA-256)
   at Npgsql.NpgsqlConnector.<AuthenticateSASL>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlConnector.<Authenticate>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlConnector.<Open>d__147.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.ConnectorPool.<AllocateLong>d__20.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlConnection.<>c__DisplayClass32_0.<<Open>g__OpenLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
   at IncidentReporter.DAL.Repositories.BaseRepo.<ExecuteQueryAsync>d__7`1.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\BaseRepo.cs:line 78
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.DAL.Repositories.OrganisationRepo.<GetOrganisationPreferences>d__12.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\OrganisationRepo.cs:line 379
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.NotificationsBLL.<GetUserAccessibleModules>d__34.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\NotificationsBLL.cs:line 1731
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.NotificationsBLL.<GetPendingActionsNotificationsCount>d__22.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\NotificationsBLL.cs:line 1146"}
{"timestamp": "2026-03-31 11:10:43.355", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/AccessControl/Modules/248", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:43.369", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Reports/IncidentCountReport?OrgId=248&StartDate=2026-03-24&EndDate=2026-03-31&DivisionId=1637&DivisionId=1574&DivisionId=1575&DivisionId=1576", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:43.393", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Reports/IncidentCountReport?OrgId=248&StartDate=2026-03-24&EndDate=2026-03-31&DivisionId=1637&DivisionId=1574&DivisionId=1575&DivisionId=1576", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:43.405", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/UserPreference", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:43.431", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/UserPreference", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:43.452", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/OrganisationStats?FromDate=2026-03-24&ToDate=2026-03-31&", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:43.452", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/EscalatedIncidents", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:43.479", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/OrganisationStats?FromDate=2026-03-24&ToDate=2026-03-31&", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:43.479", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:43.479", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/EscalatedIncidents", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:43.496", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetOrganisationStats",
  "Message": "42883: operator does not exist: boolean = integer",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42883: operator does not exist: boolean = integer
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlDataReader.NextResult()
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
   at Dapper.SqlMapper.ExecuteReaderWithFlagsFallback(IDbCommand cmd, Boolean wasClosed, CommandBehavior behavior)
   at Dapper.SqlMapper.<QueryImpl>d__138`1.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at Dapper.SqlMapper.Query[T](IDbConnection cnn, String sql, Object param, IDbTransaction transaction, Boolean buffered, Nullable`1 commandTimeout, Nullable`1 commandType)
   at IncidentReporter.DAL.Repositories.IncidentsRepo.GetLocationIds(Int32 orgId) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\IncidentsRepo.cs:line 2991
   at IncidentReporter.API.BLL.ReportsBLL.GetOrganisationStats(Int32 OrgId, DashboardCountFilter dashboardCountFilter) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\ReportsBLL.cs:line 136"}
{"timestamp": "2026-03-31 11:10:43.496", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetIncidentsAfterEscalation",
  "Message": "42601: syntax error at or near \"od\"",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42601: syntax error at or near "od"
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlDataReader.NextResult()
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
   at Dapper.SqlMapper.ExecuteReaderWithFlagsFallback(IDbCommand cmd, Boolean wasClosed, CommandBehavior behavior)
   at Dapper.SqlMapper.<QueryImpl>d__138`1.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at Dapper.SqlMapper.Query[T](IDbConnection cnn, String sql, Object param, IDbTransaction transaction, Boolean buffered, Nullable`1 commandTimeout, Nullable`1 commandType)
   at IncidentReporter.DAL.Repositories.IncidentsRepo.GetOpenIncidentsAfterEscalation(Int32 orgId) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\IncidentsRepo.cs:line 2506
   at IncidentReporter.API.BLL.IncidentsBLL.GetIncidentsAfterEscalation(Int32 orgId) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\IncidentsBLL.cs:line 3961"}
{"timestamp": "2026-03-31 11:10:44.463", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Logout", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:44.530", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Logout", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:44.530", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {}", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:44.617", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Health", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:44.651", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Health", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:44.698", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211/Users/1955", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:44.698", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Reports/IncidentCountReport?OrgId=211&StartDate=2026-03-31&EndDate=2026-03-31", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:44.712", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211/Divisions/Dropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:44.735", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211/Users/1955", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:44.750", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Reports/IncidentCountReport?OrgId=211&StartDate=2026-03-31&EndDate=2026-03-31", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:44.777", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211/Divisions/Dropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:44.834", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/211/Modules", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:44.834", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:44.834", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Languages", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:44.834", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211/PendingActionsNotifications", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:44.834", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/attachments/organisations/logo2_68f3e96c-64c9-4944-91ef-5df7c3d5c925.png", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:44.860", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Reports/IncidentStatusReport?OrgId=211&FromDate=2026-03-24&ToDate=2026-03-31&DivisionId=1274&DivisionId=1272&DivisionId=1273", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:44.871", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/211/Modules", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:44.871", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:44.871", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Languages", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:44.891", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211/PendingActionsNotifications", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:44.909", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Reports/IncidentStatusReport?OrgId=211&FromDate=2026-03-24&ToDate=2026-03-31&DivisionId=1274&DivisionId=1272&DivisionId=1273", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:44.909", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetPendingActionsNotificationsCount",
  "Message": "No password has been provided but the backend requires one (in SASL/SCRAM-SHA-256)",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.NpgsqlException (0x80004005): No password has been provided but the backend requires one (in SASL/SCRAM-SHA-256)
   at Npgsql.NpgsqlConnector.<AuthenticateSASL>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlConnector.<Authenticate>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlConnector.<Open>d__147.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.ConnectorPool.<AllocateLong>d__20.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlConnection.<>c__DisplayClass32_0.<<Open>g__OpenLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
   at IncidentReporter.DAL.Repositories.BaseRepo.<ExecuteQueryAsync>d__7`1.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\BaseRepo.cs:line 78
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.DAL.Repositories.OrganisationRepo.<GetOrganisationPreferences>d__12.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\OrganisationRepo.cs:line 379
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.NotificationsBLL.<GetUserAccessibleModules>d__34.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\NotificationsBLL.cs:line 1731
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.NotificationsBLL.<GetPendingActionsNotificationsCount>d__22.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\NotificationsBLL.cs:line 1146"}
{"timestamp": "2026-03-31 11:10:44.928", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetIncidentCategoryCounts",
  "Message": "42601: syntax error at or near \"$5\"",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42601: syntax error at or near "$5"
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlDataReader.NextResult()
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
   at Dapper.SqlMapper.ExecuteReaderWithFlagsFallback(IDbCommand cmd, Boolean wasClosed, CommandBehavior behavior)
   at Dapper.SqlMapper.<QueryImpl>d__138`1.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at Dapper.SqlMapper.Query[T](IDbConnection cnn, String sql, Object param, IDbTransaction transaction, Boolean buffered, Nullable`1 commandTimeout, Nullable`1 commandType)
   at IncidentReporter.DAL.Repositories.ReportsRepo.GetIncidentCategoryCounts(Int32 orgId, DateTime FromDate, DateTime ToDate, List`1 locationId, List`1 DivisionId) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\ReportsRepo.cs:line 416
   at IncidentReporter.API.BLL.ReportsBLL.GetIncidentCategoryCounts(ReportsFilter reportsFilter) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\ReportsBLL.cs:line 198"}
{"timestamp": "2026-03-31 11:10:44.944", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/AccessControl/Modules/211", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:44.965", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Reports/IncidentCountReport?OrgId=211&StartDate=2026-03-24&EndDate=2026-03-31&DivisionId=1274&DivisionId=1272&DivisionId=1273", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:45.011", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/AccessControl/Modules/211", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:45.044", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Reports/IncidentCountReport?OrgId=211&StartDate=2026-03-24&EndDate=2026-03-31&DivisionId=1274&DivisionId=1272&DivisionId=1273", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:45.079", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:45.121", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/211/OrganisationStats?FromDate=2026-03-24&ToDate=2026-03-31&", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:45.121", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211/EscalatedIncidents", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:45.174", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/211/OrganisationStats?FromDate=2026-03-24&ToDate=2026-03-31&", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:45.194", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetOrganisationStats",
  "Message": "42883: operator does not exist: boolean = integer",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42883: operator does not exist: boolean = integer
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlDataReader.NextResult()
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
   at Dapper.SqlMapper.ExecuteReaderWithFlagsFallback(IDbCommand cmd, Boolean wasClosed, CommandBehavior behavior)
   at Dapper.SqlMapper.<QueryImpl>d__138`1.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at Dapper.SqlMapper.Query[T](IDbConnection cnn, String sql, Object param, IDbTransaction transaction, Boolean buffered, Nullable`1 commandTimeout, Nullable`1 commandType)
   at IncidentReporter.DAL.Repositories.IncidentsRepo.GetLocationIds(Int32 orgId) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\IncidentsRepo.cs:line 2991
   at IncidentReporter.API.BLL.ReportsBLL.GetOrganisationStats(Int32 OrgId, DashboardCountFilter dashboardCountFilter) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\ReportsBLL.cs:line 136"}
{"timestamp": "2026-03-31 11:10:45.194", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/211/EscalatedIncidents", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:45.212", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetIncidentsAfterEscalation",
  "Message": "42601: syntax error at or near \"od\"",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42601: syntax error at or near "od"
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlDataReader.NextResult()
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
   at Dapper.SqlMapper.ExecuteReaderWithFlagsFallback(IDbCommand cmd, Boolean wasClosed, CommandBehavior behavior)
   at Dapper.SqlMapper.<QueryImpl>d__138`1.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at Dapper.SqlMapper.Query[T](IDbConnection cnn, String sql, Object param, IDbTransaction transaction, Boolean buffered, Nullable`1 commandTimeout, Nullable`1 commandType)
   at IncidentReporter.DAL.Repositories.IncidentsRepo.GetOpenIncidentsAfterEscalation(Int32 orgId) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\IncidentsRepo.cs:line 2506
   at IncidentReporter.API.BLL.IncidentsBLL.GetIncidentsAfterEscalation(Int32 orgId) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\IncidentsBLL.cs:line 3961"}
{"timestamp": "2026-03-31 11:10:55.029", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Resources/eng", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:55.218", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Health", "stackTrace": ""}
{"timestamp": "2026-03-31 11:10:55.224", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Resources/package-features-eng", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:00.748", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Login", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:00.775", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Login", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:00.775", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"Email":"TTK_EHS@oqsha.com","Password":"Oqsha@123","Country":"","Slot":"","PortalVersion":"5.36.0"}", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:00.980", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:01.005", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:01.070", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/AccessControl/Modules/248", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:01.095", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/AccessControl/Modules/248", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:01.154", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Resources/eng?orgId=248", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:01.179", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Resources/eng?orgId=248", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:17.387", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Divisions", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:17.430", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Divisions", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:17.622", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/IncidentLocations?isActive=1", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:17.653", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/IncidentLocations?isActive=1", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:17.780", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538/incidentsites?isActive=1", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:17.803", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538/incidentsites?isActive=1", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:17.856", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:17.887", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:17.957", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:17.986", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:19.715", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/Modules", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:19.746", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/Modules", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:19.755", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:19.900", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:19.995", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:20.014", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:20.014", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/Modules", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:20.014", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Languages", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:20.014", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/PendingActionsNotifications", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:20.047", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Languages", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:20.088", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/PendingActionsNotifications", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:20.088", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/AccessControl/Modules/248", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:20.088", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/attachments/organisations/TTK_e54e850a-a12b-4b5f-830c-e5eef42ebe61.png", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:20.103", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetPendingActionsNotificationsCount",
  "Message": "No password has been provided but the backend requires one (in SASL/SCRAM-SHA-256)",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.NpgsqlException (0x80004005): No password has been provided but the backend requires one (in SASL/SCRAM-SHA-256)
   at Npgsql.NpgsqlConnector.<AuthenticateSASL>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlConnector.<Authenticate>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlConnector.<Open>d__147.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.ConnectorPool.<AllocateLong>d__20.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlConnection.<>c__DisplayClass32_0.<<Open>g__OpenLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
   at IncidentReporter.DAL.Repositories.BaseRepo.<ExecuteQueryAsync>d__7`1.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\BaseRepo.cs:line 78
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.DAL.Repositories.OrganisationRepo.<GetOrganisationPreferences>d__12.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\OrganisationRepo.cs:line 379
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.NotificationsBLL.<GetUserAccessibleModules>d__34.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\NotificationsBLL.cs:line 1731
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.NotificationsBLL.<GetPendingActionsNotificationsCount>d__22.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\NotificationsBLL.cs:line 1146"}
{"timestamp": "2026-03-31 11:11:20.118", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/AccessControl/Modules/248", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:20.187", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/UserPreference", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:20.215", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/UserPreference", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:20.278", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:20.339", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/TaskCategories/Dropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:20.339", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Training/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:20.376", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/TaskCategories/Dropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:20.376", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteId":["708","744","707","705","709","706"]}", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:20.405", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Training/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:20.405", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31"}", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:20.426", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Divisions/Dropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:20.514", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Divisions/Dropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:20.552", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Incidents/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:20.552", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Tasks/List/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:20.552", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Tasks/List/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:20.552", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/ManagementOfChangeList/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:20.552", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/KPI/PlantMaster/Sites/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:20.552", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/IncidentManagement/Firs/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:20.552", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Inspections/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:20.552", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/PermitToWork/All/Sites/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:20.552", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Courses/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:20.595", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Tasks/List/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:20.595", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31","CategoryId":[]}", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:20.595", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Incidents/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:20.598", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31","CategoryId":[1637,1574,1575,1576]}", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:20.598", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Tasks/List/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:20.598", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31","AcmModuleId":46}", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:20.598", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/ManagementOfChangeList/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:20.598", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/IncidentManagement/Firs/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:20.598", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31"}", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:20.598", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Inspections/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:20.598", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31"}", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:20.598", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31"}", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:20.598", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/KPI/PlantMaster/Sites/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:20.598", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"]}", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:20.620", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Courses/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:20.620", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31"}", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:20.620", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/PermitToWork/All/Sites/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:20.620", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31"}", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:20.641", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetMultiSiteTaskCounts",
  "Message": "42883: operator does not exist: task_categories_created_source = text",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42883: operator does not exist: task_categories_created_source = text
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Dapper.SqlMapper.<QueryRowAsync>d__34`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.DAL.Repositories.TaskRepo.<>c__DisplayClass161_0.<<GetTaskCategoryIdByAcmModuleId>b__0>d.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\TaskRepo.cs:line 5082
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.DAL.Repositories.BaseRepo.<ExecuteQueryAsync>d__7`1.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\BaseRepo.cs:line 79
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.DAL.Repositories.TaskRepo.<GetTaskCategoryIdByAcmModuleId>d__161.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\TaskRepo.cs:line 5081
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.TaskBLL.<GetMultiSiteTaskCounts>d__73.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\TaskBLL.cs:line 5471"}
{"timestamp": "2026-03-31 11:11:20.925", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/WorkPermit/Statuses", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:20.925", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Library/Categories", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:20.925", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/KPI/EmployeeMasterDropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:20.925", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/KPI/PlantMasterDropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:20.925", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/Users/DropDown?ModuleName=Library", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:20.953", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/WorkPermit/Statuses", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:20.957", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Library/Categories", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:20.957", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"OrgId":248}", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:20.957", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/KPI/EmployeeMasterDropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:20.957", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"OrgId":[248],"SiteId":["708","744","707","705","709","706"]}", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:20.957", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/KPI/PlantMasterDropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:20.957", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"OrgId":[248],"SiteId":["708","744","707","705","709","706"]}", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:20.974", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/Users/DropDown?ModuleName=Library", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:21.115", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/KPI/PlantMaster/AverageRatings", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:21.140", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/KPI/PlantMaster/AverageRatings", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:21.140", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"KpiId":[21,22,23,24,25,33,34,35,36,37,27,28,29,30,31,38,39,40,41,42,16],"SiteIds":["708","744","707","705","709","706"]}", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:21.156", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetPlantMasterAverageRatings",
  "Message": "42601: syntax error at or near \"$1\"",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42601: syntax error at or near "$1"
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Dapper.SqlMapper.<QueryAsync>d__33`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
   at IncidentReporter.DAL.Repositories.EmployeeKpiRepo.<GetPlantMasterAverageRatings>d__72.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\EmployeeKpiRepo .cs:line 2371
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.EmployeeKpiBLL.<GetPlantMasterAverageRatings>d__46.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\EmployeeKpiBLL.cs:line 2186"}
{"timestamp": "2026-03-31 11:11:33.358", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Resources/eng?orgId=248", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:33.401", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Resources/eng?orgId=248", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:33.494", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/AccessControl/Modules/248", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:33.520", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/AccessControl/Modules/248", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:33.579", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Health", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:33.581", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Resources/package-features-eng", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:33.605", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Health", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:33.625", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Resources/package-features-eng", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:38.353", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:38.382", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:38.831", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:38.929", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:39.013", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:39.051", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/Modules", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:39.051", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:39.051", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Languages", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:39.051", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/PendingActionsNotifications", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:39.051", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/attachments/organisations/TTK_e54e850a-a12b-4b5f-830c-e5eef42ebe61.png", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:39.075", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/Modules", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:39.075", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:39.075", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Languages", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:39.098", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/PendingActionsNotifications", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:39.098", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetPendingActionsNotificationsCount",
  "Message": "No password has been provided but the backend requires one (in SASL/SCRAM-SHA-256)",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.NpgsqlException (0x80004005): No password has been provided but the backend requires one (in SASL/SCRAM-SHA-256)
   at Npgsql.NpgsqlConnector.<AuthenticateSASL>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlConnector.<Authenticate>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlConnector.<Open>d__147.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.ConnectorPool.<AllocateLong>d__20.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlConnection.<>c__DisplayClass32_0.<<Open>g__OpenLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
   at IncidentReporter.DAL.Repositories.BaseRepo.<ExecuteQueryAsync>d__7`1.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\BaseRepo.cs:line 78
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.DAL.Repositories.OrganisationRepo.<GetOrganisationPreferences>d__12.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\OrganisationRepo.cs:line 379
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.NotificationsBLL.<GetUserAccessibleModules>d__34.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\NotificationsBLL.cs:line 1731
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.NotificationsBLL.<GetPendingActionsNotificationsCount>d__22.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\NotificationsBLL.cs:line 1146"}
{"timestamp": "2026-03-31 11:11:39.118", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/AccessControl/Modules/248", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:39.202", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/AccessControl/Modules/248", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:39.259", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:39.318", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Training/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:39.318", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/TaskCategories/Dropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:39.346", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Training/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:39.346", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31"}", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:39.363", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/TaskCategories/Dropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:39.363", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteId":["708","744","707","705","709","706"]}", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:39.405", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Divisions/Dropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:39.494", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Divisions/Dropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:39.541", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Incidents/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:39.541", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Tasks/List/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:39.549", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/KPI/PlantMaster/Sites/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:39.549", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Tasks/List/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:39.549", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/IncidentManagement/Firs/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:39.549", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Inspections/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:39.549", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Incidents/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:39.549", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31","CategoryId":[1637,1574,1575,1576]}", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:39.568", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/ManagementOfChangeList/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:39.568", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/PermitToWork/All/Sites/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:39.568", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Tasks/List/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:39.568", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31","CategoryId":[]}", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:39.568", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Courses/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:39.568", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/KPI/PlantMaster/Sites/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:39.568", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"]}", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:39.580", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Tasks/List/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:39.580", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31","AcmModuleId":46}", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:39.580", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/IncidentManagement/Firs/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:39.580", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31"}", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:39.580", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Inspections/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:39.580", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31"}", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:39.580", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetMultiSiteTaskCounts",
  "Message": "42883: operator does not exist: task_categories_created_source = text",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42883: operator does not exist: task_categories_created_source = text
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Dapper.SqlMapper.<QueryRowAsync>d__34`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.DAL.Repositories.TaskRepo.<>c__DisplayClass161_0.<<GetTaskCategoryIdByAcmModuleId>b__0>d.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\TaskRepo.cs:line 5082
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.DAL.Repositories.BaseRepo.<ExecuteQueryAsync>d__7`1.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\BaseRepo.cs:line 79
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.DAL.Repositories.TaskRepo.<GetTaskCategoryIdByAcmModuleId>d__161.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\TaskRepo.cs:line 5081
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.TaskBLL.<GetMultiSiteTaskCounts>d__73.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\TaskBLL.cs:line 5471"}
{"timestamp": "2026-03-31 11:11:39.580", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/ManagementOfChangeList/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:39.595", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31"}", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:39.595", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/PermitToWork/All/Sites/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:39.595", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31"}", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:39.595", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Courses/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:39.595", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31"}", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:39.804", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/WorkPermit/Statuses", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:39.804", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Library/Categories", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:39.804", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/KPI/PlantMasterDropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:39.804", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/KPI/EmployeeMasterDropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:39.804", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/Users/DropDown?ModuleName=Library", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:39.829", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/WorkPermit/Statuses", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:39.835", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Library/Categories", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:39.835", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"OrgId":248}", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:39.835", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/KPI/PlantMasterDropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:39.835", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"OrgId":[248],"SiteId":["708","744","707","705","709","706"]}", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:39.835", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/KPI/EmployeeMasterDropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:39.835", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"OrgId":[248],"SiteId":["708","744","707","705","709","706"]}", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:39.849", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/Users/DropDown?ModuleName=Library", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:39.961", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/KPI/PlantMaster/AverageRatings", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:39.985", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/KPI/PlantMaster/AverageRatings", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:39.985", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"KpiId":[21,22,23,24,25,33,34,35,36,37,27,28,29,30,31,38,39,40,41,42,16],"SiteIds":["708","744","707","705","709","706"]}", "stackTrace": ""}
{"timestamp": "2026-03-31 11:11:40.003", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetPlantMasterAverageRatings",
  "Message": "42601: syntax error at or near \"$1\"",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42601: syntax error at or near "$1"
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Dapper.SqlMapper.<QueryAsync>d__33`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
   at IncidentReporter.DAL.Repositories.EmployeeKpiRepo.<GetPlantMasterAverageRatings>d__72.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\EmployeeKpiRepo .cs:line 2371
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.EmployeeKpiBLL.<GetPlantMasterAverageRatings>d__46.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\EmployeeKpiBLL.cs:line 2186"}
{"timestamp": "2026-03-31 11:12:02.587", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:02.587", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:02.612", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:02.631", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:02.674", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/AppFilterUsers?Role=fieldStaff&OrgId=248&LocationId=708&LocationId=744&LocationId=707&LocationId=705&LocationId=709&LocationId=706", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:02.674", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/IncidentStatuses", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:02.674", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:02.697", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/AppFilterUsers?Role=fieldStaff&OrgId=248&LocationId=708&LocationId=744&LocationId=707&LocationId=705&LocationId=709&LocationId=706", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:02.705", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetUsersforAppFilter",
  "Message": "42601: syntax error at or near \"$1\"",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42601: syntax error at or near "$1"
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Dapper.SqlMapper.<QueryAsync>d__33`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.DAL.Repositories.UsersRepo.<GetAppFilterUsers>d__57.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\UsersRepo.cs:line 1788
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.UsersBLL.<GetUsersforAppFilter>d__25.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\UsersBLL.cs:line 1764"}
{"timestamp": "2026-03-31 11:12:02.705", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:02.705", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/IncidentStatuses", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:02.926", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Incidents", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:02.954", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Incidents", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:02.954", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"OrgId":[248],"PageNumber":1,"PageLimit":1,"StartDate":"2026-03-31","EndDate":"2026-03-31","SearchTerm":"","SortingColumn":["CreatedOn"],"SortingOrder":["desc"]}", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:02.968", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "Get",
  "Message": "42883: operator does not exist: boolean = integer",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42883: operator does not exist: boolean = integer
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlDataReader.NextResult()
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.<ExecuteScalar>d__90.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.ExecuteScalar()
   at Dapper.SqlMapper.ExecuteScalarImpl[T](IDbConnection cnn, CommandDefinition& command)
   at Dapper.SqlMapper.ExecuteScalar[T](IDbConnection cnn, String sql, Object param, IDbTransaction transaction, Nullable`1 commandTimeout, Nullable`1 commandType)
   at IncidentReporter.DAL.Repositories.PtwRepo.GetDefaultCompany(Int32 orgId) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\PtwRepo.cs:line 6184
   at IncidentReporter.API.BLL.IncidentsBLL.<ApplyFiltersAsync>d__110.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\IncidentsBLL.cs:line 7592
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.IncidentsBLL.<Get>d__10.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\IncidentsBLL.cs:line 90"}
{"timestamp": "2026-03-31 11:12:02.968", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Company/All?&IsActive=1", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:02.968", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Divisions/Dropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:02.996", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Company/All?&IsActive=1", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:03.002", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Npgsql.PostgresException (0x80004005): 42601: syntax error at or near "$1"
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlDataReader.NextResult()
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
   at Dapper.SqlMapper.ExecuteReaderWithFlagsFallback(IDbCommand cmd, Boolean wasClosed, CommandBehavior behavior)
   at Dapper.SqlMapper.<QueryImpl>d__138`1.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at Dapper.SqlMapper.Query[T](IDbConnection cnn, String sql, Object param, IDbTransaction transaction, Boolean buffered, Nullable`1 commandTimeout, Nullable`1 commandType)
   at IncidentReporter.DAL.Repositories.IncidentsRepo.GetDistinctUserIdsBySiteIds(Int32 organisationId, List`1 siteIds) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\IncidentsRepo.cs:line 4829
   at IncidentReporter.API.BLL.PtwBLL.<GetAllCompanyByOrgId>d__49.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\PtwBLL.cs:line 3449", "stackTrace": "Npgsql.PostgresException (0x80004005): 42601: syntax error at or near "$1"
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlDataReader.NextResult()
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
   at Dapper.SqlMapper.ExecuteReaderWithFlagsFallback(IDbCommand cmd, Boolean wasClosed, CommandBehavior behavior)
   at Dapper.SqlMapper.<QueryImpl>d__138`1.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at Dapper.SqlMapper.Query[T](IDbConnection cnn, String sql, Object param, IDbTransaction transaction, Boolean buffered, Nullable`1 commandTimeout, Nullable`1 commandType)
   at IncidentReporter.DAL.Repositories.IncidentsRepo.GetDistinctUserIdsBySiteIds(Int32 organisationId, List`1 siteIds) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\IncidentsRepo.cs:line 4829
   at IncidentReporter.API.BLL.PtwBLL.<GetAllCompanyByOrgId>d__49.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\PtwBLL.cs:line 3449"}
{"timestamp": "2026-03-31 11:12:03.002", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Divisions/Dropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:03.125", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Departments?SortingColumn=Name&SortingOrder=Asc&SiteId=708&SiteId=744&SiteId=707&SiteId=705&SiteId=709&SiteId=706", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:03.155", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Departments?SortingColumn=Name&SortingOrder=Asc&SiteId=708&SiteId=744&SiteId=707&SiteId=705&SiteId=709&SiteId=706", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:03.171", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetDepartmentsByOrgIdAsync",
  "Message": "42601: syntax error at or near \"$3\"",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42601: syntax error at or near "$3"
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Dapper.SqlMapper.<QueryAsync>d__33`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
   at IncidentReporter.DAL.Repositories.DepartmentsRepo.<GetDepartmentsByOrgIdAsync>d__14.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\DepartmentsRepo.cs:line 492
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.DepartmentsBLL.<GetDepartmentsByOrgIdAsync>d__11.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\DepartmentsBLL.cs:line 357"}
{"timestamp": "2026-03-31 11:12:03.201", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/FieldStaffAndAppUsers?Role=3&SiteIds=708&SiteIds=744&SiteIds=707&SiteIds=705&SiteIds=709&SiteIds=706", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:03.201", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/FieldStaffAndAppUsers?Role=1&SiteIds=708&SiteIds=744&SiteIds=707&SiteIds=705&SiteIds=709&SiteIds=706", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:03.226", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/FieldStaffAndAppUsers?Role=3&SiteIds=708&SiteIds=744&SiteIds=707&SiteIds=705&SiteIds=709&SiteIds=706", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:03.239", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetFieldStaffAndAppUsers",
  "Message": "42601: syntax error at or near \"$3\"",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42601: syntax error at or near "$3"
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Dapper.SqlMapper.<QueryAsync>d__33`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.DAL.Repositories.UsersRepo.<GetFieldStaffAndAppUsersAsync>d__331.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\UsersRepo.cs:line 9262
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.UsersBLL.<GetFieldStaffAndAppUsers>d__127.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\UsersBLL.cs:line 8962"}
{"timestamp": "2026-03-31 11:12:03.253", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/FieldStaffAndAppUsers?Role=1&SiteIds=708&SiteIds=744&SiteIds=707&SiteIds=705&SiteIds=709&SiteIds=706", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:03.253", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetFieldStaffAndAppUsers",
  "Message": "42601: syntax error at or near \"$3\"",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42601: syntax error at or near "$3"
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Dapper.SqlMapper.<QueryAsync>d__33`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.DAL.Repositories.UsersRepo.<GetFieldStaffAndAppUsersAsync>d__331.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\UsersRepo.cs:line 9262
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.UsersBLL.<GetFieldStaffAndAppUsers>d__127.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\UsersBLL.cs:line 8962"}
{"timestamp": "2026-03-31 11:12:03.691", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Incidents", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:03.691", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"UserId":null,"ReportedByUserIds":[],"OrgId":[248],"CompanyId":[],"LocationId":[],"DivisionId":[1637,1574,1575,1576],"DepartmentId":[],"AssignedTo":[],"IncidentStatusIds":[390],"PageNumber":1,"PageLimit":10,"StartDate":"2025-05-01","EndDate":"2026-03-31","SearchTerm":"","SortingColumn":["CreatedOn"],"SortingOrder":["desc"],"ShowReportedTicket":false}", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:03.691", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "Get",
  "Message": "42883: operator does not exist: boolean = integer",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42883: operator does not exist: boolean = integer
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlDataReader.NextResult()
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.<ExecuteScalar>d__90.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.ExecuteScalar()
   at Dapper.SqlMapper.ExecuteScalarImpl[T](IDbConnection cnn, CommandDefinition& command)
   at Dapper.SqlMapper.ExecuteScalar[T](IDbConnection cnn, String sql, Object param, IDbTransaction transaction, Nullable`1 commandTimeout, Nullable`1 commandType)
   at IncidentReporter.DAL.Repositories.PtwRepo.GetDefaultCompany(Int32 orgId) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\PtwRepo.cs:line 6184
   at IncidentReporter.API.BLL.IncidentsBLL.<ApplyFiltersAsync>d__110.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\IncidentsBLL.cs:line 7592
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.IncidentsBLL.<Get>d__10.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\IncidentsBLL.cs:line 90"}
{"timestamp": "2026-03-31 11:12:21.136", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:21.179", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:21.279", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Training/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:21.279", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/TaskCategories/Dropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:21.303", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Training/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:21.303", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31"}", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:21.326", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/TaskCategories/Dropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:21.326", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteId":["708","744","707","705","709","706"]}", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:21.405", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Divisions/Dropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:21.434", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Divisions/Dropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:21.494", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Incidents/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:21.494", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Tasks/List/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:21.503", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/KPI/PlantMaster/Sites/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:21.503", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Tasks/List/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:21.503", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/IncidentManagement/Firs/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:21.522", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Inspections/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:21.522", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Incidents/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:21.522", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31","CategoryId":[1637,1574,1575,1576]}", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:21.522", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/ManagementOfChangeList/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:21.522", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/PermitToWork/All/Sites/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:21.546", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Courses/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:21.546", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Tasks/List/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:21.552", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31","CategoryId":[]}", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:21.552", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/KPI/PlantMaster/Sites/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:21.552", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"]}", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:21.552", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Tasks/List/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:21.552", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/IncidentManagement/Firs/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:21.552", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31"}", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:21.552", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/ManagementOfChangeList/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:21.552", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31"}", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:21.552", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Inspections/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:21.552", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31"}", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:21.552", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/PermitToWork/All/Sites/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:21.552", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31"}", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:21.552", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31","AcmModuleId":46}", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:21.589", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Courses/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:21.589", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31"}", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:21.602", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetMultiSiteTaskCounts",
  "Message": "42883: operator does not exist: task_categories_created_source = text",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42883: operator does not exist: task_categories_created_source = text
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Dapper.SqlMapper.<QueryRowAsync>d__34`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.DAL.Repositories.TaskRepo.<>c__DisplayClass161_0.<<GetTaskCategoryIdByAcmModuleId>b__0>d.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\TaskRepo.cs:line 5082
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.DAL.Repositories.BaseRepo.<ExecuteQueryAsync>d__7`1.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\BaseRepo.cs:line 79
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.DAL.Repositories.TaskRepo.<GetTaskCategoryIdByAcmModuleId>d__161.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\TaskRepo.cs:line 5081
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.TaskBLL.<GetMultiSiteTaskCounts>d__73.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\TaskBLL.cs:line 5471"}
{"timestamp": "2026-03-31 11:12:21.751", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/WorkPermit/Statuses", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:21.751", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Library/Categories", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:21.751", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/KPI/PlantMasterDropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:21.751", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/KPI/EmployeeMasterDropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:21.751", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/Users/DropDown?ModuleName=Library", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:21.776", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/WorkPermit/Statuses", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:21.776", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Library/Categories", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:21.776", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"OrgId":248}", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:21.776", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/KPI/PlantMasterDropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:21.776", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"OrgId":[248],"SiteId":["708","744","707","705","709","706"]}", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:21.776", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/KPI/EmployeeMasterDropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:21.786", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"OrgId":[248],"SiteId":["708","744","707","705","709","706"]}", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:21.798", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/Users/DropDown?ModuleName=Library", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:21.896", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/KPI/PlantMaster/AverageRatings", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:21.922", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/KPI/PlantMaster/AverageRatings", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:21.922", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"KpiId":[21,22,23,24,25,33,34,35,36,37,27,28,29,30,31,38,39,40,41,42,16],"SiteIds":["708","744","707","705","709","706"]}", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:21.939", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetPlantMasterAverageRatings",
  "Message": "42601: syntax error at or near \"$1\"",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42601: syntax error at or near "$1"
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Dapper.SqlMapper.<QueryAsync>d__33`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
   at IncidentReporter.DAL.Repositories.EmployeeKpiRepo.<GetPlantMasterAverageRatings>d__72.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\EmployeeKpiRepo .cs:line 2371
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.EmployeeKpiBLL.<GetPlantMasterAverageRatings>d__46.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\EmployeeKpiBLL.cs:line 2186"}
{"timestamp": "2026-03-31 11:12:45.467", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:45.467", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:45.509", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:45.509", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:45.562", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/AppFilterUsers?Role=fieldStaff&OrgId=248&LocationId=708&LocationId=744&LocationId=707&LocationId=705&LocationId=709&LocationId=706", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:45.562", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/IncidentStatuses", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:45.587", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/AppFilterUsers?Role=fieldStaff&OrgId=248&LocationId=708&LocationId=744&LocationId=707&LocationId=705&LocationId=709&LocationId=706", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:45.587", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/IncidentStatuses", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:45.587", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:45.598", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetUsersforAppFilter",
  "Message": "42601: syntax error at or near \"$1\"",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42601: syntax error at or near "$1"
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Dapper.SqlMapper.<QueryAsync>d__33`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.DAL.Repositories.UsersRepo.<GetAppFilterUsers>d__57.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\UsersRepo.cs:line 1788
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.UsersBLL.<GetUsersforAppFilter>d__25.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\UsersBLL.cs:line 1764"}
{"timestamp": "2026-03-31 11:12:45.625", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:45.775", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Incidents", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:45.802", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Incidents", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:45.802", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"OrgId":[248],"PageNumber":1,"PageLimit":1,"StartDate":"2026-03-31","EndDate":"2026-03-31","SearchTerm":"","SortingColumn":["CreatedOn"],"SortingOrder":["desc"]}", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:45.802", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Company/All?&IsActive=1", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:45.802", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Divisions/Dropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:45.816", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "Get",
  "Message": "42883: operator does not exist: boolean = integer",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42883: operator does not exist: boolean = integer
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlDataReader.NextResult()
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.<ExecuteScalar>d__90.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.ExecuteScalar()
   at Dapper.SqlMapper.ExecuteScalarImpl[T](IDbConnection cnn, CommandDefinition& command)
   at Dapper.SqlMapper.ExecuteScalar[T](IDbConnection cnn, String sql, Object param, IDbTransaction transaction, Nullable`1 commandTimeout, Nullable`1 commandType)
   at IncidentReporter.DAL.Repositories.PtwRepo.GetDefaultCompany(Int32 orgId) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\PtwRepo.cs:line 6184
   at IncidentReporter.API.BLL.IncidentsBLL.<ApplyFiltersAsync>d__110.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\IncidentsBLL.cs:line 7592
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.IncidentsBLL.<Get>d__10.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\IncidentsBLL.cs:line 90"}
{"timestamp": "2026-03-31 11:12:45.838", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Company/All?&IsActive=1", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:45.849", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Npgsql.PostgresException (0x80004005): 42601: syntax error at or near "$1"
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlDataReader.NextResult()
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
   at Dapper.SqlMapper.ExecuteReaderWithFlagsFallback(IDbCommand cmd, Boolean wasClosed, CommandBehavior behavior)
   at Dapper.SqlMapper.<QueryImpl>d__138`1.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at Dapper.SqlMapper.Query[T](IDbConnection cnn, String sql, Object param, IDbTransaction transaction, Boolean buffered, Nullable`1 commandTimeout, Nullable`1 commandType)
   at IncidentReporter.DAL.Repositories.IncidentsRepo.GetDistinctUserIdsBySiteIds(Int32 organisationId, List`1 siteIds) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\IncidentsRepo.cs:line 4829
   at IncidentReporter.API.BLL.PtwBLL.<GetAllCompanyByOrgId>d__49.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\PtwBLL.cs:line 3449", "stackTrace": "Npgsql.PostgresException (0x80004005): 42601: syntax error at or near "$1"
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlDataReader.NextResult()
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
   at Dapper.SqlMapper.ExecuteReaderWithFlagsFallback(IDbCommand cmd, Boolean wasClosed, CommandBehavior behavior)
   at Dapper.SqlMapper.<QueryImpl>d__138`1.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at Dapper.SqlMapper.Query[T](IDbConnection cnn, String sql, Object param, IDbTransaction transaction, Boolean buffered, Nullable`1 commandTimeout, Nullable`1 commandType)
   at IncidentReporter.DAL.Repositories.IncidentsRepo.GetDistinctUserIdsBySiteIds(Int32 organisationId, List`1 siteIds) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\IncidentsRepo.cs:line 4829
   at IncidentReporter.API.BLL.PtwBLL.<GetAllCompanyByOrgId>d__49.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\PtwBLL.cs:line 3449"}
{"timestamp": "2026-03-31 11:12:45.862", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Divisions/Dropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:46.118", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Departments?SortingColumn=Name&SortingOrder=Asc&SiteId=708&SiteId=744&SiteId=707&SiteId=705&SiteId=709&SiteId=706", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:46.143", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Departments?SortingColumn=Name&SortingOrder=Asc&SiteId=708&SiteId=744&SiteId=707&SiteId=705&SiteId=709&SiteId=706", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:46.143", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetDepartmentsByOrgIdAsync",
  "Message": "42601: syntax error at or near \"$3\"",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42601: syntax error at or near "$3"
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Dapper.SqlMapper.<QueryAsync>d__33`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
   at IncidentReporter.DAL.Repositories.DepartmentsRepo.<GetDepartmentsByOrgIdAsync>d__14.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\DepartmentsRepo.cs:line 492
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.DepartmentsBLL.<GetDepartmentsByOrgIdAsync>d__11.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\DepartmentsBLL.cs:line 357"}
{"timestamp": "2026-03-31 11:12:46.186", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/FieldStaffAndAppUsers?Role=3&SiteIds=708&SiteIds=744&SiteIds=707&SiteIds=705&SiteIds=709&SiteIds=706", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:46.186", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/FieldStaffAndAppUsers?Role=1&SiteIds=708&SiteIds=744&SiteIds=707&SiteIds=705&SiteIds=709&SiteIds=706", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:46.209", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/FieldStaffAndAppUsers?Role=3&SiteIds=708&SiteIds=744&SiteIds=707&SiteIds=705&SiteIds=709&SiteIds=706", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:46.221", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetFieldStaffAndAppUsers",
  "Message": "42601: syntax error at or near \"$3\"",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42601: syntax error at or near "$3"
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Dapper.SqlMapper.<QueryAsync>d__33`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.DAL.Repositories.UsersRepo.<GetFieldStaffAndAppUsersAsync>d__331.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\UsersRepo.cs:line 9262
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.UsersBLL.<GetFieldStaffAndAppUsers>d__127.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\UsersBLL.cs:line 8962"}
{"timestamp": "2026-03-31 11:12:46.221", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/FieldStaffAndAppUsers?Role=1&SiteIds=708&SiteIds=744&SiteIds=707&SiteIds=705&SiteIds=709&SiteIds=706", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:46.238", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetFieldStaffAndAppUsers",
  "Message": "42601: syntax error at or near \"$3\"",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42601: syntax error at or near "$3"
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Dapper.SqlMapper.<QueryAsync>d__33`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.DAL.Repositories.UsersRepo.<GetFieldStaffAndAppUsersAsync>d__331.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\UsersRepo.cs:line 9262
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.UsersBLL.<GetFieldStaffAndAppUsers>d__127.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\UsersBLL.cs:line 8962"}
{"timestamp": "2026-03-31 11:12:46.654", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Incidents", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:46.654", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"UserId":null,"ReportedByUserIds":[],"OrgId":[248],"CompanyId":[],"LocationId":[],"DivisionId":[1637,1574,1575,1576],"DepartmentId":[],"AssignedTo":[],"IncidentStatusIds":[390],"PageNumber":1,"PageLimit":10,"StartDate":"2025-05-01","EndDate":"2026-03-31","SearchTerm":"","SortingColumn":["CreatedOn"],"SortingOrder":["desc"],"ShowReportedTicket":false}", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:46.665", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "Get",
  "Message": "42883: operator does not exist: boolean = integer",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42883: operator does not exist: boolean = integer
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlDataReader.NextResult()
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.<ExecuteScalar>d__90.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.ExecuteScalar()
   at Dapper.SqlMapper.ExecuteScalarImpl[T](IDbConnection cnn, CommandDefinition& command)
   at Dapper.SqlMapper.ExecuteScalar[T](IDbConnection cnn, String sql, Object param, IDbTransaction transaction, Nullable`1 commandTimeout, Nullable`1 commandType)
   at IncidentReporter.DAL.Repositories.PtwRepo.GetDefaultCompany(Int32 orgId) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\PtwRepo.cs:line 6184
   at IncidentReporter.API.BLL.IncidentsBLL.<ApplyFiltersAsync>d__110.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\IncidentsBLL.cs:line 7592
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.IncidentsBLL.<Get>d__10.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\IncidentsBLL.cs:line 90"}
{"timestamp": "2026-03-31 11:12:51.825", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:51.840", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Departments?SortingColumn=Name&SortingOrder=Asc&SiteId=708&SiteId=744&SiteId=707&SiteId=705&SiteId=709&SiteId=706", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:51.840", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/WorkPermit/Statuses", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:51.840", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/WorkPermit/Categories", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:51.853", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:51.867", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Departments?SortingColumn=Name&SortingOrder=Asc&SiteId=708&SiteId=744&SiteId=707&SiteId=705&SiteId=709&SiteId=706", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:51.867", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/WorkPermit/Statuses", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:51.867", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/WorkPermit/Categories", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:51.867", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {}", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:51.878", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetDepartmentsByOrgIdAsync",
  "Message": "42601: syntax error at or near \"$3\"",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42601: syntax error at or near "$3"
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Dapper.SqlMapper.<QueryAsync>d__33`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
   at IncidentReporter.DAL.Repositories.DepartmentsRepo.<GetDepartmentsByOrgIdAsync>d__14.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\DepartmentsRepo.cs:line 492
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.DepartmentsBLL.<GetDepartmentsByOrgIdAsync>d__11.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\DepartmentsBLL.cs:line 357"}
{"timestamp": "2026-03-31 11:12:51.899", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetAllWorkPermitCategories",
  "Message": "42601: syntax error at or near \"$4\"",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42601: syntax error at or near "$4"
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Dapper.SqlMapper.<QueryAsync>d__33`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.DAL.Repositories.WorkPermitRepo.<GetAllWorkPermitCategories>d__65.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\WorkPermitRepo.cs:line 2311
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.WorkPermitBLL.<GetAllWorkPermitCategories>d__29.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\WorkPermitBLL.cs:line 2833"}
{"timestamp": "2026-03-31 11:12:51.947", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Departments?SortingColumn=Name&SortingOrder=Asc&SiteId=708&SiteId=744&SiteId=707&SiteId=705&SiteId=709&SiteId=706", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:51.962", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetDepartmentsByOrgIdAsync",
  "Message": "42601: syntax error at or near \"$3\"",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42601: syntax error at or near "$3"
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Dapper.SqlMapper.<QueryAsync>d__33`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
   at IncidentReporter.DAL.Repositories.DepartmentsRepo.<GetDepartmentsByOrgIdAsync>d__14.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\DepartmentsRepo.cs:line 492
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.DepartmentsBLL.<GetDepartmentsByOrgIdAsync>d__11.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\DepartmentsBLL.cs:line 357"}
{"timestamp": "2026-03-31 11:12:52.643", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/WorkPermit/All", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:52.669", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/WorkPermit/All", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:52.669", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"OrgId":248,"PageNumber":1,"PageLimit":10,"SearchTerm":"","SortingColumn":["Uid"],"SortingOrder":["desc"],"SiteIds":[],"CompanyId":[],"WorkPermitTypeId":[],"DepartmentId":[],"WorkPermitStatusId":[],"FromDate":"2025-04-30","ToDate":"2026-03-31","Live":false,"Pending":false,"InitiatedBy":[]}", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:52.676", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/WorkPermit/All", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:52.676", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"OrgId":248,"PageNumber":1,"PageLimit":10,"SearchTerm":"","SortingColumn":["Uid"],"SortingOrder":["desc"],"SiteIds":[],"CompanyId":[],"WorkPermitTypeId":[],"DepartmentId":[],"WorkPermitStatusId":[],"FromDate":"2025-04-30","ToDate":"2026-03-31","Live":false,"Pending":false,"InitiatedBy":[]}", "stackTrace": ""}
{"timestamp": "2026-03-31 11:12:52.690", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetAllWorkPermitsAsync",
  "Message": "No password has been provided but the backend requires one (in SASL/SCRAM-SHA-256)",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.NpgsqlException (0x80004005): No password has been provided but the backend requires one (in SASL/SCRAM-SHA-256)
   at Npgsql.NpgsqlConnector.<AuthenticateSASL>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlConnector.<Authenticate>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlConnector.<Open>d__147.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.ConnectorPool.<AllocateLong>d__20.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlConnection.<>c__DisplayClass32_0.<<Open>g__OpenLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlConnection.Open()
   at IncidentReporter.DAL.Repositories.BaseRepo.ExecuteQuery[T](Func`2 query) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\BaseRepo.cs:line 64
   at IncidentReporter.DAL.Repositories.IncidentsRepo.GetUserAccessibleSites(Int32 orgId, Int32 userId) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\IncidentsRepo.cs:line 6493
   at IncidentReporter.API.BLL.WorkPermitBLL.<GetAllWorkPermitsAsync>d__18.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\WorkPermitBLL.cs:line 1919"}
{"timestamp": "2026-03-31 11:12:52.690", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetAllWorkPermitsAsync",
  "Message": "No password has been provided but the backend requires one (in SASL/SCRAM-SHA-256)",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.NpgsqlException (0x80004005): No password has been provided but the backend requires one (in SASL/SCRAM-SHA-256)
   at Npgsql.NpgsqlConnector.<AuthenticateSASL>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlConnector.<Authenticate>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlConnector.<Open>d__147.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.ConnectorPool.<AllocateLong>d__20.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlConnection.<>c__DisplayClass32_0.<<Open>g__OpenLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlConnection.Open()
   at IncidentReporter.DAL.Repositories.BaseRepo.ExecuteQuery[T](Func`2 query) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\BaseRepo.cs:line 64
   at IncidentReporter.DAL.Repositories.IncidentsRepo.GetUserAccessibleSites(Int32 orgId, Int32 userId) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\IncidentsRepo.cs:line 6493
   at IncidentReporter.API.BLL.WorkPermitBLL.<GetAllWorkPermitsAsync>d__18.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\WorkPermitBLL.cs:line 1919"}
{"timestamp": "2026-03-31 11:13:00.099", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Departments?SortingColumn=Name&SortingOrder=Asc&SiteId=708&SiteId=744&SiteId=707&SiteId=705&SiteId=709&SiteId=706", "stackTrace": ""}
{"timestamp": "2026-03-31 11:13:00.124", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Departments?SortingColumn=Name&SortingOrder=Asc&SiteId=708&SiteId=744&SiteId=707&SiteId=705&SiteId=709&SiteId=706", "stackTrace": ""}
{"timestamp": "2026-03-31 11:13:00.136", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetDepartmentsByOrgIdAsync",
  "Message": "42601: syntax error at or near \"$3\"",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42601: syntax error at or near "$3"
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Dapper.SqlMapper.<QueryAsync>d__33`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
   at IncidentReporter.DAL.Repositories.DepartmentsRepo.<GetDepartmentsByOrgIdAsync>d__14.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\DepartmentsRepo.cs:line 492
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.DepartmentsBLL.<GetDepartmentsByOrgIdAsync>d__11.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\DepartmentsBLL.cs:line 357"}
{"timestamp": "2026-03-31 11:51:08.441", "level": "Info", "severity": "INFO", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Application started", "stackTrace": ""}
{"timestamp": "2026-03-31 11:51:08.469", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538", "stackTrace": ""}
{"timestamp": "2026-03-31 11:51:08.469", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538", "stackTrace": ""}
{"timestamp": "2026-03-31 11:51:08.497", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538", "stackTrace": ""}
{"timestamp": "2026-03-31 11:51:11.232", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538", "stackTrace": ""}
{"timestamp": "2026-03-31 11:51:11.419", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/IncidentManagement/Categories", "stackTrace": ""}
{"timestamp": "2026-03-31 11:51:11.419", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/IncidentManagement/Statuses", "stackTrace": ""}
{"timestamp": "2026-03-31 11:51:11.419", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/Users/DropDown?ModuleName=Incident Management&siteId=708&siteId=744&siteId=707&siteId=705&siteId=709&siteId=706", "stackTrace": ""}
{"timestamp": "2026-03-31 11:51:11.419", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Departments?siteId=708&siteId=744&siteId=707&siteId=705&siteId=709&siteId=706", "stackTrace": ""}
{"timestamp": "2026-03-31 11:51:11.456", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/IncidentManagement/Categories", "stackTrace": ""}
{"timestamp": "2026-03-31 11:51:11.456", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteId":[708,744,707,705,709,706]}", "stackTrace": ""}
{"timestamp": "2026-03-31 11:51:11.483", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Departments?siteId=708&siteId=744&siteId=707&siteId=705&siteId=709&siteId=706", "stackTrace": ""}
{"timestamp": "2026-03-31 11:51:11.483", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/IncidentManagement/Statuses", "stackTrace": ""}
{"timestamp": "2026-03-31 11:51:11.483", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/Users/DropDown?ModuleName=Incident Management&siteId=708&siteId=744&siteId=707&siteId=705&siteId=709&siteId=706", "stackTrace": ""}
{"timestamp": "2026-03-31 11:51:11.587", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetDepartmentsByOrgIdAsync",
  "Message": "42601: syntax error at or near \"$3\"",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42601: syntax error at or near "$3"
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Dapper.SqlMapper.<QueryAsync>d__33`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
   at IncidentReporter.DAL.Repositories.DepartmentsRepo.<GetDepartmentsByOrgIdAsync>d__14.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\DepartmentsRepo.cs:line 492
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.DepartmentsBLL.<GetDepartmentsByOrgIdAsync>d__11.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\DepartmentsBLL.cs:line 357"}
{"timestamp": "2026-03-31 11:51:11.656", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetAllIncidentManagementCategories",
  "Message": "42601: syntax error at or near \"$4\"",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42601: syntax error at or near "$4"
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Dapper.SqlMapper.<QueryAsync>d__33`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.DAL.Repositories.IncidentManagementRepo.<GetAllIncidentCategories>d__11.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\IncidentManagementRepo.cs:line 412
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.IncidentManagementBLL.<GetAllIncidentManagementCategories>d__12.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\IncidentManagementBLL.cs:line 822"}
{"timestamp": "2026-03-31 11:51:11.688", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Departments?siteId=708&siteId=744&siteId=707&siteId=705&siteId=709&siteId=706", "stackTrace": ""}
{"timestamp": "2026-03-31 11:51:11.708", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetDepartmentsByOrgIdAsync",
  "Message": "42601: syntax error at or near \"$3\"",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42601: syntax error at or near "$3"
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Dapper.SqlMapper.<QueryAsync>d__33`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
   at IncidentReporter.DAL.Repositories.DepartmentsRepo.<GetDepartmentsByOrgIdAsync>d__14.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\DepartmentsRepo.cs:line 492
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.DepartmentsBLL.<GetDepartmentsByOrgIdAsync>d__11.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\DepartmentsBLL.cs:line 357"}
{"timestamp": "2026-03-31 11:51:12.089", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/IncidentManagement/Firs", "stackTrace": ""}
{"timestamp": "2026-03-31 11:51:12.115", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/IncidentManagement/Firs", "stackTrace": ""}
{"timestamp": "2026-03-31 11:51:12.115", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":[],"DepartmentIds":[],"CategoryIds":[],"StatusIds":[],"ReportedByIds":[],"FromDate":"2025-04-01","ToDate":"2026-03-06","PageNumber":1,"PageLimit":10,"SearchTerm":"","SortingColumn":["CategoryName"],"SortingOrder":["desc"]}", "stackTrace": ""}
{"timestamp": "2026-03-31 11:51:12.178", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Npgsql.NpgsqlException (0x80004005): No password has been provided but the backend requires one (in SASL/SCRAM-SHA-256)
   at Npgsql.NpgsqlConnector.<AuthenticateSASL>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlConnector.<Authenticate>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlConnector.<Open>d__147.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.ConnectorPool.<AllocateLong>d__20.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlConnection.<>c__DisplayClass32_0.<<Open>g__OpenLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlConnection.Open()
   at IncidentReporter.DAL.Repositories.BaseRepo.ExecuteQuery[T](Func`2 query) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\BaseRepo.cs:line 64
   at IncidentReporter.DAL.Repositories.OrganisationRepo.GetTimeZoneByOrgId(Int32 orgId) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\OrganisationRepo.cs:line 4033
   at IncidentReporter.DAL.Repositories.IncidentManagementRepo.GetIncidentManagementRequestsAsync(Int32 orgId, FIRListFilterDTO filters, Int32& recordCount) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\IncidentManagementRepo.cs:line 1036
   at IncidentReporter.API.BLL.IncidentManagementBLL.<GetAllFIRRequests>d__21.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\IncidentManagementBLL.cs:line 1442", "stackTrace": "Npgsql.NpgsqlException (0x80004005): No password has been provided but the backend requires one (in SASL/SCRAM-SHA-256)
   at Npgsql.NpgsqlConnector.<AuthenticateSASL>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlConnector.<Authenticate>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlConnector.<Open>d__147.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.ConnectorPool.<AllocateLong>d__20.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlConnection.<>c__DisplayClass32_0.<<Open>g__OpenLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlConnection.Open()
   at IncidentReporter.DAL.Repositories.BaseRepo.ExecuteQuery[T](Func`2 query) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\BaseRepo.cs:line 64
   at IncidentReporter.DAL.Repositories.OrganisationRepo.GetTimeZoneByOrgId(Int32 orgId) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\OrganisationRepo.cs:line 4033
   at IncidentReporter.DAL.Repositories.IncidentManagementRepo.GetIncidentManagementRequestsAsync(Int32 orgId, FIRListFilterDTO filters, Int32& recordCount) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\IncidentManagementRepo.cs:line 1036
   at IncidentReporter.API.BLL.IncidentManagementBLL.<GetAllFIRRequests>d__21.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\IncidentManagementBLL.cs:line 1442"}
{"timestamp": "2026-03-31 11:51:14.344", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538", "stackTrace": ""}
{"timestamp": "2026-03-31 11:51:14.357", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538", "stackTrace": ""}
{"timestamp": "2026-03-31 11:51:14.407", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538", "stackTrace": ""}
{"timestamp": "2026-03-31 11:51:14.563", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538", "stackTrace": ""}
{"timestamp": "2026-03-31 11:51:14.778", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/IncidentManagement/Investigation/Statuses", "stackTrace": ""}
{"timestamp": "2026-03-31 11:51:14.778", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Investigation/Categories", "stackTrace": ""}
{"timestamp": "2026-03-31 11:51:14.823", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/IncidentManagement/Investigation/Statuses", "stackTrace": ""}
{"timestamp": "2026-03-31 11:51:14.849", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Investigation/Categories", "stackTrace": ""}
{"timestamp": "2026-03-31 11:51:14.849", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {}", "stackTrace": ""}
{"timestamp": "2026-03-31 11:51:14.885", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetAllInvestigationCategories",
  "Message": "42883: operator does not exist: boolean = integer",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42883: operator does not exist: boolean = integer
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlDataReader.NextResult()
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
   at Dapper.SqlMapper.ExecuteReaderWithFlagsFallback(IDbCommand cmd, Boolean wasClosed, CommandBehavior behavior)
   at Dapper.SqlMapper.<QueryImpl>d__138`1.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at Dapper.SqlMapper.Query[T](IDbConnection cnn, String sql, Object param, IDbTransaction transaction, Boolean buffered, Nullable`1 commandTimeout, Nullable`1 commandType)
   at IncidentReporter.DAL.Repositories.IncidentsRepo.GetActiveSites(Int32 orgId) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\IncidentsRepo.cs:line 3400
   at IncidentReporter.API.BLL.IncidentManagementBLL.<GetAllInvestigationCategories>d__18.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\IncidentManagementBLL.cs:line 1260"}
{"timestamp": "2026-03-31 11:51:15.323", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/IncidentManagement/Investigations", "stackTrace": ""}
{"timestamp": "2026-03-31 11:51:15.346", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/IncidentManagement/Investigations", "stackTrace": ""}
{"timestamp": "2026-03-31 11:51:15.346", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteId":[705],"DepartmentId":[],"InvestigationCategoryId":[],"InvestigationStatusId":[],"FromDate":null,"ToDate":null,"PageNumber":1,"PageLimit":10,"SearchText":"","SortingColumn":["InvestigationCategoryName"],"SortingOrder":["desc"]}", "stackTrace": ""}
{"timestamp": "2026-03-31 11:51:23.471", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248", "stackTrace": ""}
{"timestamp": "2026-03-31 11:51:23.502", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/InspectionType/All?SortingColumn=InspectionType&SortingOrder=asc", "stackTrace": ""}
{"timestamp": "2026-03-31 11:51:23.508", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248", "stackTrace": ""}
{"timestamp": "2026-03-31 11:51:23.539", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/InspectionType/All?SortingColumn=InspectionType&SortingOrder=asc", "stackTrace": ""}
{"timestamp": "2026-03-31 11:51:23.568", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetAllInspectionTypes",
  "Message": "42601: syntax error at or near \"SEPARATOR\"",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42601: syntax error at or near "SEPARATOR"
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlDataReader.NextResult()
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
   at Dapper.SqlMapper.ExecuteReaderWithFlagsFallback(IDbCommand cmd, Boolean wasClosed, CommandBehavior behavior)
   at Dapper.SqlMapper.<QueryImpl>d__138`1.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at Dapper.SqlMapper.Query[T](IDbConnection cnn, String sql, Object param, IDbTransaction transaction, Boolean buffered, Nullable`1 commandTimeout, Nullable`1 commandType)
   at IncidentReporter.DAL.Repositories.InspectionsRepo.GetAllInspectionTypes(Int32 orgId, InspectionTypeFilter filter, List`1 siteIds) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\InspectionsRepo.cs:line 2892
   at IncidentReporter.API.BLL.InspectionsBLL.<GetAllInspectionTypes>d__22.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\InspectionsBLL.cs:line 2141"}
{"timestamp": "2026-03-31 11:51:27.348", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538", "stackTrace": ""}
{"timestamp": "2026-03-31 11:51:27.368", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Departments?SortingColumn=Name&SortingOrder=Asc&SiteId=708&SiteId=744&SiteId=707&SiteId=705&SiteId=709&SiteId=706", "stackTrace": ""}
{"timestamp": "2026-03-31 11:51:27.368", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538", "stackTrace": ""}
{"timestamp": "2026-03-31 11:51:27.368", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/RiskAssessmentType/All", "stackTrace": ""}
{"timestamp": "2026-03-31 11:51:27.368", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/RiskAssessment/Statuses", "stackTrace": ""}
{"timestamp": "2026-03-31 11:51:27.391", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Departments?SortingColumn=Name&SortingOrder=Asc&SiteId=708&SiteId=744&SiteId=707&SiteId=705&SiteId=709&SiteId=706", "stackTrace": ""}
{"timestamp": "2026-03-31 11:51:27.402", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetDepartmentsByOrgIdAsync",
  "Message": "42601: syntax error at or near \"$3\"",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42601: syntax error at or near "$3"
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Dapper.SqlMapper.<QueryAsync>d__33`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
   at IncidentReporter.DAL.Repositories.DepartmentsRepo.<GetDepartmentsByOrgIdAsync>d__14.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\DepartmentsRepo.cs:line 492
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.DepartmentsBLL.<GetDepartmentsByOrgIdAsync>d__11.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\DepartmentsBLL.cs:line 357"}
{"timestamp": "2026-03-31 11:51:27.415", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/RiskAssessment/Statuses", "stackTrace": ""}
{"timestamp": "2026-03-31 11:51:27.415", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/RiskAssessmentType/All", "stackTrace": ""}
{"timestamp": "2026-03-31 11:51:27.415", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"orgId":248,"SiteId":[]}", "stackTrace": ""}
{"timestamp": "2026-03-31 11:51:27.435", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetAllRiskAssessmentStatuses",
  "Message": "42883: operator does not exist: boolean = integer",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42883: operator does not exist: boolean = integer
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Dapper.SqlMapper.<QueryAsync>d__33`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.DAL.Repositories.RiskAssessmentRepo.<GetRiskAssessmentStatusesByOrganisationId>d__24.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\RiskAssessmentRepo.cs:line 1100
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
   at IncidentReporter.API.BLL.RiskAssessmentBLL.<GetAllRiskAssessmentStatuses>d__16.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\RiskAssessmentBLL.cs:line 911"}
{"timestamp": "2026-03-31 11:51:27.472", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/RiskAssessment/Statuses", "stackTrace": ""}
{"timestamp": "2026-03-31 11:51:27.490", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetAllRiskAssessmentStatuses",
  "Message": "42883: operator does not exist: boolean = integer",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42883: operator does not exist: boolean = integer
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Dapper.SqlMapper.<QueryAsync>d__33`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.DAL.Repositories.RiskAssessmentRepo.<GetRiskAssessmentStatusesByOrganisationId>d__24.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\RiskAssessmentRepo.cs:line 1100
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
   at IncidentReporter.API.BLL.RiskAssessmentBLL.<GetAllRiskAssessmentStatuses>d__16.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\RiskAssessmentBLL.cs:line 911"}
{"timestamp": "2026-03-31 11:51:27.490", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetRiskAssessmentTypes",
  "Message": "42601: syntax error at or near \"SEPARATOR\"",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42601: syntax error at or near "SEPARATOR"
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlDataReader.NextResult()
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
   at Dapper.SqlMapper.ExecuteReaderWithFlagsFallback(IDbCommand cmd, Boolean wasClosed, CommandBehavior behavior)
   at Dapper.SqlMapper.<QueryImpl>d__138`1.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at Dapper.SqlMapper.Query[T](IDbConnection cnn, String sql, Object param, IDbTransaction transaction, Boolean buffered, Nullable`1 commandTimeout, Nullable`1 commandType)
   at IncidentReporter.DAL.Repositories.RiskAssessmentRepo.<GetRiskAssessmentTypes>d__13.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\RiskAssessmentRepo.cs:line 555
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.RiskAssessmentBLL.<GetRiskAssessmentTypes>d__13.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\RiskAssessmentBLL.cs:line 730"}
{"timestamp": "2026-03-31 11:51:27.505", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/RiskAssessment/Statuses", "stackTrace": ""}
{"timestamp": "2026-03-31 11:51:27.538", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetAllRiskAssessmentStatuses",
  "Message": "42883: operator does not exist: boolean = integer",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42883: operator does not exist: boolean = integer
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Dapper.SqlMapper.<QueryAsync>d__33`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.DAL.Repositories.RiskAssessmentRepo.<GetRiskAssessmentStatusesByOrganisationId>d__24.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\RiskAssessmentRepo.cs:line 1100
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
   at IncidentReporter.API.BLL.RiskAssessmentBLL.<GetAllRiskAssessmentStatuses>d__16.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\RiskAssessmentBLL.cs:line 911"}
{"timestamp": "2026-03-31 11:51:28.251", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/RiskAssessment/All", "stackTrace": ""}
{"timestamp": "2026-03-31 11:51:28.282", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/RiskAssessment/All", "stackTrace": ""}
{"timestamp": "2026-03-31 11:51:28.282", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteId":[708,744,707,705,709,706],"DepartmentId":[],"RiskAssessmentTypeId":[],"RiskAssessmentStatusId":[],"SearchTerm":"","PageNumber":1,"PageLimit":10,"FromDate":"2025-05-01","ToDate":"2026-03-31","SortingColumn":["CreatedOn"],"SortingOrder":["desc"]}", "stackTrace": ""}
{"timestamp": "2026-03-31 11:51:28.301", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/RiskAssessment/All", "stackTrace": ""}
{"timestamp": "2026-03-31 11:51:28.301", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteId":[708,744,707,705,709,706],"DepartmentId":[],"RiskAssessmentTypeId":[],"RiskAssessmentStatusId":[],"SearchTerm":"","PageNumber":1,"PageLimit":10,"FromDate":"2025-05-01","ToDate":"2026-03-31","SortingColumn":["CreatedOn"],"SortingOrder":["desc"]}", "stackTrace": ""}
{"timestamp": "2026-03-31 11:51:28.326", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetAllRiskAssessments",
  "Message": "42601: LIMIT #,# syntax is not supported",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42601: LIMIT #,# syntax is not supported
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Dapper.SqlMapper.<QueryAsync>d__33`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.DAL.Repositories.RiskAssessmentRepo.<GetAllRiskAssessments>d__25.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\RiskAssessmentRepo.cs:line 1372
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
   at IncidentReporter.API.BLL.RiskAssessmentBLL.<GetAllRiskAssessments>d__17.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\RiskAssessmentBLL.cs:line 961"}
{"timestamp": "2026-03-31 11:51:28.339", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetAllRiskAssessments",
  "Message": "42601: LIMIT #,# syntax is not supported",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42601: LIMIT #,# syntax is not supported
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Dapper.SqlMapper.<QueryAsync>d__33`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.DAL.Repositories.RiskAssessmentRepo.<GetAllRiskAssessments>d__25.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\RiskAssessmentRepo.cs:line 1372
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
   at IncidentReporter.API.BLL.RiskAssessmentBLL.<GetAllRiskAssessments>d__17.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\RiskAssessmentBLL.cs:line 961"}
{"timestamp": "2026-03-31 11:51:48.808", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Resources/eng?orgId=248", "stackTrace": ""}
{"timestamp": "2026-03-31 11:51:48.853", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Resources/eng?orgId=248", "stackTrace": ""}
{"timestamp": "2026-03-31 11:51:49.194", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/AccessControl/Modules/248", "stackTrace": ""}
{"timestamp": "2026-03-31 11:51:49.224", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/AccessControl/Modules/248", "stackTrace": ""}
{"timestamp": "2026-03-31 11:51:49.365", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Health", "stackTrace": ""}
{"timestamp": "2026-03-31 11:51:49.365", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Resources/package-features-eng", "stackTrace": ""}
{"timestamp": "2026-03-31 11:51:49.390", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Health", "stackTrace": ""}
{"timestamp": "2026-03-31 11:51:49.416", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Resources/package-features-eng", "stackTrace": ""}
{"timestamp": "2026-03-31 11:51:50.211", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538", "stackTrace": ""}
{"timestamp": "2026-03-31 11:51:50.239", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538", "stackTrace": ""}
{"timestamp": "2026-03-31 11:51:50.239", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538", "stackTrace": ""}
{"timestamp": "2026-03-31 11:51:50.358", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538", "stackTrace": ""}
{"timestamp": "2026-03-31 11:51:50.440", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538", "stackTrace": ""}
{"timestamp": "2026-03-31 11:51:50.565", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538", "stackTrace": ""}
{"timestamp": "2026-03-31 11:51:52.906", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/Modules", "stackTrace": ""}
{"timestamp": "2026-03-31 11:51:52.948", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/Modules", "stackTrace": ""}
{"timestamp": "2026-03-31 11:51:52.958", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248", "stackTrace": ""}
{"timestamp": "2026-03-31 11:51:53.002", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248", "stackTrace": ""}
{"timestamp": "2026-03-31 11:51:53.002", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Languages", "stackTrace": ""}
{"timestamp": "2026-03-31 11:51:53.019", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/PendingActionsNotifications", "stackTrace": ""}
{"timestamp": "2026-03-31 11:51:53.046", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/RiskAssessment/Statuses", "stackTrace": ""}
{"timestamp": "2026-03-31 11:51:53.055", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Languages", "stackTrace": ""}
{"timestamp": "2026-03-31 11:51:53.055", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/PendingActionsNotifications", "stackTrace": ""}
{"timestamp": "2026-03-31 11:51:53.071", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/attachments/organisations/TTK_e54e850a-a12b-4b5f-830c-e5eef42ebe61.png", "stackTrace": ""}
{"timestamp": "2026-03-31 11:51:53.071", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Departments?SortingColumn=Name&SortingOrder=Asc&SiteId=708&SiteId=744&SiteId=707&SiteId=705&SiteId=709&SiteId=706", "stackTrace": ""}
{"timestamp": "2026-03-31 11:51:53.071", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/RiskAssessmentType/All", "stackTrace": ""}
{"timestamp": "2026-03-31 11:51:53.092", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/RiskAssessment/Statuses", "stackTrace": ""}
{"timestamp": "2026-03-31 11:51:53.092", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetPendingActionsNotificationsCount",
  "Message": "No password has been provided but the backend requires one (in SASL/SCRAM-SHA-256)",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.NpgsqlException (0x80004005): No password has been provided but the backend requires one (in SASL/SCRAM-SHA-256)
   at Npgsql.NpgsqlConnector.<AuthenticateSASL>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlConnector.<Authenticate>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlConnector.<Open>d__147.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.ConnectorPool.<AllocateLong>d__20.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlConnection.<>c__DisplayClass32_0.<<Open>g__OpenLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
   at IncidentReporter.DAL.Repositories.BaseRepo.<ExecuteQueryAsync>d__7`1.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\BaseRepo.cs:line 78
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.DAL.Repositories.OrganisationRepo.<GetOrganisationPreferences>d__12.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\OrganisationRepo.cs:line 379
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.NotificationsBLL.<GetUserAccessibleModules>d__34.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\NotificationsBLL.cs:line 1731
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.NotificationsBLL.<GetPendingActionsNotificationsCount>d__22.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\NotificationsBLL.cs:line 1146"}
{"timestamp": "2026-03-31 11:51:53.102", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetAllRiskAssessmentStatuses",
  "Message": "42883: operator does not exist: boolean = integer",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42883: operator does not exist: boolean = integer
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Dapper.SqlMapper.<QueryAsync>d__33`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.DAL.Repositories.RiskAssessmentRepo.<GetRiskAssessmentStatusesByOrganisationId>d__24.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\RiskAssessmentRepo.cs:line 1100
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
   at IncidentReporter.API.BLL.RiskAssessmentBLL.<GetAllRiskAssessmentStatuses>d__16.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\RiskAssessmentBLL.cs:line 911"}
{"timestamp": "2026-03-31 11:51:53.117", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Departments?SortingColumn=Name&SortingOrder=Asc&SiteId=708&SiteId=744&SiteId=707&SiteId=705&SiteId=709&SiteId=706", "stackTrace": ""}
{"timestamp": "2026-03-31 11:51:53.117", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/RiskAssessmentType/All", "stackTrace": ""}
{"timestamp": "2026-03-31 11:51:53.117", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"orgId":248,"SiteId":[]}", "stackTrace": ""}
{"timestamp": "2026-03-31 11:51:53.130", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetDepartmentsByOrgIdAsync",
  "Message": "42601: syntax error at or near \"$3\"",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42601: syntax error at or near "$3"
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Dapper.SqlMapper.<QueryAsync>d__33`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
   at IncidentReporter.DAL.Repositories.DepartmentsRepo.<GetDepartmentsByOrgIdAsync>d__14.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\DepartmentsRepo.cs:line 492
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.DepartmentsBLL.<GetDepartmentsByOrgIdAsync>d__11.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\DepartmentsBLL.cs:line 357"}
{"timestamp": "2026-03-31 11:51:53.147", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/RiskAssessment/Statuses", "stackTrace": ""}
{"timestamp": "2026-03-31 11:51:53.182", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/AccessControl/Modules/248", "stackTrace": ""}
{"timestamp": "2026-03-31 11:51:53.182", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetRiskAssessmentTypes",
  "Message": "42601: syntax error at or near \"SEPARATOR\"",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42601: syntax error at or near "SEPARATOR"
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlDataReader.NextResult()
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
   at Dapper.SqlMapper.ExecuteReaderWithFlagsFallback(IDbCommand cmd, Boolean wasClosed, CommandBehavior behavior)
   at Dapper.SqlMapper.<QueryImpl>d__138`1.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at Dapper.SqlMapper.Query[T](IDbConnection cnn, String sql, Object param, IDbTransaction transaction, Boolean buffered, Nullable`1 commandTimeout, Nullable`1 commandType)
   at IncidentReporter.DAL.Repositories.RiskAssessmentRepo.<GetRiskAssessmentTypes>d__13.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\RiskAssessmentRepo.cs:line 555
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.RiskAssessmentBLL.<GetRiskAssessmentTypes>d__13.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\RiskAssessmentBLL.cs:line 730"}
{"timestamp": "2026-03-31 11:51:53.191", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetAllRiskAssessmentStatuses",
  "Message": "42883: operator does not exist: boolean = integer",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42883: operator does not exist: boolean = integer
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Dapper.SqlMapper.<QueryAsync>d__33`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.DAL.Repositories.RiskAssessmentRepo.<GetRiskAssessmentStatusesByOrganisationId>d__24.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\RiskAssessmentRepo.cs:line 1100
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
   at IncidentReporter.API.BLL.RiskAssessmentBLL.<GetAllRiskAssessmentStatuses>d__16.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\RiskAssessmentBLL.cs:line 911"}
{"timestamp": "2026-03-31 11:51:53.245", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/RiskAssessment/Statuses", "stackTrace": ""}
{"timestamp": "2026-03-31 11:51:53.270", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetAllRiskAssessmentStatuses",
  "Message": "42883: operator does not exist: boolean = integer",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42883: operator does not exist: boolean = integer
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Dapper.SqlMapper.<QueryAsync>d__33`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.DAL.Repositories.RiskAssessmentRepo.<GetRiskAssessmentStatusesByOrganisationId>d__24.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\RiskAssessmentRepo.cs:line 1100
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
   at IncidentReporter.API.BLL.RiskAssessmentBLL.<GetAllRiskAssessmentStatuses>d__16.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\RiskAssessmentBLL.cs:line 911"}
{"timestamp": "2026-03-31 11:51:53.311", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248", "stackTrace": ""}
{"timestamp": "2026-03-31 11:51:54.090", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/RiskAssessment/All", "stackTrace": ""}
{"timestamp": "2026-03-31 11:51:54.123", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/RiskAssessment/All", "stackTrace": ""}
{"timestamp": "2026-03-31 11:51:54.123", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteId":[708,744,707,705,709,706],"DepartmentId":[],"RiskAssessmentTypeId":[],"RiskAssessmentStatusId":[],"SearchTerm":"","PageNumber":1,"PageLimit":10,"FromDate":"2025-05-01","ToDate":"2026-03-31","SortingColumn":["CreatedOn"],"SortingOrder":["desc"]}", "stackTrace": ""}
{"timestamp": "2026-03-31 11:51:54.139", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetAllRiskAssessments",
  "Message": "42601: LIMIT #,# syntax is not supported",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42601: LIMIT #,# syntax is not supported
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Dapper.SqlMapper.<QueryAsync>d__33`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.DAL.Repositories.RiskAssessmentRepo.<GetAllRiskAssessments>d__25.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\RiskAssessmentRepo.cs:line 1372
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
   at IncidentReporter.API.BLL.RiskAssessmentBLL.<GetAllRiskAssessments>d__17.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\RiskAssessmentBLL.cs:line 961"}
{"timestamp": "2026-03-31 11:51:54.164", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/RiskAssessment/All", "stackTrace": ""}
{"timestamp": "2026-03-31 11:51:54.164", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteId":[708,744,707,705,709,706],"DepartmentId":[],"RiskAssessmentTypeId":[],"RiskAssessmentStatusId":[],"SearchTerm":"","PageNumber":1,"PageLimit":10,"FromDate":"2025-05-01","ToDate":"2026-03-31","SortingColumn":["CreatedOn"],"SortingOrder":["desc"]}", "stackTrace": ""}
{"timestamp": "2026-03-31 11:51:54.177", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetAllRiskAssessments",
  "Message": "42601: LIMIT #,# syntax is not supported",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42601: LIMIT #,# syntax is not supported
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Dapper.SqlMapper.<QueryAsync>d__33`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.DAL.Repositories.RiskAssessmentRepo.<GetAllRiskAssessments>d__25.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\RiskAssessmentRepo.cs:line 1372
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
   at IncidentReporter.API.BLL.RiskAssessmentBLL.<GetAllRiskAssessments>d__17.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\RiskAssessmentBLL.cs:line 961"}
{"timestamp": "2026-03-31 11:52:03.316", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Logout", "stackTrace": ""}
{"timestamp": "2026-03-31 11:52:03.380", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Logout", "stackTrace": ""}
{"timestamp": "2026-03-31 11:52:03.380", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {}", "stackTrace": ""}
{"timestamp": "2026-03-31 11:52:03.494", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Health", "stackTrace": ""}
{"timestamp": "2026-03-31 11:52:03.522", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Health", "stackTrace": ""}
{"timestamp": "2026-03-31 11:52:05.892", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538", "stackTrace": ""}
{"timestamp": "2026-03-31 11:52:05.921", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538", "stackTrace": ""}
{"timestamp": "2026-03-31 11:52:05.930", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Reports/IncidentCountReport?OrgId=248&StartDate=2026-03-31&EndDate=2026-03-31", "stackTrace": ""}
{"timestamp": "2026-03-31 11:52:05.962", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Reports/IncidentCountReport?OrgId=248&StartDate=2026-03-31&EndDate=2026-03-31", "stackTrace": ""}
{"timestamp": "2026-03-31 11:52:05.962", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Divisions/Dropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 11:52:05.999", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Divisions/Dropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 11:52:07.473", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Reports/IncidentStatusReport?OrgId=248&FromDate=2026-03-24&ToDate=2026-03-31&DivisionId=1637&DivisionId=1574&DivisionId=1575&DivisionId=1576", "stackTrace": ""}
{"timestamp": "2026-03-31 11:52:07.473", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/Modules", "stackTrace": ""}
{"timestamp": "2026-03-31 11:52:07.473", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248", "stackTrace": ""}
{"timestamp": "2026-03-31 11:52:07.488", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Languages", "stackTrace": ""}
{"timestamp": "2026-03-31 11:52:07.488", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/PendingActionsNotifications", "stackTrace": ""}
{"timestamp": "2026-03-31 11:52:07.488", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Reports/IncidentStatusReport?OrgId=248&FromDate=2026-03-24&ToDate=2026-03-31&DivisionId=1637&DivisionId=1574&DivisionId=1575&DivisionId=1576", "stackTrace": ""}
{"timestamp": "2026-03-31 11:52:07.510", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/Modules", "stackTrace": ""}
{"timestamp": "2026-03-31 11:52:07.510", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248", "stackTrace": ""}
{"timestamp": "2026-03-31 11:52:07.524", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetIncidentCategoryCounts",
  "Message": "42601: syntax error at or near \"$5\"",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42601: syntax error at or near "$5"
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlDataReader.NextResult()
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
   at Dapper.SqlMapper.ExecuteReaderWithFlagsFallback(IDbCommand cmd, Boolean wasClosed, CommandBehavior behavior)
   at Dapper.SqlMapper.<QueryImpl>d__138`1.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at Dapper.SqlMapper.Query[T](IDbConnection cnn, String sql, Object param, IDbTransaction transaction, Boolean buffered, Nullable`1 commandTimeout, Nullable`1 commandType)
   at IncidentReporter.DAL.Repositories.ReportsRepo.GetIncidentCategoryCounts(Int32 orgId, DateTime FromDate, DateTime ToDate, List`1 locationId, List`1 DivisionId) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\ReportsRepo.cs:line 416
   at IncidentReporter.API.BLL.ReportsBLL.GetIncidentCategoryCounts(ReportsFilter reportsFilter) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\ReportsBLL.cs:line 198"}
{"timestamp": "2026-03-31 11:52:07.524", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Languages", "stackTrace": ""}
{"timestamp": "2026-03-31 11:52:07.524", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/PendingActionsNotifications", "stackTrace": ""}
{"timestamp": "2026-03-31 11:52:07.536", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetPendingActionsNotificationsCount",
  "Message": "No password has been provided but the backend requires one (in SASL/SCRAM-SHA-256)",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.NpgsqlException (0x80004005): No password has been provided but the backend requires one (in SASL/SCRAM-SHA-256)
   at Npgsql.NpgsqlConnector.<AuthenticateSASL>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlConnector.<Authenticate>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlConnector.<Open>d__147.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.ConnectorPool.<AllocateLong>d__20.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlConnection.<>c__DisplayClass32_0.<<Open>g__OpenLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
   at IncidentReporter.DAL.Repositories.BaseRepo.<ExecuteQueryAsync>d__7`1.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\BaseRepo.cs:line 78
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.DAL.Repositories.OrganisationRepo.<GetOrganisationPreferences>d__12.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\OrganisationRepo.cs:line 379
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.NotificationsBLL.<GetUserAccessibleModules>d__34.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\NotificationsBLL.cs:line 1731
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.NotificationsBLL.<GetPendingActionsNotificationsCount>d__22.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\NotificationsBLL.cs:line 1146"}
{"timestamp": "2026-03-31 11:52:08.450", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/AccessControl/Modules/248", "stackTrace": ""}
{"timestamp": "2026-03-31 11:52:08.458", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Reports/IncidentCountReport?OrgId=248&StartDate=2026-03-24&EndDate=2026-03-31&DivisionId=1637&DivisionId=1574&DivisionId=1575&DivisionId=1576", "stackTrace": ""}
{"timestamp": "2026-03-31 11:52:08.477", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/AccessControl/Modules/248", "stackTrace": ""}
{"timestamp": "2026-03-31 11:52:08.505", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Reports/IncidentCountReport?OrgId=248&StartDate=2026-03-24&EndDate=2026-03-31&DivisionId=1637&DivisionId=1574&DivisionId=1575&DivisionId=1576", "stackTrace": ""}
{"timestamp": "2026-03-31 11:52:08.536", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248", "stackTrace": ""}
{"timestamp": "2026-03-31 11:52:08.569", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/OrganisationStats?FromDate=2026-03-24&ToDate=2026-03-31&", "stackTrace": ""}
{"timestamp": "2026-03-31 11:52:08.569", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/EscalatedIncidents", "stackTrace": ""}
{"timestamp": "2026-03-31 11:52:08.602", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/OrganisationStats?FromDate=2026-03-24&ToDate=2026-03-31&", "stackTrace": ""}
{"timestamp": "2026-03-31 11:52:08.614", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetOrganisationStats",
  "Message": "42883: operator does not exist: boolean = integer",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42883: operator does not exist: boolean = integer
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlDataReader.NextResult()
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
   at Dapper.SqlMapper.ExecuteReaderWithFlagsFallback(IDbCommand cmd, Boolean wasClosed, CommandBehavior behavior)
   at Dapper.SqlMapper.<QueryImpl>d__138`1.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at Dapper.SqlMapper.Query[T](IDbConnection cnn, String sql, Object param, IDbTransaction transaction, Boolean buffered, Nullable`1 commandTimeout, Nullable`1 commandType)
   at IncidentReporter.DAL.Repositories.IncidentsRepo.GetLocationIds(Int32 orgId) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\IncidentsRepo.cs:line 2991
   at IncidentReporter.API.BLL.ReportsBLL.GetOrganisationStats(Int32 OrgId, DashboardCountFilter dashboardCountFilter) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\ReportsBLL.cs:line 136"}
{"timestamp": "2026-03-31 11:52:08.630", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/EscalatedIncidents", "stackTrace": ""}
{"timestamp": "2026-03-31 11:52:08.630", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetIncidentsAfterEscalation",
  "Message": "42601: syntax error at or near \"od\"",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42601: syntax error at or near "od"
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlDataReader.NextResult()
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
   at Dapper.SqlMapper.ExecuteReaderWithFlagsFallback(IDbCommand cmd, Boolean wasClosed, CommandBehavior behavior)
   at Dapper.SqlMapper.<QueryImpl>d__138`1.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at Dapper.SqlMapper.Query[T](IDbConnection cnn, String sql, Object param, IDbTransaction transaction, Boolean buffered, Nullable`1 commandTimeout, Nullable`1 commandType)
   at IncidentReporter.DAL.Repositories.IncidentsRepo.GetOpenIncidentsAfterEscalation(Int32 orgId) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\IncidentsRepo.cs:line 2506
   at IncidentReporter.API.BLL.IncidentsBLL.GetIncidentsAfterEscalation(Int32 orgId) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\IncidentsBLL.cs:line 3961"}
{"timestamp": "2026-03-31 12:15:27.576", "level": "Info", "severity": "INFO", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Application started", "stackTrace": ""}
{"timestamp": "2026-03-31 12:15:27.610", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Resources/eng?orgId=248", "stackTrace": ""}
{"timestamp": "2026-03-31 12:15:27.648", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Resources/eng?orgId=248", "stackTrace": ""}
{"timestamp": "2026-03-31 12:15:28.033", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/AccessControl/Modules/248", "stackTrace": ""}
{"timestamp": "2026-03-31 12:15:28.078", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/AccessControl/Modules/248", "stackTrace": ""}
{"timestamp": "2026-03-31 12:15:29.866", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Health", "stackTrace": ""}
{"timestamp": "2026-03-31 12:15:29.881", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Resources/package-features-eng", "stackTrace": ""}
{"timestamp": "2026-03-31 12:15:29.910", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Health", "stackTrace": ""}
{"timestamp": "2026-03-31 12:15:29.916", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Resources/package-features-eng", "stackTrace": ""}
{"timestamp": "2026-03-31 12:15:32.334", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538", "stackTrace": ""}
{"timestamp": "2026-03-31 12:15:32.380", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538", "stackTrace": ""}
{"timestamp": "2026-03-31 12:15:33.977", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538", "stackTrace": ""}
{"timestamp": "2026-03-31 12:15:34.217", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538", "stackTrace": ""}
{"timestamp": "2026-03-31 12:15:34.372", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538", "stackTrace": ""}
{"timestamp": "2026-03-31 12:15:34.372", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/Modules", "stackTrace": ""}
{"timestamp": "2026-03-31 12:15:34.372", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248", "stackTrace": ""}
{"timestamp": "2026-03-31 12:15:34.372", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Languages", "stackTrace": ""}
{"timestamp": "2026-03-31 12:15:34.384", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/PendingActionsNotifications", "stackTrace": ""}
{"timestamp": "2026-03-31 12:15:34.430", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Languages", "stackTrace": ""}
{"timestamp": "2026-03-31 12:15:34.430", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248", "stackTrace": ""}
{"timestamp": "2026-03-31 12:15:34.430", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/Modules", "stackTrace": ""}
{"timestamp": "2026-03-31 12:15:34.432", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/PendingActionsNotifications", "stackTrace": ""}
{"timestamp": "2026-03-31 12:15:34.484", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/attachments/organisations/TTK_e54e850a-a12b-4b5f-830c-e5eef42ebe61.png", "stackTrace": ""}
{"timestamp": "2026-03-31 12:15:34.517", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetPendingActionsNotificationsCount",
  "Message": "No password has been provided but the backend requires one (in SASL/SCRAM-SHA-256)",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.NpgsqlException (0x80004005): No password has been provided but the backend requires one (in SASL/SCRAM-SHA-256)
   at Npgsql.NpgsqlConnector.<AuthenticateSASL>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlConnector.<Authenticate>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlConnector.<Open>d__147.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.ConnectorPool.<AllocateLong>d__20.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlConnection.<>c__DisplayClass32_0.<<Open>g__OpenLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
   at IncidentReporter.DAL.Repositories.BaseRepo.<ExecuteQueryAsync>d__7`1.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\BaseRepo.cs:line 78
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.DAL.Repositories.OrganisationRepo.<GetOrganisationPreferences>d__12.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\OrganisationRepo.cs:line 379
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.NotificationsBLL.<GetUserAccessibleModules>d__34.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\NotificationsBLL.cs:line 1731
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.NotificationsBLL.<GetPendingActionsNotificationsCount>d__22.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\NotificationsBLL.cs:line 1146"}
{"timestamp": "2026-03-31 12:15:34.570", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/AccessControl/Modules/248", "stackTrace": ""}
{"timestamp": "2026-03-31 12:15:34.613", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/AccessControl/Modules/248", "stackTrace": ""}
{"timestamp": "2026-03-31 12:15:34.729", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248", "stackTrace": ""}
{"timestamp": "2026-03-31 12:15:34.847", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/TaskCategories/Dropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 12:15:34.847", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Training/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 12:15:34.894", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/TaskCategories/Dropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 12:15:34.894", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteId":["708","744","707","705","709","706"]}", "stackTrace": ""}
{"timestamp": "2026-03-31 12:15:34.926", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Training/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 12:15:34.926", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31"}", "stackTrace": ""}
{"timestamp": "2026-03-31 12:15:34.949", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Divisions/Dropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 12:15:34.983", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Divisions/Dropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 12:15:35.095", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Tasks/List/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 12:15:35.095", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Incidents/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 12:15:35.095", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/KPI/PlantMaster/Sites/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 12:15:35.095", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Tasks/List/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 12:15:35.105", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/ManagementOfChangeList/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 12:15:35.105", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/PermitToWork/All/Sites/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 12:15:35.105", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/IncidentManagement/Firs/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 12:15:35.105", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Inspections/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 12:15:35.105", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Courses/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 12:15:35.127", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Incidents/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 12:15:35.127", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31","CategoryId":[1637,1574,1575,1576]}", "stackTrace": ""}
{"timestamp": "2026-03-31 12:15:35.127", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Tasks/List/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 12:15:35.127", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31","CategoryId":[]}", "stackTrace": ""}
{"timestamp": "2026-03-31 12:15:35.143", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Tasks/List/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 12:15:35.143", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31","AcmModuleId":46}", "stackTrace": ""}
{"timestamp": "2026-03-31 12:15:35.143", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/KPI/PlantMaster/Sites/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 12:15:35.143", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"]}", "stackTrace": ""}
{"timestamp": "2026-03-31 12:15:35.143", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/ManagementOfChangeList/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 12:15:35.143", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31"}", "stackTrace": ""}
{"timestamp": "2026-03-31 12:15:35.143", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/PermitToWork/All/Sites/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 12:15:35.143", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Inspections/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 12:15:35.150", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Courses/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 12:15:35.150", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31"}", "stackTrace": ""}
{"timestamp": "2026-03-31 12:15:35.143", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31"}", "stackTrace": ""}
{"timestamp": "2026-03-31 12:15:35.143", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/IncidentManagement/Firs/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 12:15:35.150", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31"}", "stackTrace": ""}
{"timestamp": "2026-03-31 12:15:35.150", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31"}", "stackTrace": ""}
{"timestamp": "2026-03-31 12:15:35.277", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetMultiSiteTaskCounts",
  "Message": "42883: operator does not exist: task_categories_created_source = text",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42883: operator does not exist: task_categories_created_source = text
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Dapper.SqlMapper.<QueryRowAsync>d__34`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.DAL.Repositories.TaskRepo.<>c__DisplayClass161_0.<<GetTaskCategoryIdByAcmModuleId>b__0>d.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\TaskRepo.cs:line 5082
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.DAL.Repositories.BaseRepo.<ExecuteQueryAsync>d__7`1.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\BaseRepo.cs:line 79
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.DAL.Repositories.TaskRepo.<GetTaskCategoryIdByAcmModuleId>d__161.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\TaskRepo.cs:line 5081
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.TaskBLL.<GetMultiSiteTaskCounts>d__73.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\TaskBLL.cs:line 5471"}
{"timestamp": "2026-03-31 12:15:35.801", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Library/Categories", "stackTrace": ""}
{"timestamp": "2026-03-31 12:15:35.809", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/WorkPermit/Statuses", "stackTrace": ""}
{"timestamp": "2026-03-31 12:15:35.809", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/KPI/EmployeeMasterDropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 12:15:35.809", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/KPI/PlantMasterDropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 12:15:35.809", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/Users/DropDown?ModuleName=Library", "stackTrace": ""}
{"timestamp": "2026-03-31 12:15:35.834", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Library/Categories", "stackTrace": ""}
{"timestamp": "2026-03-31 12:15:35.834", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"OrgId":248}", "stackTrace": ""}
{"timestamp": "2026-03-31 12:15:35.851", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/KPI/PlantMasterDropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 12:15:35.851", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"OrgId":[248],"SiteId":["708","744","707","705","709","706"]}", "stackTrace": ""}
{"timestamp": "2026-03-31 12:15:35.851", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/KPI/EmployeeMasterDropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 12:15:35.851", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"OrgId":[248],"SiteId":["708","744","707","705","709","706"]}", "stackTrace": ""}
{"timestamp": "2026-03-31 12:15:35.890", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/Users/DropDown?ModuleName=Library", "stackTrace": ""}
{"timestamp": "2026-03-31 12:15:35.890", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/WorkPermit/Statuses", "stackTrace": ""}
{"timestamp": "2026-03-31 12:15:36.210", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/KPI/PlantMaster/AverageRatings", "stackTrace": ""}
{"timestamp": "2026-03-31 12:15:36.239", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/KPI/PlantMaster/AverageRatings", "stackTrace": ""}
{"timestamp": "2026-03-31 12:15:36.239", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"KpiId":[21,22,23,24,25,33,34,35,36,37,27,28,29,30,31,38,39,40,41,42,16],"SiteIds":["708","744","707","705","709","706"]}", "stackTrace": ""}
{"timestamp": "2026-03-31 12:15:36.261", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetPlantMasterAverageRatings",
  "Message": "42601: syntax error at or near \"$1\"",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42601: syntax error at or near "$1"
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Dapper.SqlMapper.<QueryAsync>d__33`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
   at IncidentReporter.DAL.Repositories.EmployeeKpiRepo.<GetPlantMasterAverageRatings>d__72.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\EmployeeKpiRepo .cs:line 2371
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.EmployeeKpiBLL.<GetPlantMasterAverageRatings>d__46.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\EmployeeKpiBLL.cs:line 2186"}
{"timestamp": "2026-03-31 12:16:47.406", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538", "stackTrace": ""}
{"timestamp": "2026-03-31 12:16:47.406", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248", "stackTrace": ""}
{"timestamp": "2026-03-31 12:16:47.519", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248", "stackTrace": ""}
{"timestamp": "2026-03-31 12:16:47.519", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538", "stackTrace": ""}
{"timestamp": "2026-03-31 12:16:47.625", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/AppFilterUsers?Role=fieldStaff&OrgId=248&LocationId=708&LocationId=744&LocationId=707&LocationId=705&LocationId=709&LocationId=706", "stackTrace": ""}
{"timestamp": "2026-03-31 12:16:47.625", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/IncidentStatuses", "stackTrace": ""}
{"timestamp": "2026-03-31 12:16:47.625", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538", "stackTrace": ""}
{"timestamp": "2026-03-31 12:16:47.650", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/AppFilterUsers?Role=fieldStaff&OrgId=248&LocationId=708&LocationId=744&LocationId=707&LocationId=705&LocationId=709&LocationId=706", "stackTrace": ""}
{"timestamp": "2026-03-31 12:16:47.650", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetUsersforAppFilter",
  "Message": "42601: syntax error at or near \"$1\"",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42601: syntax error at or near "$1"
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Dapper.SqlMapper.<QueryAsync>d__33`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.DAL.Repositories.UsersRepo.<GetAppFilterUsers>d__57.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\UsersRepo.cs:line 1788
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.UsersBLL.<GetUsersforAppFilter>d__25.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\UsersBLL.cs:line 1764"}
{"timestamp": "2026-03-31 12:16:47.675", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/IncidentStatuses", "stackTrace": ""}
{"timestamp": "2026-03-31 12:16:47.758", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Company/All?&IsActive=1", "stackTrace": ""}
{"timestamp": "2026-03-31 12:16:47.793", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Company/All?&IsActive=1", "stackTrace": ""}
{"timestamp": "2026-03-31 12:16:47.793", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248", "stackTrace": ""}
{"timestamp": "2026-03-31 12:16:47.793", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Divisions/Dropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 12:16:47.812", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Npgsql.PostgresException (0x80004005): 42601: syntax error at or near "$1"
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlDataReader.NextResult()
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
   at Dapper.SqlMapper.ExecuteReaderWithFlagsFallback(IDbCommand cmd, Boolean wasClosed, CommandBehavior behavior)
   at Dapper.SqlMapper.<QueryImpl>d__138`1.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at Dapper.SqlMapper.Query[T](IDbConnection cnn, String sql, Object param, IDbTransaction transaction, Boolean buffered, Nullable`1 commandTimeout, Nullable`1 commandType)
   at IncidentReporter.DAL.Repositories.IncidentsRepo.GetDistinctUserIdsBySiteIds(Int32 organisationId, List`1 siteIds) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\IncidentsRepo.cs:line 4829
   at IncidentReporter.API.BLL.PtwBLL.<GetAllCompanyByOrgId>d__49.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\PtwBLL.cs:line 3449", "stackTrace": "Npgsql.PostgresException (0x80004005): 42601: syntax error at or near "$1"
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlDataReader.NextResult()
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
   at Dapper.SqlMapper.ExecuteReaderWithFlagsFallback(IDbCommand cmd, Boolean wasClosed, CommandBehavior behavior)
   at Dapper.SqlMapper.<QueryImpl>d__138`1.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at Dapper.SqlMapper.Query[T](IDbConnection cnn, String sql, Object param, IDbTransaction transaction, Boolean buffered, Nullable`1 commandTimeout, Nullable`1 commandType)
   at IncidentReporter.DAL.Repositories.IncidentsRepo.GetDistinctUserIdsBySiteIds(Int32 organisationId, List`1 siteIds) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\IncidentsRepo.cs:line 4829
   at IncidentReporter.API.BLL.PtwBLL.<GetAllCompanyByOrgId>d__49.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\PtwBLL.cs:line 3449"}
{"timestamp": "2026-03-31 12:16:47.877", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Incidents", "stackTrace": ""}
{"timestamp": "2026-03-31 12:16:47.911", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Incidents", "stackTrace": ""}
{"timestamp": "2026-03-31 12:16:47.911", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"OrgId":[248],"PageNumber":1,"PageLimit":1,"StartDate":"2026-03-31","EndDate":"2026-03-31","SearchTerm":"","SortingColumn":["CreatedOn"],"SortingOrder":["desc"]}", "stackTrace": ""}
{"timestamp": "2026-03-31 12:16:47.942", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "Get",
  "Message": "42883: operator does not exist: boolean = integer",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42883: operator does not exist: boolean = integer
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlDataReader.NextResult()
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.<ExecuteScalar>d__90.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.ExecuteScalar()
   at Dapper.SqlMapper.ExecuteScalarImpl[T](IDbConnection cnn, CommandDefinition& command)
   at Dapper.SqlMapper.ExecuteScalar[T](IDbConnection cnn, String sql, Object param, IDbTransaction transaction, Nullable`1 commandTimeout, Nullable`1 commandType)
   at IncidentReporter.DAL.Repositories.PtwRepo.GetDefaultCompany(Int32 orgId) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\PtwRepo.cs:line 6184
   at IncidentReporter.API.BLL.IncidentsBLL.<ApplyFiltersAsync>d__110.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\IncidentsBLL.cs:line 7592
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.IncidentsBLL.<Get>d__10.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\IncidentsBLL.cs:line 90"}
{"timestamp": "2026-03-31 12:16:47.985", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Divisions/Dropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 12:16:48.036", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Departments?SortingColumn=Name&SortingOrder=Asc&SiteId=708&SiteId=744&SiteId=707&SiteId=705&SiteId=709&SiteId=706", "stackTrace": ""}
{"timestamp": "2026-03-31 12:16:48.070", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Departments?SortingColumn=Name&SortingOrder=Asc&SiteId=708&SiteId=744&SiteId=707&SiteId=705&SiteId=709&SiteId=706", "stackTrace": ""}
{"timestamp": "2026-03-31 12:16:48.093", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetDepartmentsByOrgIdAsync",
  "Message": "42601: syntax error at or near \"$3\"",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42601: syntax error at or near "$3"
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Dapper.SqlMapper.<QueryAsync>d__33`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
   at IncidentReporter.DAL.Repositories.DepartmentsRepo.<GetDepartmentsByOrgIdAsync>d__14.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\DepartmentsRepo.cs:line 492
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.DepartmentsBLL.<GetDepartmentsByOrgIdAsync>d__11.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\DepartmentsBLL.cs:line 357"}
{"timestamp": "2026-03-31 12:16:48.756", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Incidents", "stackTrace": ""}
{"timestamp": "2026-03-31 12:16:48.756", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"UserId":null,"ReportedByUserIds":[],"OrgId":[248],"CompanyId":[],"LocationId":[708,744,707,705,709,706],"DivisionId":[],"DepartmentId":[],"AssignedTo":[],"PageNumber":1,"PageLimit":10,"StartDate":"2025-05-01","EndDate":"2026-03-31","SearchTerm":"","SortingColumn":["CreatedOn"],"SortingOrder":["desc"],"ShowReportedTicket":false}", "stackTrace": ""}
{"timestamp": "2026-03-31 12:16:48.764", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/FieldStaffAndAppUsers?Role=3&SiteIds=708&SiteIds=744&SiteIds=707&SiteIds=705&SiteIds=709&SiteIds=706", "stackTrace": ""}
{"timestamp": "2026-03-31 12:16:48.764", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/FieldStaffAndAppUsers?Role=1&SiteIds=708&SiteIds=744&SiteIds=707&SiteIds=705&SiteIds=709&SiteIds=706", "stackTrace": ""}
{"timestamp": "2026-03-31 12:16:48.774", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "Get",
  "Message": "42883: operator does not exist: boolean = integer",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42883: operator does not exist: boolean = integer
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlDataReader.NextResult()
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.<ExecuteScalar>d__90.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.ExecuteScalar()
   at Dapper.SqlMapper.ExecuteScalarImpl[T](IDbConnection cnn, CommandDefinition& command)
   at Dapper.SqlMapper.ExecuteScalar[T](IDbConnection cnn, String sql, Object param, IDbTransaction transaction, Nullable`1 commandTimeout, Nullable`1 commandType)
   at IncidentReporter.DAL.Repositories.PtwRepo.GetDefaultCompany(Int32 orgId) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\PtwRepo.cs:line 6184
   at IncidentReporter.API.BLL.IncidentsBLL.<ApplyFiltersAsync>d__110.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\IncidentsBLL.cs:line 7592
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.IncidentsBLL.<Get>d__10.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\IncidentsBLL.cs:line 90"}
{"timestamp": "2026-03-31 12:16:48.819", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/FieldStaffAndAppUsers?Role=3&SiteIds=708&SiteIds=744&SiteIds=707&SiteIds=705&SiteIds=709&SiteIds=706", "stackTrace": ""}
{"timestamp": "2026-03-31 12:16:48.819", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/FieldStaffAndAppUsers?Role=1&SiteIds=708&SiteIds=744&SiteIds=707&SiteIds=705&SiteIds=709&SiteIds=706", "stackTrace": ""}
{"timestamp": "2026-03-31 12:16:48.836", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetFieldStaffAndAppUsers",
  "Message": "42601: syntax error at or near \"$3\"",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42601: syntax error at or near "$3"
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Dapper.SqlMapper.<QueryAsync>d__33`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.DAL.Repositories.UsersRepo.<GetFieldStaffAndAppUsersAsync>d__331.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\UsersRepo.cs:line 9262
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.UsersBLL.<GetFieldStaffAndAppUsers>d__127.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\UsersBLL.cs:line 8962"}
{"timestamp": "2026-03-31 12:16:48.836", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetFieldStaffAndAppUsers",
  "Message": "42601: syntax error at or near \"$3\"",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42601: syntax error at or near "$3"
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Dapper.SqlMapper.<QueryAsync>d__33`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.DAL.Repositories.UsersRepo.<GetFieldStaffAndAppUsersAsync>d__331.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\UsersRepo.cs:line 9262
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.UsersBLL.<GetFieldStaffAndAppUsers>d__127.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\UsersBLL.cs:line 8962"}
{"timestamp": "2026-03-31 12:16:49.482", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Incidents", "stackTrace": ""}
{"timestamp": "2026-03-31 12:16:49.482", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"UserId":null,"ReportedByUserIds":[],"OrgId":[248],"CompanyId":[],"LocationId":[],"DivisionId":[1637,1574,1575,1576],"DepartmentId":[],"AssignedTo":[],"IncidentStatusIds":[390],"PageNumber":1,"PageLimit":10,"StartDate":"2025-05-01","EndDate":"2026-03-31","SearchTerm":"","SortingColumn":["CreatedOn"],"SortingOrder":["desc"],"ShowReportedTicket":false}", "stackTrace": ""}
{"timestamp": "2026-03-31 12:16:49.492", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "Get",
  "Message": "42883: operator does not exist: boolean = integer",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42883: operator does not exist: boolean = integer
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlDataReader.NextResult()
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.<ExecuteScalar>d__90.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.ExecuteScalar()
   at Dapper.SqlMapper.ExecuteScalarImpl[T](IDbConnection cnn, CommandDefinition& command)
   at Dapper.SqlMapper.ExecuteScalar[T](IDbConnection cnn, String sql, Object param, IDbTransaction transaction, Nullable`1 commandTimeout, Nullable`1 commandType)
   at IncidentReporter.DAL.Repositories.PtwRepo.GetDefaultCompany(Int32 orgId) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\PtwRepo.cs:line 6184
   at IncidentReporter.API.BLL.IncidentsBLL.<ApplyFiltersAsync>d__110.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\IncidentsBLL.cs:line 7592
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.IncidentsBLL.<Get>d__10.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\IncidentsBLL.cs:line 90"}
{"timestamp": "2026-03-31 12:17:57.307", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538", "stackTrace": ""}
{"timestamp": "2026-03-31 12:17:57.428", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538", "stackTrace": ""}
{"timestamp": "2026-03-31 12:17:57.627", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Training/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 12:17:57.627", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/TaskCategories/Dropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 12:17:57.666", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Training/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 12:17:57.666", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31"}", "stackTrace": ""}
{"timestamp": "2026-03-31 12:17:57.680", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/TaskCategories/Dropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 12:17:57.680", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteId":["708","744","707","705","709","706"]}", "stackTrace": ""}
{"timestamp": "2026-03-31 12:17:57.736", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Divisions/Dropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 12:17:57.820", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Divisions/Dropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 12:17:57.893", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Incidents/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 12:17:57.893", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/KPI/PlantMaster/Sites/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 12:17:57.893", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Tasks/List/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 12:17:57.897", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Tasks/List/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 12:17:57.897", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Inspections/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 12:17:57.897", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/IncidentManagement/Firs/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 12:17:57.897", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/ManagementOfChangeList/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 12:17:57.897", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/PermitToWork/All/Sites/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 12:17:57.897", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Courses/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 12:17:57.918", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Incidents/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 12:17:57.918", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31","CategoryId":[1637,1574,1575,1576]}", "stackTrace": ""}
{"timestamp": "2026-03-31 12:17:57.918", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/KPI/PlantMaster/Sites/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 12:17:57.918", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"]}", "stackTrace": ""}
{"timestamp": "2026-03-31 12:17:57.918", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Tasks/List/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 12:17:57.918", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31","AcmModuleId":46}", "stackTrace": ""}
{"timestamp": "2026-03-31 12:17:57.918", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Tasks/List/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 12:17:57.918", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31","CategoryId":[]}", "stackTrace": ""}
{"timestamp": "2026-03-31 12:17:57.939", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/ManagementOfChangeList/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 12:17:57.939", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31"}", "stackTrace": ""}
{"timestamp": "2026-03-31 12:17:57.939", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/PermitToWork/All/Sites/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 12:17:57.939", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Inspections/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 12:17:57.939", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31"}", "stackTrace": ""}
{"timestamp": "2026-03-31 12:17:57.939", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/IncidentManagement/Firs/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 12:17:57.939", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31"}", "stackTrace": ""}
{"timestamp": "2026-03-31 12:17:57.939", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31"}", "stackTrace": ""}
{"timestamp": "2026-03-31 12:17:57.939", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Courses/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 12:17:57.939", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31"}", "stackTrace": ""}
{"timestamp": "2026-03-31 12:17:57.980", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetMultiSiteTaskCounts",
  "Message": "42883: operator does not exist: task_categories_created_source = text",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42883: operator does not exist: task_categories_created_source = text
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Dapper.SqlMapper.<QueryRowAsync>d__34`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.DAL.Repositories.TaskRepo.<>c__DisplayClass161_0.<<GetTaskCategoryIdByAcmModuleId>b__0>d.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\TaskRepo.cs:line 5082
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.DAL.Repositories.BaseRepo.<ExecuteQueryAsync>d__7`1.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\BaseRepo.cs:line 79
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.DAL.Repositories.TaskRepo.<GetTaskCategoryIdByAcmModuleId>d__161.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\TaskRepo.cs:line 5081
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.TaskBLL.<GetMultiSiteTaskCounts>d__73.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\TaskBLL.cs:line 5471"}
{"timestamp": "2026-03-31 12:17:58.376", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/WorkPermit/Statuses", "stackTrace": ""}
{"timestamp": "2026-03-31 12:17:58.376", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Library/Categories", "stackTrace": ""}
{"timestamp": "2026-03-31 12:17:58.376", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/KPI/PlantMasterDropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 12:17:58.388", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/KPI/EmployeeMasterDropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 12:17:58.388", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/Users/DropDown?ModuleName=Library", "stackTrace": ""}
{"timestamp": "2026-03-31 12:17:58.413", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/KPI/PlantMasterDropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 12:17:58.413", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"OrgId":[248],"SiteId":["708","744","707","705","709","706"]}", "stackTrace": ""}
{"timestamp": "2026-03-31 12:17:58.413", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Library/Categories", "stackTrace": ""}
{"timestamp": "2026-03-31 12:17:58.413", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"OrgId":248}", "stackTrace": ""}
{"timestamp": "2026-03-31 12:17:58.431", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/KPI/EmployeeMasterDropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 12:17:58.431", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"OrgId":[248],"SiteId":["708","744","707","705","709","706"]}", "stackTrace": ""}
{"timestamp": "2026-03-31 12:17:58.474", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/Users/DropDown?ModuleName=Library", "stackTrace": ""}
{"timestamp": "2026-03-31 12:17:58.474", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/WorkPermit/Statuses", "stackTrace": ""}
{"timestamp": "2026-03-31 12:17:58.838", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/KPI/PlantMaster/AverageRatings", "stackTrace": ""}
{"timestamp": "2026-03-31 12:17:58.869", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/KPI/PlantMaster/AverageRatings", "stackTrace": ""}
{"timestamp": "2026-03-31 12:17:58.869", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"KpiId":[21,22,23,24,25,33,34,35,36,37,27,28,29,30,31,38,39,40,41,42,16],"SiteIds":["708","744","707","705","709","706"]}", "stackTrace": ""}
{"timestamp": "2026-03-31 12:17:58.900", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetPlantMasterAverageRatings",
  "Message": "42601: syntax error at or near \"$1\"",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42601: syntax error at or near "$1"
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Dapper.SqlMapper.<QueryAsync>d__33`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
   at IncidentReporter.DAL.Repositories.EmployeeKpiRepo.<GetPlantMasterAverageRatings>d__72.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\EmployeeKpiRepo .cs:line 2371
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.EmployeeKpiBLL.<GetPlantMasterAverageRatings>d__46.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\EmployeeKpiBLL.cs:line 2186"}
{"timestamp": "2026-03-31 12:18:02.113", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538", "stackTrace": ""}
{"timestamp": "2026-03-31 12:18:02.245", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538", "stackTrace": ""}
{"timestamp": "2026-03-31 12:18:02.383", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/IncidentManagement/Investigation/Statuses", "stackTrace": ""}
{"timestamp": "2026-03-31 12:18:02.383", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Investigation/Categories", "stackTrace": ""}
{"timestamp": "2026-03-31 12:18:02.417", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/IncidentManagement/Investigation/Statuses", "stackTrace": ""}
{"timestamp": "2026-03-31 12:18:02.441", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Investigation/Categories", "stackTrace": ""}
{"timestamp": "2026-03-31 12:18:02.441", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {}", "stackTrace": ""}
{"timestamp": "2026-03-31 12:18:02.464", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetAllInvestigationCategories",
  "Message": "42883: operator does not exist: boolean = integer",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42883: operator does not exist: boolean = integer
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlDataReader.NextResult()
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
   at Dapper.SqlMapper.ExecuteReaderWithFlagsFallback(IDbCommand cmd, Boolean wasClosed, CommandBehavior behavior)
   at Dapper.SqlMapper.<QueryImpl>d__138`1.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at Dapper.SqlMapper.Query[T](IDbConnection cnn, String sql, Object param, IDbTransaction transaction, Boolean buffered, Nullable`1 commandTimeout, Nullable`1 commandType)
   at IncidentReporter.DAL.Repositories.IncidentsRepo.GetActiveSites(Int32 orgId) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\IncidentsRepo.cs:line 3400
   at IncidentReporter.API.BLL.IncidentManagementBLL.<GetAllInvestigationCategories>d__18.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\IncidentManagementBLL.cs:line 1260"}
{"timestamp": "2026-03-31 12:18:03.036", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/IncidentManagement/Investigations", "stackTrace": ""}
{"timestamp": "2026-03-31 12:18:03.061", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/IncidentManagement/Investigations", "stackTrace": ""}
{"timestamp": "2026-03-31 12:18:03.061", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteId":[705],"DepartmentId":[],"InvestigationCategoryId":[],"InvestigationStatusId":[],"FromDate":null,"ToDate":null,"PageNumber":1,"PageLimit":10,"SearchText":"","SortingColumn":["InvestigationCategoryName"],"SortingOrder":["desc"]}", "stackTrace": ""}
{"timestamp": "2026-03-31 12:18:23.253", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Resources/eng?orgId=248", "stackTrace": ""}
{"timestamp": "2026-03-31 12:18:23.377", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Resources/eng?orgId=248", "stackTrace": ""}
{"timestamp": "2026-03-31 12:18:23.816", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/AccessControl/Modules/248", "stackTrace": ""}
{"timestamp": "2026-03-31 12:18:23.925", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/AccessControl/Modules/248", "stackTrace": ""}
{"timestamp": "2026-03-31 12:18:24.594", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Health", "stackTrace": ""}
{"timestamp": "2026-03-31 12:18:24.594", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Resources/package-features-eng", "stackTrace": ""}
{"timestamp": "2026-03-31 12:18:24.660", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Health", "stackTrace": ""}
{"timestamp": "2026-03-31 12:18:24.684", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Resources/package-features-eng", "stackTrace": ""}
{"timestamp": "2026-03-31 12:18:26.443", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538", "stackTrace": ""}
{"timestamp": "2026-03-31 12:18:26.470", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538", "stackTrace": ""}
{"timestamp": "2026-03-31 12:18:26.538", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538", "stackTrace": ""}
{"timestamp": "2026-03-31 12:18:26.686", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538", "stackTrace": ""}
{"timestamp": "2026-03-31 12:18:26.835", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538", "stackTrace": ""}
{"timestamp": "2026-03-31 12:18:27.102", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538", "stackTrace": ""}
{"timestamp": "2026-03-31 12:18:28.403", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/Modules", "stackTrace": ""}
{"timestamp": "2026-03-31 12:18:28.403", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248", "stackTrace": ""}
{"timestamp": "2026-03-31 12:18:28.471", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Languages", "stackTrace": ""}
{"timestamp": "2026-03-31 12:18:28.477", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/PendingActionsNotifications", "stackTrace": ""}
{"timestamp": "2026-03-31 12:18:28.657", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/Modules", "stackTrace": ""}
{"timestamp": "2026-03-31 12:18:28.657", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248", "stackTrace": ""}
{"timestamp": "2026-03-31 12:18:28.657", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/PendingActionsNotifications", "stackTrace": ""}
{"timestamp": "2026-03-31 12:18:28.657", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Languages", "stackTrace": ""}
{"timestamp": "2026-03-31 12:18:28.675", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetPendingActionsNotificationsCount",
  "Message": "No password has been provided but the backend requires one (in SASL/SCRAM-SHA-256)",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.NpgsqlException (0x80004005): No password has been provided but the backend requires one (in SASL/SCRAM-SHA-256)
   at Npgsql.NpgsqlConnector.<AuthenticateSASL>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlConnector.<Authenticate>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlConnector.<Open>d__147.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.ConnectorPool.<AllocateLong>d__20.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlConnection.<>c__DisplayClass32_0.<<Open>g__OpenLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
   at IncidentReporter.DAL.Repositories.BaseRepo.<ExecuteQueryAsync>d__7`1.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\BaseRepo.cs:line 78
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.DAL.Repositories.OrganisationRepo.<GetOrganisationPreferences>d__12.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\OrganisationRepo.cs:line 379
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.NotificationsBLL.<GetUserAccessibleModules>d__34.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\NotificationsBLL.cs:line 1731
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.NotificationsBLL.<GetPendingActionsNotificationsCount>d__22.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\NotificationsBLL.cs:line 1146"}
{"timestamp": "2026-03-31 12:18:28.996", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538", "stackTrace": ""}
{"timestamp": "2026-03-31 12:18:29.008", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/AccessControl/Modules/248", "stackTrace": ""}
{"timestamp": "2026-03-31 12:18:29.571", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/AccessControl/Modules/248", "stackTrace": ""}
{"timestamp": "2026-03-31 12:18:29.662", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/IncidentManagement/Investigation/Statuses", "stackTrace": ""}
{"timestamp": "2026-03-31 12:18:29.672", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Investigation/Categories", "stackTrace": ""}
{"timestamp": "2026-03-31 12:18:29.691", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/IncidentManagement/Investigation/Statuses", "stackTrace": ""}
{"timestamp": "2026-03-31 12:18:29.711", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Investigation/Categories", "stackTrace": ""}
{"timestamp": "2026-03-31 12:18:29.711", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {}", "stackTrace": ""}
{"timestamp": "2026-03-31 12:18:29.729", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetAllInvestigationCategories",
  "Message": "42883: operator does not exist: boolean = integer",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42883: operator does not exist: boolean = integer
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlDataReader.NextResult()
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
   at Dapper.SqlMapper.ExecuteReaderWithFlagsFallback(IDbCommand cmd, Boolean wasClosed, CommandBehavior behavior)
   at Dapper.SqlMapper.<QueryImpl>d__138`1.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at Dapper.SqlMapper.Query[T](IDbConnection cnn, String sql, Object param, IDbTransaction transaction, Boolean buffered, Nullable`1 commandTimeout, Nullable`1 commandType)
   at IncidentReporter.DAL.Repositories.IncidentsRepo.GetActiveSites(Int32 orgId) in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\IncidentsRepo.cs:line 3400
   at IncidentReporter.API.BLL.IncidentManagementBLL.<GetAllInvestigationCategories>d__18.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\IncidentManagementBLL.cs:line 1260"}
{"timestamp": "2026-03-31 12:18:29.797", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248", "stackTrace": ""}
{"timestamp": "2026-03-31 12:18:29.889", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/IncidentManagement/Investigations", "stackTrace": ""}
{"timestamp": "2026-03-31 12:18:29.920", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/IncidentManagement/Investigations", "stackTrace": ""}
{"timestamp": "2026-03-31 12:18:29.920", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteId":[705],"DepartmentId":[],"InvestigationCategoryId":[],"InvestigationStatusId":[],"FromDate":null,"ToDate":null,"PageNumber":1,"PageLimit":10,"SearchText":"","SortingColumn":["InvestigationCategoryName"],"SortingOrder":["desc"]}", "stackTrace": ""}
{"timestamp": "2026-03-31 12:18:38.713", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/attachments/organisations/TTK_e54e850a-a12b-4b5f-830c-e5eef42ebe61.png", "stackTrace": ""}
{"timestamp": "2026-03-31 12:23:52.140", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Resources/eng", "stackTrace": ""}
{"timestamp": "2026-03-31 12:23:52.292", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Health", "stackTrace": ""}
{"timestamp": "2026-03-31 12:23:52.297", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Resources/package-features-eng", "stackTrace": ""}
{"timestamp": "2026-03-31 12:24:00.167", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Login", "stackTrace": ""}
{"timestamp": "2026-03-31 12:24:00.196", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Login", "stackTrace": ""}
{"timestamp": "2026-03-31 12:24:00.196", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"Email":"TTK_EHS@oqsha.com","Password":"Oqsha@123","Country":"","Slot":"","PortalVersion":"5.36.0"}", "stackTrace": ""}
{"timestamp": "2026-03-31 12:24:00.505", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations", "stackTrace": ""}
{"timestamp": "2026-03-31 12:24:00.531", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations", "stackTrace": ""}
{"timestamp": "2026-03-31 12:24:00.658", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/AccessControl/Modules/248", "stackTrace": ""}
{"timestamp": "2026-03-31 12:24:00.685", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/AccessControl/Modules/248", "stackTrace": ""}
{"timestamp": "2026-03-31 12:24:00.754", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Resources/eng?orgId=248", "stackTrace": ""}
{"timestamp": "2026-03-31 12:24:00.782", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Resources/eng?orgId=248", "stackTrace": ""}
{"timestamp": "2026-03-31 12:24:12.266", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Divisions", "stackTrace": ""}
{"timestamp": "2026-03-31 12:24:12.308", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Divisions", "stackTrace": ""}
{"timestamp": "2026-03-31 12:24:12.537", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/IncidentLocations?isActive=1", "stackTrace": ""}
{"timestamp": "2026-03-31 12:24:12.559", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/IncidentLocations?isActive=1", "stackTrace": ""}
{"timestamp": "2026-03-31 12:24:12.716", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538/incidentsites?isActive=1", "stackTrace": ""}
{"timestamp": "2026-03-31 12:24:12.742", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538/incidentsites?isActive=1", "stackTrace": ""}
{"timestamp": "2026-03-31 12:24:12.829", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248", "stackTrace": ""}
{"timestamp": "2026-03-31 12:24:12.857", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248", "stackTrace": ""}
{"timestamp": "2026-03-31 12:24:12.912", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538", "stackTrace": ""}
{"timestamp": "2026-03-31 12:24:12.941", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538", "stackTrace": ""}
{"timestamp": "2026-03-31 12:24:14.138", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/Modules", "stackTrace": ""}
{"timestamp": "2026-03-31 12:24:14.165", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538", "stackTrace": ""}
{"timestamp": "2026-03-31 12:24:14.165", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/Modules", "stackTrace": ""}
{"timestamp": "2026-03-31 12:24:14.296", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538", "stackTrace": ""}
{"timestamp": "2026-03-31 12:24:14.396", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538", "stackTrace": ""}
{"timestamp": "2026-03-31 12:24:14.406", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248", "stackTrace": ""}
{"timestamp": "2026-03-31 12:24:14.406", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/Modules", "stackTrace": ""}
{"timestamp": "2026-03-31 12:24:14.406", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Languages", "stackTrace": ""}
{"timestamp": "2026-03-31 12:24:14.406", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/PendingActionsNotifications", "stackTrace": ""}
{"timestamp": "2026-03-31 12:24:14.435", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Languages", "stackTrace": ""}
{"timestamp": "2026-03-31 12:24:14.459", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/PendingActionsNotifications", "stackTrace": ""}
{"timestamp": "2026-03-31 12:24:14.459", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetPendingActionsNotificationsCount",
  "Message": "No password has been provided but the backend requires one (in SASL/SCRAM-SHA-256)",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.NpgsqlException (0x80004005): No password has been provided but the backend requires one (in SASL/SCRAM-SHA-256)
   at Npgsql.NpgsqlConnector.<AuthenticateSASL>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlConnector.<Authenticate>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlConnector.<Open>d__147.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.ConnectorPool.<AllocateLong>d__20.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlConnection.<>c__DisplayClass32_0.<<Open>g__OpenLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
   at IncidentReporter.DAL.Repositories.BaseRepo.<ExecuteQueryAsync>d__7`1.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\BaseRepo.cs:line 78
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.DAL.Repositories.OrganisationRepo.<GetOrganisationPreferences>d__12.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\OrganisationRepo.cs:line 379
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.NotificationsBLL.<GetUserAccessibleModules>d__34.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\NotificationsBLL.cs:line 1731
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.NotificationsBLL.<GetPendingActionsNotificationsCount>d__22.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\NotificationsBLL.cs:line 1146"}
{"timestamp": "2026-03-31 12:24:14.479", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/attachments/organisations/TTK_e54e850a-a12b-4b5f-830c-e5eef42ebe61.png", "stackTrace": ""}
{"timestamp": "2026-03-31 12:24:14.542", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/AccessControl/Modules/248", "stackTrace": ""}
{"timestamp": "2026-03-31 12:24:14.568", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/AccessControl/Modules/248", "stackTrace": ""}
{"timestamp": "2026-03-31 12:24:14.640", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/UserPreference", "stackTrace": ""}
{"timestamp": "2026-03-31 12:24:14.678", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/UserPreference", "stackTrace": ""}
{"timestamp": "2026-03-31 12:24:14.758", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248", "stackTrace": ""}
{"timestamp": "2026-03-31 12:24:14.825", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Training/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 12:24:14.825", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/TaskCategories/Dropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 12:24:14.847", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Training/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 12:24:14.847", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31"}", "stackTrace": ""}
{"timestamp": "2026-03-31 12:24:14.883", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/TaskCategories/Dropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 12:24:14.883", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteId":["708","744","707","705","709","706"]}", "stackTrace": ""}
{"timestamp": "2026-03-31 12:24:14.930", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Divisions/Dropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 12:24:14.995", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Divisions/Dropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 12:24:15.057", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Incidents/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 12:24:15.057", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Tasks/List/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 12:24:15.066", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Inspections/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 12:24:15.057", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Tasks/List/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 12:24:15.057", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/KPI/PlantMaster/Sites/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 12:24:15.066", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/IncidentManagement/Firs/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 12:24:15.066", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/ManagementOfChangeList/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 12:24:15.066", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/PermitToWork/All/Sites/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 12:24:15.082", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Courses/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 12:24:15.082", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Incidents/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 12:24:15.082", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31","CategoryId":[1637,1574,1575,1576]}", "stackTrace": ""}
{"timestamp": "2026-03-31 12:24:15.142", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Tasks/List/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 12:24:15.142", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31","AcmModuleId":46}", "stackTrace": ""}
{"timestamp": "2026-03-31 12:24:15.142", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Tasks/List/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 12:24:15.142", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Inspections/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 12:24:15.142", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31"}", "stackTrace": ""}
{"timestamp": "2026-03-31 12:24:15.142", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31","CategoryId":[]}", "stackTrace": ""}
{"timestamp": "2026-03-31 12:24:15.142", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/ManagementOfChangeList/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 12:24:15.142", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31"}", "stackTrace": ""}
{"timestamp": "2026-03-31 12:24:15.142", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/PermitToWork/All/Sites/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 12:24:15.142", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/IncidentManagement/Firs/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 12:24:15.142", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Courses/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 12:24:15.142", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31"}", "stackTrace": ""}
{"timestamp": "2026-03-31 12:24:15.142", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31"}", "stackTrace": ""}
{"timestamp": "2026-03-31 12:24:15.142", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/KPI/PlantMaster/Sites/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 12:24:15.142", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"]}", "stackTrace": ""}
{"timestamp": "2026-03-31 12:24:15.142", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31"}", "stackTrace": ""}
{"timestamp": "2026-03-31 12:24:15.165", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetMultiSiteTaskCounts",
  "Message": "42883: operator does not exist: task_categories_created_source = text",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42883: operator does not exist: task_categories_created_source = text
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Dapper.SqlMapper.<QueryRowAsync>d__34`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.DAL.Repositories.TaskRepo.<>c__DisplayClass161_0.<<GetTaskCategoryIdByAcmModuleId>b__0>d.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\TaskRepo.cs:line 5082
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.DAL.Repositories.BaseRepo.<ExecuteQueryAsync>d__7`1.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\BaseRepo.cs:line 79
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.DAL.Repositories.TaskRepo.<GetTaskCategoryIdByAcmModuleId>d__161.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\TaskRepo.cs:line 5081
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.TaskBLL.<GetMultiSiteTaskCounts>d__73.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\TaskBLL.cs:line 5471"}
{"timestamp": "2026-03-31 12:24:15.432", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/WorkPermit/Statuses", "stackTrace": ""}
{"timestamp": "2026-03-31 12:24:15.432", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Library/Categories", "stackTrace": ""}
{"timestamp": "2026-03-31 12:24:15.442", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/KPI/PlantMasterDropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 12:24:15.442", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/Users/DropDown?ModuleName=Library", "stackTrace": ""}
{"timestamp": "2026-03-31 12:24:15.442", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/KPI/EmployeeMasterDropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 12:24:15.456", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/WorkPermit/Statuses", "stackTrace": ""}
{"timestamp": "2026-03-31 12:24:15.472", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Library/Categories", "stackTrace": ""}
{"timestamp": "2026-03-31 12:24:15.472", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"OrgId":248}", "stackTrace": ""}
{"timestamp": "2026-03-31 12:24:15.472", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/KPI/PlantMasterDropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 12:24:15.472", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"OrgId":[248],"SiteId":["708","744","707","705","709","706"]}", "stackTrace": ""}
{"timestamp": "2026-03-31 12:24:15.489", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/KPI/EmployeeMasterDropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 12:24:15.489", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"OrgId":[248],"SiteId":["708","744","707","705","709","706"]}", "stackTrace": ""}
{"timestamp": "2026-03-31 12:24:15.489", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/Users/DropDown?ModuleName=Library", "stackTrace": ""}
{"timestamp": "2026-03-31 12:24:15.601", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/KPI/PlantMaster/AverageRatings", "stackTrace": ""}
{"timestamp": "2026-03-31 12:24:15.626", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/KPI/PlantMaster/AverageRatings", "stackTrace": ""}
{"timestamp": "2026-03-31 12:24:15.626", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"KpiId":[21,22,23,24,25,33,34,35,36,37,27,28,29,30,31,38,39,40,41,42,16],"SiteIds":["708","744","707","705","709","706"]}", "stackTrace": ""}
{"timestamp": "2026-03-31 12:24:15.642", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetPlantMasterAverageRatings",
  "Message": "42601: syntax error at or near \"$1\"",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42601: syntax error at or near "$1"
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Dapper.SqlMapper.<QueryAsync>d__33`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
   at IncidentReporter.DAL.Repositories.EmployeeKpiRepo.<GetPlantMasterAverageRatings>d__72.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\EmployeeKpiRepo .cs:line 2371
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.EmployeeKpiBLL.<GetPlantMasterAverageRatings>d__46.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\EmployeeKpiBLL.cs:line 2186"}
{"timestamp": "2026-03-31 12:49:40.847", "level": "Info", "severity": "INFO", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Application started", "stackTrace": ""}
{"timestamp": "2026-03-31 12:49:40.875", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : http://api-postgres.oqsha.com/wp-login.php", "stackTrace": ""}
{"timestamp": "2026-03-31 13:03:36.189", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538", "stackTrace": ""}
{"timestamp": "2026-03-31 13:03:36.275", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Users/5538", "stackTrace": ""}
{"timestamp": "2026-03-31 13:03:39.465", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Training/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 13:03:39.500", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/TaskCategories/Dropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 13:03:39.528", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Training/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 13:03:39.528", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31"}", "stackTrace": ""}
{"timestamp": "2026-03-31 13:03:39.603", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/TaskCategories/Dropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 13:03:39.603", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteId":["708","744","707","705","709","706"]}", "stackTrace": ""}
{"timestamp": "2026-03-31 13:03:39.722", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Divisions/Dropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 13:03:39.788", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Divisions/Dropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 13:03:39.875", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Incidents/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 13:03:39.891", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Tasks/List/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 13:03:39.898", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/KPI/PlantMaster/Sites/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 13:03:39.898", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Tasks/List/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 13:03:39.898", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/IncidentManagement/Firs/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 13:03:39.898", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Inspections/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 13:03:39.913", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/ManagementOfChangeList/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 13:03:39.913", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/PermitToWork/All/Sites/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 13:03:39.932", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Courses/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 13:03:39.932", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Incidents/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 13:03:39.932", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31","CategoryId":[1637,1574,1575,1576]}", "stackTrace": ""}
{"timestamp": "2026-03-31 13:03:39.948", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Tasks/List/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 13:03:39.948", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31","AcmModuleId":46}", "stackTrace": ""}
{"timestamp": "2026-03-31 13:03:39.948", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/KPI/PlantMaster/Sites/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 13:03:39.948", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"]}", "stackTrace": ""}
{"timestamp": "2026-03-31 13:03:39.948", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Tasks/List/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 13:03:39.948", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31","CategoryId":[]}", "stackTrace": ""}
{"timestamp": "2026-03-31 13:03:39.984", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Inspections/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 13:03:39.984", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Courses/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 13:03:39.984", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31"}", "stackTrace": ""}
{"timestamp": "2026-03-31 13:03:39.984", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/PermitToWork/All/Sites/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 13:03:39.984", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/ManagementOfChangeList/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 13:03:39.984", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/IncidentManagement/Firs/Counts", "stackTrace": ""}
{"timestamp": "2026-03-31 13:03:39.984", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31"}", "stackTrace": ""}
{"timestamp": "2026-03-31 13:03:39.984", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31"}", "stackTrace": ""}
{"timestamp": "2026-03-31 13:03:39.984", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31"}", "stackTrace": ""}
{"timestamp": "2026-03-31 13:03:39.984", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"SiteIds":["708","744","707","705","709","706"],"FromDate":"2025-04-01","ToDate":"2026-03-31"}", "stackTrace": ""}
{"timestamp": "2026-03-31 13:03:40.134", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetMultiSiteTaskCounts",
  "Message": "42883: operator does not exist: task_categories_created_source = text",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42883: operator does not exist: task_categories_created_source = text
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Dapper.SqlMapper.<QueryRowAsync>d__34`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.DAL.Repositories.TaskRepo.<>c__DisplayClass161_0.<<GetTaskCategoryIdByAcmModuleId>b__0>d.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\TaskRepo.cs:line 5082
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.DAL.Repositories.BaseRepo.<ExecuteQueryAsync>d__7`1.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\BaseRepo.cs:line 79
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.DAL.Repositories.TaskRepo.<GetTaskCategoryIdByAcmModuleId>d__161.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\TaskRepo.cs:line 5081
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.TaskBLL.<GetMultiSiteTaskCounts>d__73.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\TaskBLL.cs:line 5471"}
{"timestamp": "2026-03-31 13:03:40.954", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/WorkPermit/Statuses", "stackTrace": ""}
{"timestamp": "2026-03-31 13:03:40.957", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Library/Categories", "stackTrace": ""}
{"timestamp": "2026-03-31 13:03:40.972", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/KPI/PlantMasterDropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 13:03:40.972", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/KPI/EmployeeMasterDropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 13:03:40.972", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/Users/DropDown?ModuleName=Library", "stackTrace": ""}
{"timestamp": "2026-03-31 13:03:41.019", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/KPI/EmployeeMasterDropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 13:03:41.019", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"OrgId":[248],"SiteId":["708","744","707","705","709","706"]}", "stackTrace": ""}
{"timestamp": "2026-03-31 13:03:41.019", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/KPI/PlantMasterDropdown", "stackTrace": ""}
{"timestamp": "2026-03-31 13:03:41.019", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"OrgId":[248],"SiteId":["708","744","707","705","709","706"]}", "stackTrace": ""}
{"timestamp": "2026-03-31 13:03:41.019", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/Library/Categories", "stackTrace": ""}
{"timestamp": "2026-03-31 13:03:41.019", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"OrgId":248}", "stackTrace": ""}
{"timestamp": "2026-03-31 13:03:41.395", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisations/248/WorkPermit/Statuses", "stackTrace": ""}
{"timestamp": "2026-03-31 13:03:41.395", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/Users/DropDown?ModuleName=Library", "stackTrace": ""}
{"timestamp": "2026-03-31 13:03:41.732", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/KPI/PlantMaster/AverageRatings", "stackTrace": ""}
{"timestamp": "2026-03-31 13:03:41.789", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Organisation/248/KPI/PlantMaster/AverageRatings", "stackTrace": ""}
{"timestamp": "2026-03-31 13:03:41.789", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request Body : {"KpiId":[21,22,23,24,25,33,34,35,36,37,27,28,29,30,31,38,39,40,41,42,16],"SiteIds":["708","744","707","705","709","706"]}", "stackTrace": ""}
{"timestamp": "2026-03-31 13:03:41.823", "level": "Error", "severity": "ERROR", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "{
  "MethodName": "GetPlantMasterAverageRatings",
  "Message": "42601: syntax error at or near \"$1\"",
  "AdditionalData": {
    "EntryPoint": "API",
    "InputData": null
  }
}", "stackTrace": "Npgsql.PostgresException (0x80004005): 42601: syntax error at or near "$1"
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlConnector.<>c__DisplayClass159_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Npgsql.NpgsqlDataReader.<NextResult>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Npgsql.NpgsqlCommand.<ExecuteDbDataReader>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Dapper.SqlMapper.<QueryAsync>d__33`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
   at IncidentReporter.DAL.Repositories.EmployeeKpiRepo.<GetPlantMasterAverageRatings>d__72.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\EmployeeKpiRepo .cs:line 2371
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at IncidentReporter.API.BLL.EmployeeKpiBLL.<GetPlantMasterAverageRatings>d__46.MoveNext() in C:\Users\windows\Osmosys\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\EmployeeKpiBLL.cs:line 2186"}
{"timestamp": "2026-03-31 16:06:48.913", "level": "Info", "severity": "INFO", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Application started", "stackTrace": ""}
{"timestamp": "2026-03-31 16:10:51.232", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/robots.txt", "stackTrace": ""}
{"timestamp": "2026-03-31 17:10:11.973", "level": "Info", "severity": "INFO", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Application started", "stackTrace": ""}
{"timestamp": "2026-03-31 19:32:18.200", "level": "Info", "severity": "INFO", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Application started", "stackTrace": ""}
{"timestamp": "2026-03-31 22:05:38.353", "level": "Info", "severity": "INFO", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Application started", "stackTrace": ""}
{"timestamp": "2026-03-31 22:28:50.020", "level": "Info", "severity": "INFO", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Application started", "stackTrace": ""}
{"timestamp": "2026-03-31 22:28:50.053", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Resources/eng", "stackTrace": ""}
{"timestamp": "2026-03-31 22:28:50.451", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Health", "stackTrace": ""}
{"timestamp": "2026-03-31 22:28:50.451", "level": "Debug", "severity": "DEBUG", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Request URL : https://api-postgres.oqsha.com/Resources/package-features-eng", "stackTrace": ""}
{"timestamp": "2026-03-31 23:12:56.720", "level": "Info", "severity": "INFO", "requestId": "", "httpMethod": "", "requestUrl": "", "message": "Application started", "stackTrace": ""}
