{ "timestamp": "2026-07-06 03:27:38.2341", "level": "Error", "severity": "ERROR", "TraceId": "79dc5e05-d0c1-4953-91ee-ecec65e02963", "message": "[DateStamper] Exception occurred while processing file D:\\App-Data\\iis\\api-qa-staging.oqsha.com\\api-qa-staging.oqsha.com\\attachments\\248\\audits\\dummyimage_3d0ea01f-38ca-4fa2-a6eb-7271afc2283a.png: System.TypeInitializationException: The type initializer for 'NativeMagickSettings' threw an exception. ---> System.TypeInitializationException: The type initializer for 'X64' threw an exception. ---> System.DllNotFoundException: Unable to load DLL 'Magick.Native-Q16-x64.dll': Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))\r\n   at ImageMagick.Environment.NativeMethods.X64.Environment_SetEnv(IntPtr name, IntPtr value)\r\n   at ImageMagick.Environment.NativeEnvironment.SetEnv(String name, String value)\r\n   at ImageMagick.MagickNET.InitializeConfiguration(ConfigurationFiles configFiles, String newPath)\r\n   at ImageMagick.Environment.NativeMethods.X64..cctor()\r\n   --- End of inner exception stack trace ---\r\n   at ImageMagick.Environment.NativeMethods.X64.Environment_Initialize()\r\n   at ImageMagick.Environment.Initialize()\r\n   at ImageMagick.MagickSettings.NativeMagickSettings..cctor()\r\n   --- End of inner exception stack trace ---\r\n   at ImageMagick.MagickSettings.NativeMagickSettings..ctor()\r\n   at ImageMagick.MagickSettings..ctor()\r\n   at ImageMagick.MagickImage..ctor()\r\n   at IncidentReporter.API.Helpers.DateStamperHelper.AddTimestampToImage(String inputFilePath) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\Helpers\\DateStamperHelper.cs:line 19", "ApiInput": {"Method":"POST","Url":"https://api-qa-staging-2.oqsha.com/Organisations/248/Audit/364/Comment/952/Attachments","Route":"/Organisations/248/Audit/364/Comment/952/Attachments","Query":"","Body":"*** MULTIPART FORM DATA / FILE UPLOAD (OMITTED FOR LOGGING) ***"} }
{ "timestamp": "2026-07-06 03:28:10.3905", "level": "Error", "severity": "ERROR", "TraceId": "54fe2cbe-d734-4571-8100-00343ac0dc43", "message": "[DateStamper] Exception occurred while processing file D:\\App-Data\\iis\\api-qa-staging.oqsha.com\\api-qa-staging.oqsha.com\\attachments\\248\\audits\\pasted1783308480887_b40bdd7f-cec0-4785-801c-799093a19a1a.png: System.TypeInitializationException: The type initializer for 'NativeMagickSettings' threw an exception. ---> System.TypeInitializationException: The type initializer for 'X64' threw an exception. ---> System.DllNotFoundException: Unable to load DLL 'Magick.Native-Q16-x64.dll': Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))\r\n   at ImageMagick.Environment.NativeMethods.X64.Environment_SetEnv(IntPtr name, IntPtr value)\r\n   at ImageMagick.Environment.NativeEnvironment.SetEnv(String name, String value)\r\n   at ImageMagick.MagickNET.InitializeConfiguration(ConfigurationFiles configFiles, String newPath)\r\n   at ImageMagick.Environment.NativeMethods.X64..cctor()\r\n   --- End of inner exception stack trace ---\r\n   at ImageMagick.Environment.NativeMethods.X64.Environment_Initialize()\r\n   at ImageMagick.Environment.Initialize()\r\n   at ImageMagick.MagickSettings.NativeMagickSettings..cctor()\r\n   --- End of inner exception stack trace ---\r\n   at ImageMagick.MagickSettings.NativeMagickSettings..ctor()\r\n   at ImageMagick.MagickSettings..ctor()\r\n   at ImageMagick.MagickImage..ctor()\r\n   at IncidentReporter.API.Helpers.DateStamperHelper.AddTimestampToImage(String inputFilePath) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\Helpers\\DateStamperHelper.cs:line 19", "ApiInput": {"Method":"POST","Url":"https://api-qa-staging-2.oqsha.com/Organisations/248/Audit/364/Comment/953/Attachments","Route":"/Organisations/248/Audit/364/Comment/953/Attachments","Query":"","Body":"*** MULTIPART FORM DATA / FILE UPLOAD (OMITTED FOR LOGGING) ***"} }
{ "timestamp": "2026-07-06 03:30:37.2842", "level": "Error", "severity": "ERROR", "TraceId": "197bc85a-fa84-4842-b904-4179565e7881", "message": "[DateStamper] Exception occurred while processing file D:\\App-Data\\iis\\api-qa-staging.oqsha.com\\api-qa-staging.oqsha.com\\attachments\\262\\static_image\\4a7f38e14c864698b39e4b6c7c8dd803_2026-07-06_03-30-37-3037_4e108cb1-ac1c-4037-94e7-9d741da7e281.png: System.TypeInitializationException: The type initializer for 'NativeMagickSettings' threw an exception. ---> System.TypeInitializationException: The type initializer for 'X64' threw an exception. ---> System.DllNotFoundException: Unable to load DLL 'Magick.Native-Q16-x64.dll': Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))\r\n   at ImageMagick.Environment.NativeMethods.X64.Environment_SetEnv(IntPtr name, IntPtr value)\r\n   at ImageMagick.Environment.NativeEnvironment.SetEnv(String name, String value)\r\n   at ImageMagick.MagickNET.InitializeConfiguration(ConfigurationFiles configFiles, String newPath)\r\n   at ImageMagick.Environment.NativeMethods.X64..cctor()\r\n   --- End of inner exception stack trace ---\r\n   at ImageMagick.Environment.NativeMethods.X64.Environment_Initialize()\r\n   at ImageMagick.Environment.Initialize()\r\n   at ImageMagick.MagickSettings.NativeMagickSettings..cctor()\r\n   --- End of inner exception stack trace ---\r\n   at ImageMagick.MagickSettings.NativeMagickSettings..ctor()\r\n   at ImageMagick.MagickSettings..ctor()\r\n   at ImageMagick.MagickImage..ctor()\r\n   at IncidentReporter.API.Helpers.DateStamperHelper.AddTimestampToImage(String inputFilePath) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\Helpers\\DateStamperHelper.cs:line 19", "ApiInput": {"Method":"POST","Url":"https://api-qa-staging-2.oqsha.com/Organisations/262/Setup/Check/Attachment","Route":"/Organisations/262/Setup/Check/Attachment","Query":"","Body":"*** MULTIPART FORM DATA / FILE UPLOAD (OMITTED FOR LOGGING) ***"} }
{ "timestamp": "2026-07-06 03:30:37.5673", "level": "Error", "severity": "ERROR", "TraceId": "c966fd58-70f9-4ead-bf4b-9919b85b22e9", "message": "[DateStamper] Exception occurred while processing file D:\\App-Data\\iis\\api-qa-staging.oqsha.com\\api-qa-staging.oqsha.com\\attachments\\262\\static_image\\2624e93ccebc4abcba4095dfed49d945_2026-07-06_03-30-37-3037_6a524142-71c7-4f5c-ada2-e82c077f4f6d.png: System.TypeInitializationException: The type initializer for 'NativeMagickSettings' threw an exception. ---> System.TypeInitializationException: The type initializer for 'X64' threw an exception. ---> System.DllNotFoundException: Unable to load DLL 'Magick.Native-Q16-x64.dll': Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))\r\n   at ImageMagick.Environment.NativeMethods.X64.Environment_SetEnv(IntPtr name, IntPtr value)\r\n   at ImageMagick.Environment.NativeEnvironment.SetEnv(String name, String value)\r\n   at ImageMagick.MagickNET.InitializeConfiguration(ConfigurationFiles configFiles, String newPath)\r\n   at ImageMagick.Environment.NativeMethods.X64..cctor()\r\n   --- End of inner exception stack trace ---\r\n   at ImageMagick.Environment.NativeMethods.X64.Environment_Initialize()\r\n   at ImageMagick.Environment.Initialize()\r\n   at ImageMagick.MagickSettings.NativeMagickSettings..cctor()\r\n   --- End of inner exception stack trace ---\r\n   at ImageMagick.MagickSettings.NativeMagickSettings..ctor()\r\n   at ImageMagick.MagickSettings..ctor()\r\n   at ImageMagick.MagickImage..ctor()\r\n   at IncidentReporter.API.Helpers.DateStamperHelper.AddTimestampToImage(String inputFilePath) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\Helpers\\DateStamperHelper.cs:line 19", "ApiInput": {"Method":"POST","Url":"https://api-qa-staging-2.oqsha.com/Organisations/262/Setup/Check/Attachment","Route":"/Organisations/262/Setup/Check/Attachment","Query":"","Body":"*** MULTIPART FORM DATA / FILE UPLOAD (OMITTED FOR LOGGING) ***"} }
{ "timestamp": "2026-07-06 03:50:46.4991", "level": "Error", "severity": "ERROR", "TraceId": "660dd093-759c-47d4-8cfa-c7581de53e76", "message": "Unhandled Exception in Web API", "stackTrace": "System.OperationCanceledException: The operation was canceled.\r\n   at System.Threading.CancellationToken.ThrowOperationCanceledException()\r\n   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__0.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__2.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Controllers.ExceptionFilterResult.<ExecuteAsync>d__0.MoveNext()", "ApiInput": {"Method":"GET","Url":"https://api-qa-staging-2.oqsha.com/Users/11711/FieldStaffOrganisations/","Route":"/Users/11711/FieldStaffOrganisations/","Query":"","Body":""} }
{ "timestamp": "2026-07-06 04:20:17.6275", "level": "Error", "severity": "ERROR", "TraceId": "f6941f77-4745-47e2-ba59-5dc85fb157b0", "message": "[DateStamper] Exception occurred while processing file D:\\App-Data\\iis\\api-qa-staging.oqsha.com\\api-qa-staging.oqsha.com\\attachments\\262\\static_image\\1c06500b59f04bfa8d215ab6c1cd2f1a_2026-07-06_04-20-17-2017_831cc4fc-3626-4358-916a-df65fa21ffb2.png: System.TypeInitializationException: The type initializer for 'NativeMagickSettings' threw an exception. ---> System.TypeInitializationException: The type initializer for 'X64' threw an exception. ---> System.DllNotFoundException: Unable to load DLL 'Magick.Native-Q16-x64.dll': Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))\r\n   at ImageMagick.Environment.NativeMethods.X64.Environment_SetEnv(IntPtr name, IntPtr value)\r\n   at ImageMagick.Environment.NativeEnvironment.SetEnv(String name, String value)\r\n   at ImageMagick.MagickNET.InitializeConfiguration(ConfigurationFiles configFiles, String newPath)\r\n   at ImageMagick.Environment.NativeMethods.X64..cctor()\r\n   --- End of inner exception stack trace ---\r\n   at ImageMagick.Environment.NativeMethods.X64.Environment_Initialize()\r\n   at ImageMagick.Environment.Initialize()\r\n   at ImageMagick.MagickSettings.NativeMagickSettings..cctor()\r\n   --- End of inner exception stack trace ---\r\n   at ImageMagick.MagickSettings.NativeMagickSettings..ctor()\r\n   at ImageMagick.MagickSettings..ctor()\r\n   at ImageMagick.MagickImage..ctor()\r\n   at IncidentReporter.API.Helpers.DateStamperHelper.AddTimestampToImage(String inputFilePath) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\Helpers\\DateStamperHelper.cs:line 19", "ApiInput": {"Method":"POST","Url":"https://api-qa-staging-2.oqsha.com/Organisations/262/Setup/Check/Attachment","Route":"/Organisations/262/Setup/Check/Attachment","Query":"","Body":"*** MULTIPART FORM DATA / FILE UPLOAD (OMITTED FOR LOGGING) ***"} }
{ "timestamp": "2026-07-06 04:20:18.0269", "level": "Error", "severity": "ERROR", "TraceId": "d515651b-f2a0-453a-b67a-7f01fed6a478", "message": "[DateStamper] Exception occurred while processing file D:\\App-Data\\iis\\api-qa-staging.oqsha.com\\api-qa-staging.oqsha.com\\attachments\\262\\static_image\\d6bf7ed33eb14f1282da83ad95b85a64_2026-07-06_04-20-18-2018_66d4cd35-a601-4784-a2d0-deea09319ed3.png: System.TypeInitializationException: The type initializer for 'NativeMagickSettings' threw an exception. ---> System.TypeInitializationException: The type initializer for 'X64' threw an exception. ---> System.DllNotFoundException: Unable to load DLL 'Magick.Native-Q16-x64.dll': Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))\r\n   at ImageMagick.Environment.NativeMethods.X64.Environment_SetEnv(IntPtr name, IntPtr value)\r\n   at ImageMagick.Environment.NativeEnvironment.SetEnv(String name, String value)\r\n   at ImageMagick.MagickNET.InitializeConfiguration(ConfigurationFiles configFiles, String newPath)\r\n   at ImageMagick.Environment.NativeMethods.X64..cctor()\r\n   --- End of inner exception stack trace ---\r\n   at ImageMagick.Environment.NativeMethods.X64.Environment_Initialize()\r\n   at ImageMagick.Environment.Initialize()\r\n   at ImageMagick.MagickSettings.NativeMagickSettings..cctor()\r\n   --- End of inner exception stack trace ---\r\n   at ImageMagick.MagickSettings.NativeMagickSettings..ctor()\r\n   at ImageMagick.MagickSettings..ctor()\r\n   at ImageMagick.MagickImage..ctor()\r\n   at IncidentReporter.API.Helpers.DateStamperHelper.AddTimestampToImage(String inputFilePath) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\Helpers\\DateStamperHelper.cs:line 19", "ApiInput": {"Method":"POST","Url":"https://api-qa-staging-2.oqsha.com/Organisations/262/Setup/Check/Attachment","Route":"/Organisations/262/Setup/Check/Attachment","Query":"","Body":"*** MULTIPART FORM DATA / FILE UPLOAD (OMITTED FOR LOGGING) ***"} }
{ "timestamp": "2026-07-06 06:25:57.5593", "level": "Error", "severity": "ERROR", "TraceId": "4e68b004-da19-4821-a8b6-2b6cc0314e62", "message": "[DateStamper] Exception occurred while processing file D:\\App-Data\\iis\\api-qa-staging.oqsha.com\\api-qa-staging.oqsha.com\\attachments\\module_record_attachments\\262\\131\\ChatGPT Image Jun 1, 2026, 09_36_12 AM_2026-07-06_06-25-57-2557_81f1efd3-6a49-4190-9f39-52c8070cc0ce.png: System.TypeInitializationException: The type initializer for 'NativeMagickSettings' threw an exception. ---> System.TypeInitializationException: The type initializer for 'X64' threw an exception. ---> System.DllNotFoundException: Unable to load DLL 'Magick.Native-Q16-x64.dll': Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))\r\n   at ImageMagick.Environment.NativeMethods.X64.Environment_SetEnv(IntPtr name, IntPtr value)\r\n   at ImageMagick.Environment.NativeEnvironment.SetEnv(String name, String value)\r\n   at ImageMagick.MagickNET.InitializeConfiguration(ConfigurationFiles configFiles, String newPath)\r\n   at ImageMagick.Environment.NativeMethods.X64..cctor()\r\n   --- End of inner exception stack trace ---\r\n   at ImageMagick.Environment.NativeMethods.X64.Environment_Initialize()\r\n   at ImageMagick.Environment.Initialize()\r\n   at ImageMagick.MagickSettings.NativeMagickSettings..cctor()\r\n   --- End of inner exception stack trace ---\r\n   at ImageMagick.MagickSettings.NativeMagickSettings..ctor()\r\n   at ImageMagick.MagickSettings..ctor()\r\n   at ImageMagick.MagickImage..ctor()\r\n   at IncidentReporter.API.Helpers.DateStamperHelper.AddTimestampToImage(String inputFilePath) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\Helpers\\DateStamperHelper.cs:line 19", "ApiInput": {"Method":"POST","Url":"https://api-qa-staging-2.oqsha.com/Organisations/262/Modules/131/FileUpload","Route":"/Organisations/262/Modules/131/FileUpload","Query":"","Body":"*** MULTIPART FORM DATA / FILE UPLOAD (OMITTED FOR LOGGING) ***"} }
{ "timestamp": "2026-07-06 06:52:32.5863", "level": "Error", "severity": "ERROR", "TraceId": "340559d9-323b-4df3-a983-9e75b66bc285", "message": "Unhandled Exception in Web API", "stackTrace": "System.InvalidOperationException: The given header was not found.\r\n   at System.Net.Http.Headers.HttpHeaders.GetValues(String name)\r\n   at IncidentReporter.API.Handlers.AcmAuthorise.GetToken(HttpActionContext actionContext) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\Handlers\\AcmAuthorise.cs:line 214\r\n   at IncidentReporter.API.Handlers.AcmAuthorise.OnActionExecuting(HttpActionContext actionContext) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\Handlers\\AcmAuthorise.cs:line 37\r\n   at System.Web.Http.Filters.ActionFilterAttribute.OnActionExecutingAsync(HttpActionContext actionContext, CancellationToken cancellationToken)\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__0.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__0.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__2.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Controllers.ExceptionFilterResult.<ExecuteAsync>d__0.MoveNext()", "ApiInput": {"Method":"GET","Url":"https://api-qa-staging-2.oqsha.com/Dashboard/Organisation/264","Route":"/Dashboard/Organisation/264","Query":"","Body":""} }
{ "timestamp": "2026-07-06 07:43:55.2468", "level": "Error", "severity": "ERROR", "TraceId": "b2657380-b2f5-4744-984f-bc6bf62abce7", "message": "User details not found for the given user and organisation.", "stackTrace": "System.Exception: User details not found for the given user and organisation.", "ApiInput": {"Method":"GET","Url":"https://api-qa-staging-2.oqsha.com/Organisations/260/Users/0","Route":"/Organisations/260/Users/0","Query":"","Body":""}, "MethodName": "GetUserOrganisation", "EntryPoint": "API", "InputData": null, "TraceId": "b2657380-b2f5-4744-984f-bc6bf62abce7", "ApiInputJson": "{\"Method\":\"GET\",\"Url\":\"https:\/\/api-qa-staging-2.oqsha.com\/Organisations\/260\/Users\/0\",\"Route\":\"\/Organisations\/260\/Users\/0\",\"Query\":\"\",\"Body\":\"\"}" }
{ "timestamp": "2026-07-06 07:43:55.5035", "level": "Error", "severity": "ERROR", "TraceId": "c813f66d-0084-44e4-a3f1-fd5e339464c7", "message": "User details not found for the given user and organisation.", "stackTrace": "System.Exception: User details not found for the given user and organisation.", "ApiInput": {"Method":"GET","Url":"https://api-qa-staging-2.oqsha.com/Organisations/260/Users/0","Route":"/Organisations/260/Users/0","Query":"","Body":""}, "MethodName": "GetUserOrganisation", "EntryPoint": "API", "InputData": null, "TraceId": "c813f66d-0084-44e4-a3f1-fd5e339464c7", "ApiInputJson": "{\"Method\":\"GET\",\"Url\":\"https:\/\/api-qa-staging-2.oqsha.com\/Organisations\/260\/Users\/0\",\"Route\":\"\/Organisations\/260\/Users\/0\",\"Query\":\"\",\"Body\":\"\"}" }
{ "timestamp": "2026-07-06 07:55:29.0010", "level": "Error", "severity": "ERROR", "TraceId": "758782d4-fc0c-4197-be3e-ccc593c6fa4b", "message": "User details not found for the given user and organisation.", "stackTrace": "System.Exception: User details not found for the given user and organisation.", "ApiInput": {"Method":"GET","Url":"https://api-qa-staging-2.oqsha.com/Organisations/264/Users/0","Route":"/Organisations/264/Users/0","Query":"","Body":""}, "MethodName": "GetUserOrganisation", "EntryPoint": "API", "InputData": null, "TraceId": "758782d4-fc0c-4197-be3e-ccc593c6fa4b", "ApiInputJson": "{\"Method\":\"GET\",\"Url\":\"https:\/\/api-qa-staging-2.oqsha.com\/Organisations\/264\/Users\/0\",\"Route\":\"\/Organisations\/264\/Users\/0\",\"Query\":\"\",\"Body\":\"\"}" }
{ "timestamp": "2026-07-06 07:55:29.2766", "level": "Error", "severity": "ERROR", "TraceId": "73f172d7-8c39-4f16-996e-881648f76f15", "message": "User details not found for the given user and organisation.", "stackTrace": "System.Exception: User details not found for the given user and organisation.", "ApiInput": {"Method":"GET","Url":"https://api-qa-staging-2.oqsha.com/Organisations/264/Users/0","Route":"/Organisations/264/Users/0","Query":"","Body":""}, "MethodName": "GetUserOrganisation", "EntryPoint": "API", "InputData": null, "TraceId": "73f172d7-8c39-4f16-996e-881648f76f15", "ApiInputJson": "{\"Method\":\"GET\",\"Url\":\"https:\/\/api-qa-staging-2.oqsha.com\/Organisations\/264\/Users\/0\",\"Route\":\"\/Organisations\/264\/Users\/0\",\"Query\":\"\",\"Body\":\"\"}" }
{ "timestamp": "2026-07-06 08:07:03.0823", "level": "Error", "severity": "ERROR", "TraceId": "5b8a0f42-492e-44b4-9eca-416b3aa9b50a", "message": "Unhandled Exception in Web API", "stackTrace": "System.OperationCanceledException: The operation was canceled.\r\n   at System.Threading.CancellationToken.ThrowOperationCanceledException()\r\n   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__0.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__2.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Controllers.ExceptionFilterResult.<ExecuteAsync>d__0.MoveNext()", "ApiInput": {"Method":"GET","Url":"https://api-qa-staging-2.oqsha.com/Health","Route":"/Health","Query":"","Body":""} }
{ "timestamp": "2026-07-06 08:31:17.3950", "level": "Error", "severity": "ERROR", "TraceId": "c09fcffa-698a-4446-a84b-076165a1e86a", "message": "Column 'created_by' cannot be null", "stackTrace": "MySql.Data.MySqlClient.MySqlException (0x80004005): Column 'created_by' cannot be null\r\n   at MySql.Data.MySqlClient.MySqlStream.ReadPacket()\r\n   at MySql.Data.MySqlClient.NativeDriver.GetResult(Int32& affectedRow, Int64& insertedId)\r\n   at MySql.Data.MySqlClient.Driver.NextResult(Int32 statementId, Boolean force)\r\n   at MySql.Data.MySqlClient.MySqlDataReader.NextResult()\r\n   at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)\r\n   at MySql.Data.MySqlClient.MySqlCommand.ExecuteNonQuery()\r\n   at Dapper.SqlMapper.ExecuteCommand(IDbConnection cnn, CommandDefinition& command, Action`2 paramReader)\r\n   at Dapper.SqlMapper.ExecuteImpl(IDbConnection cnn, CommandDefinition& command)\r\n   at Dapper.SqlMapper.Execute(IDbConnection cnn, String sql, Object param, IDbTransaction transaction, Nullable`1 commandTimeout, Nullable`1 commandType)\r\n   at IncidentReporter.DAL.Repositories.CoursesRepo.DeleteUserFromCoursesByOrgId(Int32 userId, Int32 orgId) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.DAL\\Repositories\\CoursesRepo.cs:line 3419\r\n   at IncidentReporter.API.BLL.UsersBLL.DeleteAllUserTypes(Int32 userId, Int32 orgId) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\BLL\\UsersBLL.cs:line 2548", "ApiInput": {"Method":"DELETE","Url":"https://api-qa-staging-2.oqsha.com/AllUserTypes/20095?OrgId=264","Route":"/AllUserTypes/20095","Query":"?OrgId=264","Body":""}, "MethodName": "DeleteAllUserTypes", "EntryPoint": "API", "InputData": null, "TraceId": "c09fcffa-698a-4446-a84b-076165a1e86a", "ApiInputJson": "{\"Method\":\"DELETE\",\"Url\":\"https:\/\/api-qa-staging-2.oqsha.com\/AllUserTypes\/20095?OrgId=264\",\"Route\":\"\/AllUserTypes\/20095\",\"Query\":\"?OrgId=264\",\"Body\":\"\"}" }
{ "timestamp": "2026-07-06 08:59:02.8049", "level": "Error", "severity": "ERROR", "message": "Missing batches or nominated users for this TNI. Cannot allocate.", "stackTrace": "System.InvalidOperationException: Missing batches or nominated users for this TNI. Cannot allocate.\r\n   at IncidentReporter.API.BLL.CoursesBLL.ProcessAllocationsInBackground(String connString, Int32 orgId, String organisationName, Int32 tniId, String tniName, Int32 currentUserId) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\BLL\\CoursesBLL.cs:line 6352", "MethodName": "ProcessAllocationsInBackground", "EntryPoint": "API", "InputData": null, "TraceId": null, "ApiInputJson": null }
{ "timestamp": "2026-07-06 08:59:24.7169", "level": "Error", "severity": "ERROR", "message": "Missing batches or nominated users for this TNI. Cannot allocate.", "stackTrace": "System.InvalidOperationException: Missing batches or nominated users for this TNI. Cannot allocate.\r\n   at IncidentReporter.API.BLL.CoursesBLL.ProcessAllocationsInBackground(String connString, Int32 orgId, String organisationName, Int32 tniId, String tniName, Int32 currentUserId) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\BLL\\CoursesBLL.cs:line 6352", "MethodName": "ProcessAllocationsInBackground", "EntryPoint": "API", "InputData": null, "TraceId": null, "ApiInputJson": null }
{ "timestamp": "2026-07-06 08:59:31.9276", "level": "Error", "severity": "ERROR", "message": "Missing batches or nominated users for this TNI. Cannot allocate.", "stackTrace": "System.InvalidOperationException: Missing batches or nominated users for this TNI. Cannot allocate.\r\n   at IncidentReporter.API.BLL.CoursesBLL.ProcessAllocationsInBackground(String connString, Int32 orgId, String organisationName, Int32 tniId, String tniName, Int32 currentUserId) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\BLL\\CoursesBLL.cs:line 6352", "MethodName": "ProcessAllocationsInBackground", "EntryPoint": "API", "InputData": null, "TraceId": null, "ApiInputJson": null }
{ "timestamp": "2026-07-06 09:05:11.4878", "level": "Error", "severity": "ERROR", "message": "Missing batches or nominated users for this TNI. Cannot allocate.", "stackTrace": "System.InvalidOperationException: Missing batches or nominated users for this TNI. Cannot allocate.\r\n   at IncidentReporter.API.BLL.CoursesBLL.ProcessAllocationsInBackground(String connString, Int32 orgId, String organisationName, Int32 tniId, String tniName, Int32 currentUserId) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\BLL\\CoursesBLL.cs:line 6352", "MethodName": "ProcessAllocationsInBackground", "EntryPoint": "API", "InputData": null, "TraceId": null, "ApiInputJson": null }
{ "timestamp": "2026-07-06 10:02:08.7967", "level": "Error", "severity": "ERROR", "TraceId": "da5133b3-2c69-43de-bbc4-bb239cc30fad", "message": "Unhandled Exception in Web API", "stackTrace": "System.OperationCanceledException: The operation was canceled.\r\n   at System.Threading.CancellationToken.ThrowOperationCanceledException()\r\n   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__0.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__2.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Controllers.ExceptionFilterResult.<ExecuteAsync>d__0.MoveNext()", "ApiInput": {"Method":"GET","Url":"https://api-qa-staging-2.oqsha.com/Users/11171/FieldStaffOrganisations/","Route":"/Users/11171/FieldStaffOrganisations/","Query":"","Body":""} }
{ "timestamp": "2026-07-06 10:02:08.7967", "level": "Error", "severity": "ERROR", "TraceId": "d8120ca7-6674-4117-b60e-eb13b3f37f38", "message": "Unhandled Exception in Web API", "stackTrace": "System.OperationCanceledException: The operation was canceled.\r\n   at System.Threading.CancellationToken.ThrowOperationCanceledException()\r\n   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__0.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__2.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Controllers.ExceptionFilterResult.<ExecuteAsync>d__0.MoveNext()", "ApiInput": {"Method":"GET","Url":"https://api-qa-staging-2.oqsha.com/Users/11171/Organisations/","Route":"/Users/11171/Organisations/","Query":"","Body":""} }
{ "timestamp": "2026-07-06 10:28:43.8574", "level": "Error", "severity": "ERROR", "TraceId": "2b8844fa-ab9f-48aa-b414-95f34964f2e6", "message": "Object reference not set to an instance of an object.", "stackTrace": "System.NullReferenceException: Object reference not set to an instance of an object.\r\n   at IncidentReporter.API.BLL.IncidentManagementBLL.<GetFIRRequestCounts>d__66.MoveNext() in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\BLL\\IncidentManagementBLL.cs:line 5694", "ApiInput": {"Method":"GET","Url":"https://api-qa-staging-2.oqsha.com/Organisations/152/IncidentManagement/Firs/Site/789/Counts?FromDate=2026-04-01&ToDate=2026-07-06","Route":"/Organisations/152/IncidentManagement/Firs/Site/789/Counts","Query":"?FromDate=2026-04-01&ToDate=2026-07-06","Body":""}, "MethodName": "GetFIRRequestCounts", "EntryPoint": "API", "InputData": null, "TraceId": "2b8844fa-ab9f-48aa-b414-95f34964f2e6", "ApiInputJson": "{\"Method\":\"GET\",\"Url\":\"https:\/\/api-qa-staging-2.oqsha.com\/Organisations\/152\/IncidentManagement\/Firs\/Site\/789\/Counts?FromDate=2026-04-01&ToDate=2026-07-06\",\"Route\":\"\/Organisations\/152\/IncidentManagement\/Firs\/Site\/789\/Counts\",\"Query\":\"?FromDate=2026-04-01&ToDate=2026-07-06\",\"Body\":\"\"}" }
{ "timestamp": "2026-07-06 10:32:00.4707", "level": "Error", "severity": "ERROR", "TraceId": "8d683785-dcc0-4560-9b09-a1b9aec86f4e", "message": "Object reference not set to an instance of an object.", "stackTrace": "System.NullReferenceException: Object reference not set to an instance of an object.\r\n   at IncidentReporter.API.BLL.IncidentManagementBLL.<GetFIRRequestCounts>d__66.MoveNext() in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\BLL\\IncidentManagementBLL.cs:line 5694", "ApiInput": {"Method":"GET","Url":"https://api-qa-staging-2.oqsha.com/Organisations/152/IncidentManagement/Firs/Site/789/Counts?FromDate=2026-04-01&ToDate=2026-07-06","Route":"/Organisations/152/IncidentManagement/Firs/Site/789/Counts","Query":"?FromDate=2026-04-01&ToDate=2026-07-06","Body":""}, "MethodName": "GetFIRRequestCounts", "EntryPoint": "API", "InputData": null, "TraceId": "8d683785-dcc0-4560-9b09-a1b9aec86f4e", "ApiInputJson": "{\"Method\":\"GET\",\"Url\":\"https:\/\/api-qa-staging-2.oqsha.com\/Organisations\/152\/IncidentManagement\/Firs\/Site\/789\/Counts?FromDate=2026-04-01&ToDate=2026-07-06\",\"Route\":\"\/Organisations\/152\/IncidentManagement\/Firs\/Site\/789\/Counts\",\"Query\":\"?FromDate=2026-04-01&ToDate=2026-07-06\",\"Body\":\"\"}" }
{ "timestamp": "2026-07-06 12:35:49.7483", "level": "Error", "severity": "ERROR", "TraceId": "3e5c80af-833a-408d-bf3b-f47531192591", "message": "Could not find file 'D:\\App-Data\\iis\\api-qa-staging.oqsha.com\\api-qa-staging.oqsha.com\\ExportSafetyKaizenV2PDFTemplate.html'.", "stackTrace": "System.IO.FileNotFoundException: Could not find file 'D:\\App-Data\\iis\\api-qa-staging.oqsha.com\\api-qa-staging.oqsha.com\\ExportSafetyKaizenV2PDFTemplate.html'.\r\nFile name: 'D:\\App-Data\\iis\\api-qa-staging.oqsha.com\\api-qa-staging.oqsha.com\\ExportSafetyKaizenV2PDFTemplate.html'\r\n   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)\r\n   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)\r\n   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)\r\n   at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize, Boolean checkHost)\r\n   at System.IO.File.InternalReadAllText(String path, Encoding encoding, Boolean checkHost)\r\n   at IncidentReporter.API.Helpers.ExportSafetyKaizenV2PdfHelper.ExportSafetyKaizenV2PDF(SafetyKaizenV2ResponseDto safetyKaizen, String organisationBannerRelativePath, Dictionary`2 userIdNameMap, Dictionary`2 associationNameMapByModuleId, String outputAbsoluteFilePath, String submittedByName) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\Helpers\\ExportSafetyKaizenV2PdfHelper.cs:line 108\r\n   at IncidentReporter.API.BLL.SafetyKaizenV2Bll.<ExportSafetyKaizenV2PDFAsync>d__8.MoveNext() in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\BLL\\SafetyKaizenV2BLL.cs:line 718", "ApiInput": {"Method":"GET","Url":"https://api-qa-staging-2.oqsha.com/Organisations/248/SafetyKaizenV2/97/Export","Route":"/Organisations/248/SafetyKaizenV2/97/Export","Query":"","Body":""}, "MethodName": "ExportSafetyKaizenV2PDFAsync", "EntryPoint": "API", "InputData": null, "TraceId": "3e5c80af-833a-408d-bf3b-f47531192591", "ApiInputJson": "{\"Method\":\"GET\",\"Url\":\"https:\/\/api-qa-staging-2.oqsha.com\/Organisations\/248\/SafetyKaizenV2\/97\/Export\",\"Route\":\"\/Organisations\/248\/SafetyKaizenV2\/97\/Export\",\"Query\":\"\",\"Body\":\"\"}" }
{ "timestamp": "2026-07-06 12:39:32.7795", "level": "Error", "severity": "ERROR", "TraceId": "d210e212-3850-4730-85f3-61e0f11089e6", "message": "Unhandled Exception in Web API", "stackTrace": "System.OperationCanceledException: The operation was canceled.\r\n   at System.Threading.CancellationToken.ThrowOperationCanceledException()\r\n   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__0.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__0.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__2.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Controllers.ExceptionFilterResult.<ExecuteAsync>d__0.MoveNext()", "ApiInput": {"Method":"GET","Url":"https://api-qa-staging-2.oqsha.com/Organisation/262/InspectionType/All?siteId=886&AssetTypeId=242","Route":"/Organisation/262/InspectionType/All","Query":"?siteId=886&AssetTypeId=242","Body":""} }
{ "timestamp": "2026-07-06 12:56:29.8512", "level": "Error", "severity": "ERROR", "message": "Missing batches or nominated users for this TNI. Cannot allocate.", "stackTrace": "System.InvalidOperationException: Missing batches or nominated users for this TNI. Cannot allocate.\r\n   at IncidentReporter.API.BLL.CoursesBLL.ProcessAllocationsInBackground(String connString, Int32 orgId, String organisationName, TrainingNeedIdentificationResponseDTO tniDetails, Int32 currentUserId) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\BLL\\CoursesBLL.cs:line 6355", "MethodName": "ProcessAllocationsInBackground", "EntryPoint": "API", "InputData": null, "TraceId": null, "ApiInputJson": null }
{ "timestamp": "2026-07-06 14:26:28.0811", "level": "Error", "severity": "ERROR", "TraceId": "ee615b39-91df-4178-ada5-8a8aa2440686", "message": "Unhandled Exception in Web API", "stackTrace": "System.OperationCanceledException: The operation was canceled.\r\n   at System.Threading.CancellationToken.ThrowOperationCanceledException()\r\n   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__0.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__2.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Controllers.ExceptionFilterResult.<ExecuteAsync>d__0.MoveNext()", "ApiInput": {"Method":"GET","Url":"https://api-qa-staging-2.oqsha.com/Languages","Route":"/Languages","Query":"","Body":""} }
{ "timestamp": "2026-07-06 14:26:28.0811", "level": "Error", "severity": "ERROR", "TraceId": "10570e7a-d9d9-4771-890d-da8c1fba5269", "message": "Unhandled Exception in Web API", "stackTrace": "System.OperationCanceledException: The operation was canceled.\r\n   at System.Threading.CancellationToken.ThrowOperationCanceledException()\r\n   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__0.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__2.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Controllers.ExceptionFilterResult.<ExecuteAsync>d__0.MoveNext()", "ApiInput": {"Method":"GET","Url":"https://api-qa-staging-2.oqsha.com/Modules/APIs","Route":"/Modules/APIs","Query":"","Body":""} }
