Unhandled Exception in Web API

System.OperationCanceledException: The operation was canceled.
   at System.Threading.CancellationToken.ThrowOperationCanceledException()
   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>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.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>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.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>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.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Controllers.ExceptionFilterResult.<ExecuteAsync>d__0.MoveNext()


Unhandled Exception in Web API


Exception in Dhilog HTTP POST: An error occurred while sending the request.


Unhandled Exception in Web API

System.InvalidOperationException: The given header was not found.
   at System.Net.Http.Headers.HttpHeaders.GetValues(String name)
   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
   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
   at System.Web.Http.Filters.ActionFilterAttribute.OnActionExecutingAsync(HttpActionContext actionContext, CancellationToken cancellationToken)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>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 System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>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 System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>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 System.Web.Http.Controllers.ExceptionFilterResult.<ExecuteAsync>d__0.MoveNext()


An unexpected error occurred.

System.Exception: An unexpected error occurred.
   at IncidentReporter.API.BLL.IotDevicesBLL.<GetUnassociatedIotDeviceById>d__26.MoveNext() in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\IotDevicesBLL.cs:line 1299


System.Net.Http.HttpRequestException: Response status code does not indicate success: 400 (BAD REQUEST).
   at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
   at IncidentReporter.API.Helpers.SupersetClient.<PostGuestTokenAsync>d__15.MoveNext() in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\Helpers\SupersetClient.cs:line 95
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at IncidentReporter.API.Helpers.SupersetClient.<MintGuestTokenAsync>d__14.MoveNext() in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\Helpers\SupersetClient.cs:line 71
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at IncidentReporter.API.BLL.EmbedBll.<GetGuestTokenAsync>d__5.MoveNext() in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\EmbedBll.cs:line 120


System.Exception: User details not found for the given user and organisation.


Column 'created_by' cannot be null

MySql.Data.MySqlClient.MySqlException (0x80004005): Column 'created_by' cannot be null
   at MySql.Data.MySqlClient.MySqlStream.ReadPacket()
   at MySql.Data.MySqlClient.NativeDriver.GetResult(Int32& affectedRow, Int64& insertedId)
   at MySql.Data.MySqlClient.Driver.NextResult(Int32 statementId, Boolean force)
   at MySql.Data.MySqlClient.MySqlDataReader.NextResult()
   at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)
   at MySql.Data.MySqlClient.MySqlCommand.ExecuteNonQuery()
   at System.Data.Common.DbCommand.ExecuteNonQueryAsync(CancellationToken cancellationToken)
--- End of 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.<ExecuteImplAsync>d__39.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at IncidentReporter.DAL.Repositories.WorkPermitRepo.<InsertWorkPermitStatusAsync>d__70.MoveNext() in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\WorkPermitRepo.cs:line 2568
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at IncidentReporter.API.BLL.OrganisationBLL.<InsertDefaultModuleStatusesAsync>d__89.MoveNext() in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\OrganisationBLL.cs:line 16250
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at IncidentReporter.API.BLL.OrganisationBLL.<UpdateDashboardDetails>d__34.MoveNext() in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\OrganisationBLL.cs:line 1806


Question: ?PageNumber=1&PageLimit=10&SearchTerm=&SortingColumn=PermitToWorkStartDate&SortingOrder=desc&IsAdminUser=true


Column 'created_by' cannot be null


System.NullReferenceException: Object reference not set to an instance of an object.
   at IncidentReporter.API.BLL.RiskAssessmentBLL.<GetAllPendingWithForHira>d__62.MoveNext() in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\RiskAssessmentBLL.cs:line 4416
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at IncidentReporter.API.BLL.RiskAssessmentBLL.<GetAllRiskAssessments>d__17.MoveNext() in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\RiskAssessmentBLL.cs:line 1119


Unhandled Exception in Web API

System.OperationCanceledException: The operation was canceled.
   at System.Threading.CancellationToken.ThrowOperationCanceledException()
   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>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.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>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.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Controllers.ExceptionFilterResult.<ExecuteAsync>d__0.MoveNext()


