Failed to send audit log: BadRequest
Request Payload: {"EntityTypeId":43,"EntityId":264,"ChangedBy":{"UserId":678,"Name":null},"ChangeType":"Updated","OldValue":{"OrganisationId":"5682F8","OrganisationName":"Neveu","OrganisationType":"Warehouse","Packages":[{"PackageId":1,"InvoiceId":425,"StartDate":"2026-03-30T00:00:00","EndDate":"2027-06-28T00:00:00","OrganisationId":null,"IsActive":null,"CreatedOn":"0001-01-01T00:00:00","ModifiedOn":"0001-01-01T00:00:00","Comments":null}],"EnabledPayments":"No","EnableSMSNotifications":"No","EnableCallOut":"No","OrganisationModules":{"Action Trackers IsVisible":1,"Appointments IsVisible":0,"Areas IsVisible":0,"Assets IsVisible":0,"Attendance IsVisible":0,"Audit Management IsVisible":1,"Audit V2 IsVisible":0,"Breakdown Maintenance IsVisible":0,"Bulk Export IsVisible":0,"Companies IsVisible":1,"Consequence Management IsVisible":0,"Courses IsVisible":1,"Customer Complaints IsVisible":0,"Dashboard IsVisible":1,"Dashboard V2 IsVisible":1,"Departments IsVisible":1,"Employee Recognition IsVisible":0,"Environment Management IsVisible":0,"Esg IsVisible":0,"FIR IsVisible":1,"Health IsVisible":0,"Health V2 IsVisible":0,"Heatmap IsVisible":0,"HIRA IsVisible":0,"HIRA V2 IsVisible":0,"Incident Management IsVisible":0,"Inspection V2 IsVisible":0,"Inspections IsVisible":0,"Inventory IsVisible":0,"Investigations IsVisible":1,"IoT Device Types IsVisible":0,"IoT Devices IsVisible":0,"Kiken Yochi Training IsVisible":1,"KPI IsVisible":0,"Library IsVisible":0,"Library V2 IsVisible":1,"MOC IsVisible":0,"Moc V2 IsVisible":0,"My training IsVisible":1,"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":0,"PMC V2 IsVisible":0,"PPE Issuance IsVisible":0,"Pre Startup Safety Review IsVisible":0,"Preventive Maintenance IsVisible":0,"Processes IsVisible":0,"Projects IsVisible":0,"PSSR IsVisible":0,"Quality Management IsVisible":0,"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":1,"Setup IsVisible":1,"Sites IsVisible":1,"Support IsVisible":0,"Tasks IsVisible":0,"Tickets IsVisible":0,"TNI IsVisible":1,"TNI Progress IsVisible":1,"TNI V2 IsVisible":0,"Toolbox Talk IsVisible":1,"Training register IsVisible":1,"Training report IsVisible":1,"Users IsVisible":1,"Visitor Management IsVisible":0,"Work Permit IsVisible":0,"Work Permit V2 IsVisible":1,"Zones IsVisible":0},"PtwPreferences":null},"NewValue":{"OrganisationId":"5682F8","OrganisationName":"Neveu","OrganisationType":"Warehouse","Packages":[{"PackageId":1,"InvoiceId":425,"StartDate":"2026-03-30T00:00:00","EndDate":"2027-06-28T00:00:00","OrganisationId":null,"IsActive":null,"CreatedOn":"0001-01-01T00:00:00","ModifiedOn":"0001-01-01T00:00:00","Comments":null}],"EnabledPayments":"No","EnableSMSNotifications":"No","EnableCallOut":"No","OrganisationModules":{"Action Trackers IsVisible":1,"Appointments IsVisible":0,"Areas IsVisible":0,"Assets IsVisible":0,"Attendance IsVisible":0,"Audit Management IsVisible":1,"Audit V2 IsVisible":0,"Breakdown Maintenance IsVisible":0,"Bulk Export IsVisible":0,"Companies IsVisible":1,"Consequence Management IsVisible":0,"Courses IsVisible":1,"Customer Complaints IsVisible":0,"Dashboard IsVisible":1,"Dashboard V2 IsVisible":1,"Departments IsVisible":1,"Employee Recognition IsVisible":0,"Environment Management IsVisible":0,"Esg IsVisible":0,"FIR IsVisible":1,"Health IsVisible":0,"Health V2 IsVisible":0,"Heatmap IsVisible":0,"HIRA IsVisible":0,"HIRA V2 IsVisible":0,"Incident Management IsVisible":0,"Inspection V2 IsVisible":0,"Inspections IsVisible":0,"Inventory IsVisible":0,"Investigations IsVisible":1,"IoT Device Types IsVisible":0,"IoT Devices IsVisible":0,"Kiken Yochi Training IsVisible":1,"KPI IsVisible":0,"Library IsVisible":0,"Library V2 IsVisible":1,"MOC IsVisible":0,"Moc V2 IsVisible":0,"My training IsVisible":1,"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":0,"PMC V2 IsVisible":0,"PPE Issuance IsVisible":0,"Pre Startup Safety Review IsVisible":0,"Preventive Maintenance IsVisible":0,"Processes IsVisible":0,"Projects IsVisible":0,"PSSR IsVisible":0,"Quality Management IsVisible":0,"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":1,"Setup IsVisible":1,"Sites IsVisible":1,"Support IsVisible":0,"Tasks IsVisible":0,"Tickets IsVisible":0,"TNI IsVisible":1,"TNI Progress IsVisible":1,"TNI V2 IsVisible":0,"Toolbox Talk IsVisible":1,"Training register IsVisible":1,"Training report IsVisible":1,"Users IsVisible":1,"Visitor Management IsVisible":0,"Work Permit IsVisible":0,"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-440dcf259ef1a3f3d9b307779f572cdb-62095b3d83c17072-00"}


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.ExportPreStartupSafetyReviewPdfHelper.ExportPssrPdf(PreStartupSafetyReviewResponseDto pssr, MocDBO associatedMoc, List`1 associatedTasks, List`1 pssrHistory, String organisationBannerRelativePath, String outputAbsoluteFilePath) in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\Helpers\ExportPreStartupSafetyReviewPdfHelper.cs:line 191
   at IncidentReporter.API.BLL.PreStartupSafetyReviewBLL.<ExportPreStartupSafetyReviewPdfAsync>d__15.MoveNext() in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\PreStartupSafetyReviewBLL.cs:line 1020


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.ExportWorkPermitPDFHelper.ExportWorkPermitPDF(WorkPermitExportDTO workPermit, String organisationBannerRelativePath, String organisationName, String outputAbsoluteFilePath, String timeZone, Boolean EnableTwoColumnsBasicDetails) in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\Helpers\ExportWorkPermitPDFHelper.cs:line 837
   at IncidentReporter.API.BLL.WorkPermitBLL.<ExportWorkPermitPdfAsync>d__52.MoveNext() in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\WorkPermitBLL.cs:line 4215


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.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


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.ExportEnvironmentManagementV2PDFHelper.ExportEnvironmentManagementV2PDF(EnvironmentManagementV2ResponseDto envMgmt, 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\ExportEnvironmentManagementV2PDFHelper.cs:line 214


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.ExportMocV2PDFHelper.ExportMocV2PDF(MocV2ResponseDto mocV2, 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\ExportMocV2PDFHelper.cs:line 202


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


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()

Question: ?SortingColumn=Name&SortingOrder=Asc&SiteId=779&SiteId=776&SiteId=774&SiteId=787&SiteId=777&SiteId=773&SiteId=778&SiteId=775


Unhandled Exception in Web API

Question: ?siteId=779&siteId=776&siteId=774&siteId=787&siteId=777&siteId=773&siteId=778&siteId=775


Unhandled Exception in Web API


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.InvalidOperationException: JSReport render failed. Status: 404. Response: {"type":"about:blank","title":"Not Found","status":404,"detail":"Template 77ee5787-26e0-4143-af71-16ee1d0954a8 not found","instance":"/api/v1/render","error_code":"NOT_FOUND"}
   at IncidentReporter.API.Helpers.JsReportUtils.<RenderPdfAsync>d__0.MoveNext() in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\Helpers\JsReportUtils.cs:line 70
--- End of 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.InspectionV2Bll.<ExportInspectionV2PDFAsync>d__8.MoveNext() in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\InspectionV2Bll.cs:line 881


System.IO.FileNotFoundException: Could not find file 'D:\App-Data\iis\api.incidentreporter365.com\Templates\ExportInspectionV2PDFTemplate.html'.
File name: 'D:\App-Data\iis\api.incidentreporter365.com\Templates\ExportInspectionV2PDFTemplate.html'
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   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)
   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)
   at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize, Boolean checkHost)
   at System.IO.File.InternalReadAllText(String path, Encoding encoding, Boolean checkHost)
   at InspectionV2PDFHelper.<ExportInspectionV2PDFAsync>d__1.MoveNext() in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\Helpers\InspectionV2PDFHelper.cs:line 82
--- End of 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.InspectionV2Bll.<ExportInspectionV2PDFAsync>d__8.MoveNext() in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\InspectionV2Bll.cs:line 900


System.InvalidOperationException: JSReport render failed. Status: 404. Response: {"type":"about:blank","title":"Not Found","status":404,"detail":"Template dc9e756b-c209-4743-8c06-9ed3a1d47933 not found","instance":"/api/v1/render","error_code":"NOT_FOUND"}
   at IncidentReporter.API.Helpers.JsReportUtils.<RenderPdfAsync>d__0.MoveNext() in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\Helpers\JsReportUtils.cs:line 70
--- End of 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.InspectionV2Bll.<ExportInspectionV2PDFAsync>d__8.MoveNext() in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\InspectionV2Bll.cs:line 881


System.InvalidOperationException: JSReport render failed. Status: 404. Response: {"type":"about:blank","title":"Not Found","status":404,"detail":"Template a1725a9a-850f-4a3a-a4ba-95b8d71fcd08 not found","instance":"/api/v1/render","error_code":"NOT_FOUND"}
   at IncidentReporter.API.Helpers.JsReportUtils.<RenderPdfAsync>d__0.MoveNext() in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\Helpers\JsReportUtils.cs:line 70
--- End of 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.PdfExportSwitchHelper.<TryRenderPdfViaJsReportAsync>d__0.MoveNext() in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\Helpers\PdfExportSwitchHelper.cs:line 64


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.ExportBreakdownMaintenancePDFHelper.ExportBreakdownMaintenancePDF(BreakdownMaintenanceResponseDto breakdownMaintenance, 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\ExportBreakdownMaintenancePDFHelper.cs:line 217


Unhandled Exception in Web Application

System.Web.HttpException (0x80004005): A potentially dangerous Request.Path value was detected from the client (&).
   at System.Web.HttpRequest.ValidateInputIfRequiredByConfig()
   at System.Web.HttpApplication.PipelineStepManager.ValidateHelper(HttpContext context)


Unhandled Exception in Web Application


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


An unexpected error occurred.


Unhandled Exception in Web Application

System.Web.HttpException (0x80004005): A potentially dangerous Request.Path value was detected from the client (:).
   at System.Web.HttpRequest.ValidateInputIfRequiredByConfig()
   at System.Web.HttpApplication.PipelineStepManager.ValidateHelper(HttpContext context)