System.Exception: The file path you provided is not Valid
   at DocumentService.Pdf.PdfDocumentGenerator.GeneratePdfByTemplate(String toolFolderAbsolutePath, String templatePath, List`1 metaDataList, String outputFilePath)
   at IncidentReporter.API.Helpers.ExportQualityManagementV2PDFHelper.ExportQualityManagementV2PDF(QualityManagementV2ResponseDto qmMgmt, String organisationName, String organisationBannerRelativePath, String outputAbsoluteFilePath, String moduleCustomName, String transitionHistoryJson) in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\Helpers\ExportQualityManagementV2PDFHelper.cs:line 214


Failed to send audit log: BadRequest
Request Payload: {"EntityTypeId":43,"EntityId":211,"ChangedBy":{"UserId":1955,"Name":null},"ChangeType":"Updated","OldValue":{"OrganisationId":"8G8U3R","OrganisationName":"Galecto Inc.","OrganisationType":"Construction","Packages":[{"PackageId":1,"InvoiceId":306,"StartDate":"2024-09-03T00:00:00","EndDate":"2024-09-18T00:00:00","OrganisationId":null,"IsActive":null,"CreatedOn":"0001-01-01T00:00:00","ModifiedOn":"0001-01-01T00:00:00","Comments":null},{"PackageId":1,"InvoiceId":308,"StartDate":"2024-09-04T00:00:00","EndDate":"2025-12-30T00:00:00","OrganisationId":null,"IsActive":null,"CreatedOn":"0001-01-01T00:00:00","ModifiedOn":"0001-01-01T00:00:00","Comments":""},{"PackageId":4,"InvoiceId":408,"StartDate":"2025-12-31T00:00:00","EndDate":"2026-12-31T00:00:00","OrganisationId":null,"IsActive":null,"CreatedOn":"0001-01-01T00:00:00","ModifiedOn":"0001-01-01T00:00:00","Comments":""}],"EnabledPayments":"No","EnableSMSNotifications":"No","EnableCallOut":"No","OrganisationModules":{"Action Trackers IsVisible":0,"Appointments IsVisible":0,"Areas IsVisible":0,"Assets IsVisible":1,"Attendance IsVisible":0,"Audit Management IsVisible":1,"Audit V2 IsVisible":1,"Breakdown Maintenance IsVisible":0,"Bulk Export IsVisible":1,"Companies IsVisible":1,"Consequence Management IsVisible":0,"Courses IsVisible":0,"Customer Complaints IsVisible":0,"Dashboard IsVisible":1,"Dashboard V2 IsVisible":0,"Departments IsVisible":0,"Employee Recognition IsVisible":0,"Environment Management IsVisible":1,"Esg IsVisible":0,"FIR IsVisible":0,"Health IsVisible":0,"Health V2 IsVisible":0,"Heatmap IsVisible":1,"HIRA IsVisible":1,"HIRA V2 IsVisible":0,"Incident Management IsVisible":1,"Inspection V2 IsVisible":0,"Inspections IsVisible":1,"Inventory IsVisible":0,"Investigations IsVisible":0,"IoT Device Types IsVisible":0,"IoT Devices IsVisible":0,"Kiken Yochi Training IsVisible":0,"KPI IsVisible":0,"Library IsVisible":0,"Library V2 IsVisible":0,"MOC IsVisible":0,"Moc V2 IsVisible":0,"My training IsVisible":0,"Nominations IsVisible":1,"Notifications IsVisible":0,"Oqo Chatbot IsVisible":0,"Organisations IsVisible":1,"OsmoVision IsVisible":0,"Periodic Health Checkup IsVisible":0,"Permit to work IsVisible":1,"PMC V2 IsVisible":0,"PPE Issuance IsVisible":1,"Pre Startup Safety Review IsVisible":0,"Precast IsVisible":1,"Preventive Maintenance IsVisible":0,"Processes IsVisible":0,"Projects IsVisible":0,"PSSR IsVisible":0,"Quality Management IsVisible":1,"r4 IsVisible":0,"r5 IsVisible":0,"r6 IsVisible":0,"Reports IsVisible":0,"Roles IsVisible":1,"Safety Alerts IsVisible":1,"Safety Kaizen IsVisible":0,"Safety Kaizen V2 IsVisible":0,"Sections IsVisible":0,"Setup IsVisible":1,"Sites IsVisible":1,"Support IsVisible":0,"Tasks IsVisible":1,"Tickets IsVisible":1,"TNI IsVisible":0,"TNI Progress IsVisible":0,"TNI V2 IsVisible":1,"Toolbox Talk IsVisible":0,"Training register IsVisible":0,"Training report IsVisible":0,"Users IsVisible":1,"Visitor Management IsVisible":0,"Work Permit IsVisible":1,"Work Permit V2 IsVisible":1,"Zones IsVisible":0},"PtwPreferences":null},"NewValue":{"OrganisationId":"8G8U3R","OrganisationName":"Galecto Inc.","OrganisationType":"Construction","Packages":[{"PackageId":1,"InvoiceId":306,"StartDate":"2024-09-03T00:00:00","EndDate":"2024-09-18T00:00:00","OrganisationId":null,"IsActive":null,"CreatedOn":"0001-01-01T00:00:00","ModifiedOn":"0001-01-01T00:00:00","Comments":null},{"PackageId":1,"InvoiceId":308,"StartDate":"2024-09-04T00:00:00","EndDate":"2025-12-30T00:00:00","OrganisationId":null,"IsActive":null,"CreatedOn":"0001-01-01T00:00:00","ModifiedOn":"0001-01-01T00:00:00","Comments":""},{"PackageId":4,"InvoiceId":408,"StartDate":"2025-12-31T00:00:00","EndDate":"2026-12-31T00:00:00","OrganisationId":null,"IsActive":null,"CreatedOn":"0001-01-01T00:00:00","ModifiedOn":"0001-01-01T00:00:00","Comments":""}],"EnabledPayments":"No","EnableSMSNotifications":"No","EnableCallOut":"No","OrganisationModules":{"Action Trackers IsVisible":0,"Appointments IsVisible":0,"Areas IsVisible":0,"Assets IsVisible":1,"Attendance IsVisible":0,"Audit Management IsVisible":1,"Audit V2 IsVisible":1,"Breakdown Maintenance IsVisible":0,"Bulk Export IsVisible":1,"Companies IsVisible":1,"Consequence Management IsVisible":0,"Courses IsVisible":0,"Customer Complaints IsVisible":0,"Dashboard IsVisible":1,"Dashboard V2 IsVisible":0,"Departments IsVisible":0,"Employee Recognition IsVisible":0,"Environment Management IsVisible":1,"Esg IsVisible":0,"FIR IsVisible":0,"Health IsVisible":0,"Health V2 IsVisible":0,"Heatmap IsVisible":1,"HIRA IsVisible":1,"HIRA V2 IsVisible":0,"Incident Management IsVisible":1,"Inspection V2 IsVisible":0,"Inspections IsVisible":1,"Inventory IsVisible":0,"Investigations IsVisible":0,"IoT Device Types IsVisible":0,"IoT Devices IsVisible":0,"Kiken Yochi Training IsVisible":0,"KPI IsVisible":0,"Library IsVisible":0,"Library V2 IsVisible":0,"MOC IsVisible":0,"Moc V2 IsVisible":0,"My training IsVisible":0,"Nominations IsVisible":1,"Notifications IsVisible":0,"Oqo Chatbot IsVisible":0,"Organisations IsVisible":1,"OsmoVision IsVisible":0,"Periodic Health Checkup IsVisible":0,"Permit to work IsVisible":1,"PMC V2 IsVisible":0,"PPE Issuance IsVisible":1,"Pre Startup Safety Review IsVisible":0,"Precast IsVisible":1,"Preventive Maintenance IsVisible":0,"Processes IsVisible":0,"Projects IsVisible":0,"PSSR IsVisible":0,"Quality Management IsVisible":1,"r4 IsVisible":0,"r5 IsVisible":0,"r6 IsVisible":0,"Reports IsVisible":0,"Roles IsVisible":1,"Safety Alerts IsVisible":1,"Safety Kaizen IsVisible":0,"Safety Kaizen V2 IsVisible":0,"Sections IsVisible":0,"Setup IsVisible":1,"Sites IsVisible":1,"Support IsVisible":0,"Tasks IsVisible":1,"Tickets IsVisible":1,"TNI IsVisible":0,"TNI Progress IsVisible":0,"TNI V2 IsVisible":1,"Toolbox Talk IsVisible":0,"Training register IsVisible":0,"Training report IsVisible":0,"Users IsVisible":1,"Visitor Management IsVisible":0,"Work Permit IsVisible":1,"Work Permit V2 IsVisible":1,"Zones IsVisible":0},"PtwPreferences":null}}
API Response: {"type":"https://tools.ietf.org/html/rfc9110#section-15.5.1","title":"One or more validation errors occurred.","status":400,"errors":{"ChangedBy.Name":["The Name field is required."]},"traceId":"00-18fd6a52ee366cc12b655b82554d0ecf-cd74e598b21f7e27-00"}


Failed to send log to Dhilog: 429 | {"type":"about:blank","title":"Too Many Requests","status":429,"detail":"ThrottlerException: Too Many Requests","instance":"/api/v1/ingest/logs","error_code":"RATE_LIMITED"}

Answer: ds

Answer: ds


Answer: ds

Answer: ds


Answer: ds

Answer: ds


Answer: ds

Answer: ds


Answer: ds

Answer: ds


Answer: ds

Answer: ds


Answer: ds

Answer: ds


Answer: ds

Answer: ds


Nullable object must have a value.

System.InvalidOperationException: Nullable object must have a value.
   at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
   at IncidentReporter.API.BLL.PtwBLL.<GetWorkPermitDetailsByPermitId>d__13.MoveNext() in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\PtwBLL.cs:line 0


Nullable object must have a value.


System.IO.FileNotFoundException: Fallback PDF template missing. Expected HTML template path: D:\App-Data\iis\api-qa-staging.oqsha.com\api-qa-staging.oqsha.com\Templates/PDFs\211\WorkPermitV2\GenericWork\ExportWorkPermitV2.html
File name: 'D:\App-Data\iis\api-qa-staging.oqsha.com\api-qa-staging.oqsha.com\Templates/PDFs\211\WorkPermitV2\GenericWork\ExportWorkPermitV2.html'
   at IncidentReporter.API.Helpers.WorkPermitV2PDFHelper.ResolveTemplatePath(String baseDir, String templatesRoot, String orgId, String module, String categoryFolder, String fileName) in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\Helpers\WorkPermitV2PDFHelper.cs:line 89
   at IncidentReporter.API.Helpers.WorkPermitV2PDFHelper.<ExportWorkPermitV2PDFAsync>d__1.MoveNext() in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\Helpers\WorkPermitV2PDFHelper.cs:line 0
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at IncidentReporter.API.BLL.WorkPermitV2Bll.<ExportWorkPermitV2PDFAsync>d__11.MoveNext() in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\WorkPermitV2Bll.cs:line 1542


[DateStamper] Exception occurred while processing file D:\App-Data\iis\api-qa-staging.oqsha.com\api-qa-staging.oqsha.com\attachments\211\incident-management\image_1785842274855_2026-08-04_11-17-56-1756_3b926db3-06ad-44a8-8ddd-cffc1f9ff32c.jpeg: 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))
   at ImageMagick.Environment.NativeMethods.X64.Environment_SetEnv(IntPtr name, IntPtr value)
   at ImageMagick.Environment.NativeEnvironment.SetEnv(String name, String value)
   at ImageMagick.MagickNET.InitializeConfiguration(ConfigurationFiles configFiles, String newPath)
   at ImageMagick.Environment.NativeMethods.X64..cctor()
   --- End of inner exception stack trace ---
   at ImageMagick.Environment.NativeMethods.X64.Environment_Initialize()
   at ImageMagick.Environment.Initialize()
   at ImageMagick.MagickSettings.NativeMagickSettings..cctor()
   --- End of inner exception stack trace ---
   at ImageMagick.MagickSettings.NativeMagickSettings..ctor()
   at ImageMagick.MagickSettings..ctor()
   at ImageMagick.MagickImage..ctor()
   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

*** MULTIPART FORM DATA / FILE UPLOAD (OMITTED FOR LOGGING) ***


Answer: test

Answer: test


Answer: test

Answer: test


Answer: test

Answer: test


Answer: test

Answer: test


Answer: test

Answer: test


Answer: test

Answer: test


Answer: test

Answer: test


Answer: test

Answer: test


Answer: test

Answer: test


Answer: test

Answer: test


Answer: test

Answer: test


Answer: test

Answer: test


Answer: test

Answer: test


Answer: test

Answer: test


Answer: test

Answer: test


[DateStamper] Exception occurred while processing file D:\App-Data\iis\api-qa-staging.oqsha.com\api-qa-staging.oqsha.com\attachments\248\tasks\history\image1785842628474_6a95508c-6944-44d3-83e6-425702be0ee8.jpeg: 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))
   at ImageMagick.Environment.NativeMethods.X64.Environment_SetEnv(IntPtr name, IntPtr value)
   at ImageMagick.Environment.NativeEnvironment.SetEnv(String name, String value)
   at ImageMagick.MagickNET.InitializeConfiguration(ConfigurationFiles configFiles, String newPath)
   at ImageMagick.Environment.NativeMethods.X64..cctor()
   --- End of inner exception stack trace ---
   at ImageMagick.Environment.NativeMethods.X64.Environment_Initialize()
   at ImageMagick.Environment.Initialize()
   at ImageMagick.MagickSettings.NativeMagickSettings..cctor()
   --- End of inner exception stack trace ---
   at ImageMagick.MagickSettings.NativeMagickSettings..ctor()
   at ImageMagick.MagickSettings..ctor()
   at ImageMagick.MagickImage..ctor()
   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


Unhandled Exception in Web API


Required fall protection systems in place.

Workers using required fall protection systems.

Hoisting and rigging operations performed in a safe manner.

Wearing safety glasses or goggles when pouring concrete?

Concrete washout water, collection, containment, disposal.

All workers have received basic Hazard Communication training?

MSDSs are available on the site for cement and related products used?

ELCB/RCCB provided for Needle Vibrators?

Proper Edge protection provided in concrete area?

All vibrators/lights electrical cables laid above 7� (feet) height?

Proper Access/egress provided in concrete pour area?

Is Proper Bracing provide for slab supporting props/Posts?

Is Eye Wash area provided near to concrete poring area?

Verification of Pumping equipment�s are inspected prior to start?


[DateStamper] Exception occurred while processing file D:\App-Data\iis\api-qa-staging.oqsha.com\api-qa-staging.oqsha.com\attachments\207\incidents\images\Image65_c2fd226f-bdef-45c5-9dd3-6602e25e1758.jpg: 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))
   at ImageMagick.Environment.NativeMethods.X64.Environment_SetEnv(IntPtr name, IntPtr value)
   at ImageMagick.Environment.NativeEnvironment.SetEnv(String name, String value)
   at ImageMagick.MagickNET.InitializeConfiguration(ConfigurationFiles configFiles, String newPath)
   at ImageMagick.Environment.NativeMethods.X64..cctor()
   --- End of inner exception stack trace ---
   at ImageMagick.Environment.NativeMethods.X64.Environment_Initialize()
   at ImageMagick.Environment.Initialize()
   at ImageMagick.MagickSettings.NativeMagickSettings..cctor()
   --- End of inner exception stack trace ---
   at ImageMagick.MagickSettings.NativeMagickSettings..ctor()
   at ImageMagick.MagickSettings..ctor()
   at ImageMagick.MagickImage..ctor()
   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


[DateStamper] Exception occurred while processing file D:\App-Data\iis\api-qa-staging.oqsha.com\api-qa-staging.oqsha.com\attachments\207\incidents\Image63_8f9ffafd-3c60-4ec2-b1ee-6f100c531be2.jpg: 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))
   at ImageMagick.Environment.NativeMethods.X64.Environment_SetEnv(IntPtr name, IntPtr value)
   at ImageMagick.Environment.NativeEnvironment.SetEnv(String name, String value)
   at ImageMagick.MagickNET.InitializeConfiguration(ConfigurationFiles configFiles, String newPath)
   at ImageMagick.Environment.NativeMethods.X64..cctor()
   --- End of inner exception stack trace ---
   at ImageMagick.Environment.NativeMethods.X64.Environment_Initialize()
   at ImageMagick.Environment.Initialize()
   at ImageMagick.MagickSettings.NativeMagickSettings..cctor()
   --- End of inner exception stack trace ---
   at ImageMagick.MagickSettings.NativeMagickSettings..ctor()
   at ImageMagick.MagickSettings..ctor()
   at ImageMagick.MagickImage..ctor()
   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


[DateStamper] Exception occurred while processing file D:\App-Data\iis\api-qa-staging.oqsha.com\api-qa-staging.oqsha.com\attachments\207\incidents\images\Image64_82eb358c-11de-4d77-ac3e-3c108f7594b4.jpg: 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))
   at ImageMagick.Environment.NativeMethods.X64.Environment_SetEnv(IntPtr name, IntPtr value)
   at ImageMagick.Environment.NativeEnvironment.SetEnv(String name, String value)
   at ImageMagick.MagickNET.InitializeConfiguration(ConfigurationFiles configFiles, String newPath)
   at ImageMagick.Environment.NativeMethods.X64..cctor()
   --- End of inner exception stack trace ---
   at ImageMagick.Environment.NativeMethods.X64.Environment_Initialize()
   at ImageMagick.Environment.Initialize()
   at ImageMagick.MagickSettings.NativeMagickSettings..cctor()
   --- End of inner exception stack trace ---
   at ImageMagick.MagickSettings.NativeMagickSettings..ctor()
   at ImageMagick.MagickSettings..ctor()
   at ImageMagick.MagickImage..ctor()
   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


[DateStamper] Exception occurred while processing file D:\App-Data\iis\api-qa-staging.oqsha.com\api-qa-staging.oqsha.com\attachments\207\incidents\Image51_89d9154b-2015-4853-9dae-2a9dd29c87b3.jpg: 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))
   at ImageMagick.Environment.NativeMethods.X64.Environment_SetEnv(IntPtr name, IntPtr value)
   at ImageMagick.Environment.NativeEnvironment.SetEnv(String name, String value)
   at ImageMagick.MagickNET.InitializeConfiguration(ConfigurationFiles configFiles, String newPath)
   at ImageMagick.Environment.NativeMethods.X64..cctor()
   --- End of inner exception stack trace ---
   at ImageMagick.Environment.NativeMethods.X64.Environment_Initialize()
   at ImageMagick.Environment.Initialize()
   at ImageMagick.MagickSettings.NativeMagickSettings..cctor()
   --- End of inner exception stack trace ---
   at ImageMagick.MagickSettings.NativeMagickSettings..ctor()
   at ImageMagick.MagickSettings..ctor()
   at ImageMagick.MagickImage..ctor()
   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


[DateStamper] Exception occurred while processing file D:\App-Data\iis\api-qa-staging.oqsha.com\api-qa-staging.oqsha.com\attachments\207\incidents\images\Image62_44f565b4-4759-4a20-9d19-180d822346ab.jpg: 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))
   at ImageMagick.Environment.NativeMethods.X64.Environment_SetEnv(IntPtr name, IntPtr value)
   at ImageMagick.Environment.NativeEnvironment.SetEnv(String name, String value)
   at ImageMagick.MagickNET.InitializeConfiguration(ConfigurationFiles configFiles, String newPath)
   at ImageMagick.Environment.NativeMethods.X64..cctor()
   --- End of inner exception stack trace ---
   at ImageMagick.Environment.NativeMethods.X64.Environment_Initialize()
   at ImageMagick.Environment.Initialize()
   at ImageMagick.MagickSettings.NativeMagickSettings..cctor()
   --- End of inner exception stack trace ---
   at ImageMagick.MagickSettings.NativeMagickSettings..ctor()
   at ImageMagick.MagickSettings..ctor()
   at ImageMagick.MagickImage..ctor()
   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


The file path you provided is not Valid

System.Exception: The file path you provided is not Valid
   at DocumentService.Pdf.PdfDocumentGenerator.GeneratePdfByTemplate(String toolFolderAbsolutePath, String templatePath, List`1 metaDataList, String outputFilePath)
   at IncidentReporter.API.Helpers.ExportPtwPDFHelper.ExportPtwPDF(PermitToWorkExportDBO ptw, String organisationBannerRelativePath, String organisationName, String outputAbsoluteFilePath, String templateFile, String timeZone, UserExistsInSiteAndCompanyDBO userExistsData, List`1 sectionsGroupedByJobType, PtwPreferences ptwOrgPreference) in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\Helpers\ExportPtwPDFHelper.cs:line 304
   at IncidentReporter.API.BLL.PtwBLL.<ExportPtwPDF>d__76.MoveNext() in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\PtwBLL.cs:line 6185

Question: ?Export=true

Question: ?Export=true


The file path you provided is not Valid

Question: ?Export=true

Question: ?Export=true


The file path you provided is not Valid

Question: ?Export=true

Question: ?Export=true


The file path you provided is not Valid

Question: ?Export=true

Question: ?Export=true


The file path you provided is not Valid

Question: ?Export=true

Question: ?Export=true


The file path you provided is not Valid

Question: ?Export=true

Question: ?Export=true


The file path you provided is not Valid

Question: ?Export=true

Question: ?Export=true


The file path you provided is not Valid

Question: ?Export=true

Question: ?Export=true


The file path you provided is not Valid

Question: ?Export=true

Question: ?Export=true


The file path you provided is not Valid

Question: ?Export=true

Question: ?Export=true


The file path you provided is not Valid

Question: ?Export=true

Question: ?Export=true


The file path you provided is not Valid

Question: ?Export=true

Question: ?Export=true


The file path you provided is not Valid

Question: ?Export=true

Question: ?Export=true


The file path you provided is not Valid

Question: ?Export=true

Question: ?Export=true


The file path you provided is not Valid

Question: ?Export=true

Question: ?Export=true


The file path you provided is not Valid

Question: ?Export=true

Question: ?Export=true


The file path you provided is not Valid

Question: ?Export=true

Question: ?Export=true


The file path you provided is not Valid

Question: ?Export=true

Question: ?Export=true


The file path you provided is not Valid

Question: ?Export=true

Question: ?Export=true


The file path you provided is not Valid

Question: ?Export=true

Question: ?Export=true


The file path you provided is not Valid

Question: ?Export=true

Question: ?Export=true


The file path you provided is not Valid

Question: ?Export=true

Question: ?Export=true


The file path you provided is not Valid

Question: ?Export=true

Question: ?Export=true


The file path you provided is not Valid

Question: ?Export=true

Question: ?Export=true


The file path you provided is not Valid

Question: ?Export=true

Question: ?Export=true


The file path you provided is not Valid

Question: ?Export=true

Question: ?Export=true


The file path you provided is not Valid

Question: ?Export=true

Question: ?Export=true


The file path you provided is not Valid

Question: ?Export=true

Question: ?Export=true


The file path you provided is not Valid

Question: ?Export=true

Question: ?Export=true


Question: ?Export=true


The file path you provided is not Valid

Question: ?Export=true

Question: ?Export=true


Question: ?Export=true


The file path you provided is not Valid

Question: ?Export=true

Question: ?Export=true


Question: ?Export=true


The file path you provided is not Valid

Question: ?Export=true

Question: ?Export=true


Question: ?Export=true


The file path you provided is not Valid

Question: ?Export=true

Question: ?Export=true


Question: ?Export=true


The file path you provided is not Valid

Question: ?Export=true

Question: ?Export=true


Question: ?Export=true


The file path you provided is not Valid

Question: ?Export=true

Question: ?Export=true


Question: ?Export=true


The file path you provided is not Valid

Question: ?Export=true

Question: ?Export=true


Question: ?Export=true


The file path you provided is not Valid

Question: ?Export=true

Question: ?Export=true


Question: ?Export=true


The file path you provided is not Valid

Question: ?Export=true

Question: ?Export=true


Question: ?Export=true


The file path you provided is not Valid

Question: ?Export=true

Question: ?Export=true


Question: ?Export=true


The file path you provided is not Valid

Question: ?Export=true

Question: ?Export=true


Question: ?Export=true


The file path you provided is not Valid

Question: ?Export=true

Question: ?Export=true


Question: ?Export=true


The file path you provided is not Valid

Question: ?Export=true

Question: ?Export=true


Question: ?Export=true


The file path you provided is not Valid

Question: ?Export=true

Question: ?Export=true


Question: ?Export=true


The file path you provided is not Valid

Question: ?Export=true

Question: ?Export=true


Question: ?Export=true


The file path you provided is not Valid

Question: ?Export=true

Question: ?Export=true


The file path you provided is not Valid

Question: ?Export=true

Question: ?Export=true


The file path you provided is not Valid

Question: ?Export=true

Question: ?Export=true


The file path you provided is not Valid

Question: ?Export=true

Question: ?Export=true


The file path you provided is not Valid

Question: ?Export=true

Question: ?Export=true


The file path you provided is not Valid

Question: ?Export=true

Question: ?Export=true


The file path you provided is not Valid

Question: ?Export=true

Question: ?Export=true


The file path you provided is not Valid

Question: ?Export=true

Question: ?Export=true


The file path you provided is not Valid

Question: ?Export=true

Question: ?Export=true


The file path you provided is not Valid

Question: ?Export=true

Question: ?Export=true


Failed to send audit log: BadRequest
Request Payload: {"EntityTypeId":43,"EntityId":211,"ChangedBy":{"UserId":1955,"Name":null},"ChangeType":"Updated","OldValue":{"OrganisationId":"8G8U3R","OrganisationName":"Galecto Inc.","OrganisationType":"Construction","Packages":[{"PackageId":1,"InvoiceId":306,"StartDate":"2024-09-03T00:00:00","EndDate":"2024-09-18T00:00:00","OrganisationId":null,"IsActive":null,"CreatedOn":"0001-01-01T00:00:00","ModifiedOn":"0001-01-01T00:00:00","Comments":null},{"PackageId":1,"InvoiceId":308,"StartDate":"2024-09-04T00:00:00","EndDate":"2025-12-30T00:00:00","OrganisationId":null,"IsActive":null,"CreatedOn":"0001-01-01T00:00:00","ModifiedOn":"0001-01-01T00:00:00","Comments":""},{"PackageId":4,"InvoiceId":408,"StartDate":"2025-12-31T00:00:00","EndDate":"2026-12-31T00:00:00","OrganisationId":null,"IsActive":null,"CreatedOn":"0001-01-01T00:00:00","ModifiedOn":"0001-01-01T00:00:00","Comments":""}],"EnabledPayments":"No","EnableSMSNotifications":"No","EnableCallOut":"No","OrganisationModules":{"Action Trackers IsVisible":0,"Appointments IsVisible":0,"Areas IsVisible":0,"Assets IsVisible":1,"Attendance IsVisible":0,"Audit Management IsVisible":1,"Audit V2 IsVisible":1,"Breakdown Maintenance IsVisible":0,"Bulk Export IsVisible":1,"Companies IsVisible":1,"Consequence Management IsVisible":0,"Courses IsVisible":0,"Customer Complaints IsVisible":0,"Dashboard IsVisible":1,"Dashboard V2 IsVisible":0,"Departments IsVisible":0,"Employee Recognition IsVisible":0,"Environment Management IsVisible":1,"Esg IsVisible":0,"FIR IsVisible":0,"Health IsVisible":0,"Health V2 IsVisible":0,"Heatmap IsVisible":1,"HIRA IsVisible":1,"HIRA V2 IsVisible":0,"Incident Management IsVisible":1,"Inspection V2 IsVisible":0,"Inspections IsVisible":1,"Inventory IsVisible":0,"Investigations IsVisible":0,"IoT Device Types IsVisible":0,"IoT Devices IsVisible":0,"Kiken Yochi Training IsVisible":0,"KPI IsVisible":0,"Library IsVisible":0,"Library V2 IsVisible":0,"MOC IsVisible":0,"Moc V2 IsVisible":0,"My training IsVisible":0,"Nominations IsVisible":1,"Notifications IsVisible":0,"Oqo Chatbot IsVisible":0,"Organisations IsVisible":1,"OsmoVision IsVisible":0,"Periodic Health Checkup IsVisible":0,"Permit to work IsVisible":1,"PMC V2 IsVisible":0,"PPE Issuance IsVisible":1,"Pre Startup Safety Review IsVisible":0,"Precast IsVisible":1,"Preventive Maintenance IsVisible":0,"Processes IsVisible":0,"Projects IsVisible":0,"PSSR IsVisible":0,"Quality Management IsVisible":1,"r4 IsVisible":0,"r5 IsVisible":0,"r6 IsVisible":0,"Reports IsVisible":0,"Roles IsVisible":1,"Safety Alerts IsVisible":1,"Safety Kaizen IsVisible":0,"Safety Kaizen V2 IsVisible":0,"Sections IsVisible":0,"Setup IsVisible":1,"Sites IsVisible":1,"Support IsVisible":0,"Tasks IsVisible":1,"Tickets IsVisible":1,"TNI IsVisible":0,"TNI Progress IsVisible":0,"TNI V2 IsVisible":1,"Toolbox Talk IsVisible":0,"Training register IsVisible":0,"Training report IsVisible":0,"Users IsVisible":1,"Visitor Management IsVisible":0,"Work Permit IsVisible":1,"Work Permit V2 IsVisible":1,"Zones IsVisible":0},"PtwPreferences":null},"NewValue":{"OrganisationId":"8G8U3R","OrganisationName":"Galecto Inc.","OrganisationType":"Construction","Packages":[{"PackageId":1,"InvoiceId":306,"StartDate":"2024-09-03T00:00:00","EndDate":"2024-09-18T00:00:00","OrganisationId":null,"IsActive":null,"CreatedOn":"0001-01-01T00:00:00","ModifiedOn":"0001-01-01T00:00:00","Comments":null},{"PackageId":1,"InvoiceId":308,"StartDate":"2024-09-04T00:00:00","EndDate":"2025-12-30T00:00:00","OrganisationId":null,"IsActive":null,"CreatedOn":"0001-01-01T00:00:00","ModifiedOn":"0001-01-01T00:00:00","Comments":""},{"PackageId":4,"InvoiceId":408,"StartDate":"2025-12-31T00:00:00","EndDate":"2026-12-31T00:00:00","OrganisationId":null,"IsActive":null,"CreatedOn":"0001-01-01T00:00:00","ModifiedOn":"0001-01-01T00:00:00","Comments":""}],"EnabledPayments":"No","EnableSMSNotifications":"No","EnableCallOut":"No","OrganisationModules":{"Action Trackers IsVisible":0,"Appointments IsVisible":0,"Areas IsVisible":0,"Assets IsVisible":1,"Attendance IsVisible":0,"Audit Management IsVisible":1,"Audit V2 IsVisible":1,"Breakdown Maintenance IsVisible":0,"Bulk Export IsVisible":1,"Companies IsVisible":1,"Consequence Management IsVisible":0,"Courses IsVisible":0,"Customer Complaints IsVisible":0,"Dashboard IsVisible":1,"Dashboard V2 IsVisible":0,"Departments IsVisible":0,"Employee Recognition IsVisible":0,"Environment Management IsVisible":1,"Esg IsVisible":0,"FIR IsVisible":0,"Health IsVisible":0,"Health V2 IsVisible":0,"Heatmap IsVisible":1,"HIRA IsVisible":1,"HIRA V2 IsVisible":0,"Incident Management IsVisible":1,"Inspection V2 IsVisible":0,"Inspections IsVisible":1,"Inventory IsVisible":0,"Investigations IsVisible":0,"IoT Device Types IsVisible":0,"IoT Devices IsVisible":0,"Kiken Yochi Training IsVisible":0,"KPI IsVisible":0,"Library IsVisible":0,"Library V2 IsVisible":0,"MOC IsVisible":0,"Moc V2 IsVisible":0,"My training IsVisible":0,"Nominations IsVisible":1,"Notifications IsVisible":0,"Oqo Chatbot IsVisible":0,"Organisations IsVisible":1,"OsmoVision IsVisible":0,"Periodic Health Checkup IsVisible":0,"Permit to work IsVisible":1,"PMC V2 IsVisible":0,"PPE Issuance IsVisible":1,"Pre Startup Safety Review IsVisible":0,"Precast IsVisible":1,"Preventive Maintenance IsVisible":0,"Processes IsVisible":0,"Projects IsVisible":0,"PSSR IsVisible":0,"Quality Management IsVisible":1,"r4 IsVisible":0,"r5 IsVisible":0,"r6 IsVisible":0,"Reports IsVisible":0,"Roles IsVisible":1,"Safety Alerts IsVisible":1,"Safety Kaizen IsVisible":0,"Safety Kaizen V2 IsVisible":0,"Sections IsVisible":0,"Setup IsVisible":1,"Sites IsVisible":1,"Support IsVisible":0,"Tasks IsVisible":1,"Tickets IsVisible":1,"TNI IsVisible":0,"TNI Progress IsVisible":0,"TNI V2 IsVisible":1,"Toolbox Talk IsVisible":0,"Training register IsVisible":0,"Training report IsVisible":0,"Users IsVisible":1,"Visitor Management IsVisible":0,"Work Permit IsVisible":1,"Work Permit V2 IsVisible":1,"Zones IsVisible":0},"PtwPreferences":null}}
API Response: {"type":"https://tools.ietf.org/html/rfc9110#section-15.5.1","title":"One or more validation errors occurred.","status":400,"errors":{"ChangedBy.Name":["The Name field is required."]},"traceId":"00-bd3ca97d6e11db7ff1857ec937527311-f9d8ae16556c2d88-00"}


Unhandled Exception in Web API

System.OperationCanceledException: The operation was canceled.
   at System.Threading.CancellationToken.ThrowOperationCanceledException()
   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>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.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>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.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>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.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>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.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>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.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Controllers.ExceptionFilterResult.<ExecuteAsync>d__0.MoveNext()