System.InvalidOperationException: JSReport render failed. Status: 404. Response: {"type":"about:blank","title":"Not Found","status":404,"detail":"Template fe64163b-d5e4-4528-b618-4a076de31763 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__10.MoveNext() in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\InspectionV2Bll.cs:line 986


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__10.MoveNext() in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\InspectionV2Bll.cs:line 1005


Request URL : https://api-sandbox.oqsha.com/Resources/package-features-eng


Request URL : https://api-sandbox.oqsha.com/Organisations/232


Request URL : https://api-sandbox.oqsha.com/Organisations/232/Departments?SortingColumn=Name&SortingOrder=Asc&SiteId=662


Request URL : https://api-sandbox.oqsha.com/Organisations/232/Modules/85/Categories/All


Request URL : https://api-sandbox.oqsha.com/Organisations/232/Modules/85/Workflows/States/Types


Request Body : {"PageNumber":1,"PageLimit":1000,"UserId":3978}


Request URL : https://api-sandbox.oqsha.com/Organisations/232/WorkPermitV2/All


Request URL : https://api-sandbox.oqsha.com/Organisation/232/AccessControl/Roles


Request Body : {"PageNumber":1,"PageLimit":1000,"SiteIds":[662],"IsPublished":true,"UserId":3978}


Request URL : https://api-sandbox.oqsha.com/Organisations/232/Contractors/All?siteIds=662&IsActive=1


Request URL : https://api-sandbox.oqsha.com/PtwStatuses?orgId=232


Request URL : https://api-sandbox.oqsha.com/Organisation/232/User/3978/JobTypes


Request URL : https://api-sandbox.oqsha.com/Organisations/232/PermitToWork/All


Request URL : https://api-sandbox.oqsha.com/Organisations/257/Users/267


Request URL : https://api-sandbox.oqsha.com/Organisation/257/Modules


Request URL : https://api-sandbox.oqsha.com/Organisation/257/Embed/Dashboards


Request URL : https://api-sandbox.oqsha.com/Organisation/257/Embed/GuestToken


Request URL : https://api-sandbox.oqsha.com/Organisations/257


Request URL : https://api-sandbox.oqsha.com/Languages


Request URL : https://api-sandbox.oqsha.com/Organisations/257/PendingActionsNotifications


Request Body : {"resourceType":"master_dashboard","resourceUuid":"1"}


Request URL : https://api-sandbox.oqsha.com/AccessControl/Modules/257


Request URL : https://api-sandbox.oqsha.com/Dashboard/Organisations/257/SideMenu


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


Request URL : https://api-sandbox.oqsha.com/Organisations/257/Reports/Dashboards


Request URL : https://api-sandbox.oqsha.com/Organisation/262/Users/DropDown?ModuleName=Inspection V2&isActive=true


Request URL : https://api-sandbox.oqsha.com/Organisations/257/Zones


Request URL : https://api-sandbox.oqsha.com/Organisations/262/Departments


Request Body : {"SiteId":[],"SearchTerm":"","SortingColumn":["Name"],"SortingOrder":["asc"],"PageNumber":1,"PageSize":1000}


Request URL : https://api-sandbox.oqsha.com/Organisation/257/AccessControl/Roles


Request URL : https://api-sandbox.oqsha.com/Organisations/257/Zones/Sites


Request URL : https://api-sandbox.oqsha.com/Organisations/257/Company/All?&IsActive=1


Request Body : {"ZoneIds":[2,1]}


Request URL : https://api-sandbox.oqsha.com/Organisations/257/Departments?SiteIds=804&SiteIds=803&SiteIds=802


Request URL : https://api-sandbox.oqsha.com/Organisations/232


Request URL : https://api-sandbox.oqsha.com/Organisations/232/User/3978/PTWCompany


Request URL : https://api-sandbox.oqsha.com/Organisation/232/User/3978/JobTypes


Request URL : https://api-sandbox.oqsha.com/Organisations/232/PermitToWork/ShiftTimings


Request URL : https://api-sandbox.oqsha.com/Organisations/232/PermitToWork/422509?extensionRequestedDate=2026-08-04


Request URL : https://api-sandbox.oqsha.com/Organisations/232/PermitToWork/422509/PermitToWorkHistory


Request URL : https://api-sandbox.oqsha.com/Users


Request URL : https://api-sandbox.oqsha.com/Organisations/232/Users/3978


Request URL : https://api-sandbox.oqsha.com/Organisations/232/DefaultCompany


Request Body : {"OrgId":[257],"PageNumber":1,"PageLimit":10,"SortingColumn":["CreatedOn"],"SortingOrder":["desc"],"SearchTerm":""}


Request URL : https://api-sandbox.oqsha.com/PtwStatuses?Level=2&orgId=232


Request URL : https://api-sandbox.oqsha.com/Organisations/232/GetUsersResponse/422509


Request URL : https://api-sandbox.oqsha.com/Organisations/232/Departments?SortingColumn=Name&SortingOrder=Asc&SiteId=662


Request URL : https://api-sandbox.oqsha.com/Assets?OrgId=232&LocationId=662&SortingColumn=UniqueAssetId&SortingOrder=asc&IsActive=true


Request URL : https://api-sandbox.oqsha.com/Organisations/232/PtwConfig?siteId=662&jobTypeIds=199


Request URL : https://api-sandbox.oqsha.com/Organisation/232/UsersByJobTypesAndCompany?companyId=478&jobTypeIds=199


Request URL : https://api-sandbox.oqsha.com/Organisations/232/PermitToWork/UserExistsInSiteAndCompany?siteId=662&companyId=478


Request URL : https://api-sandbox.oqsha.com/Organisations/232/PermitToWork/UsersByRole?ptwJobDesignationId=2&siteId=662&companyId=478&jobTypeIds=199


Request URL : https://api-sandbox.oqsha.com/Organisations/232/PermitToWork/UsersByRole?ptwJobDesignationId=3&siteId=662&companyId=478&jobTypeIds=199


Request URL : https://api-sandbox.oqsha.com/Organisations/232/PermitToWork/UsersByRole?ptwJobDesignationId=4&siteId=662&companyId=478&jobTypeIds=199


Request URL : https://api-sandbox.oqsha.com/Organisation/257/Users/DropDown?ModuleName=undefined&isActive=true


Request URL : https://api-sandbox.oqsha.com/Organisations/257/Designations


Request URL : https://api-sandbox.oqsha.com/Organisations/257


Request URL : https://api-sandbox.oqsha.com/Countries


Request URL : https://api-sandbox.oqsha.com/Organisations/257/Contractors/All?&IsActive=1


Request URL : https://api-sandbox.oqsha.com/Assets/AssetTypes?OrgId=257&SortingOrder=asc&SortingColumn=Name


Request URL : https://api-sandbox.oqsha.com/Organisations/257/Section/All


Request Body : {"SiteIds":[804,803,802],"DepartmentIds":[],"SearchTerm":"","SortingColumn":["name"],"SortingOrder":["asc"],"PageNumber":1,"PageSize":1000}


Request URL : https://api-sandbox.oqsha.com/Organisations/257/Users/267


Request URL : https://api-sandbox.oqsha.com/Organisations/257/Departments


Request URL : https://api-sandbox.oqsha.com/Organisations/257/Divisions/Dropdown?SiteId=804&SiteId=803&SiteId=802


Request URL : https://api-sandbox.oqsha.com/Organisations/257/Users/12102


Request URL : https://api-sandbox.oqsha.com/Organisation/257/CompanyTypes


Request URL : https://api-sandbox.oqsha.com/Organisation/257/AccessControl/Roles


Request URL : https://api-sandbox.oqsha.com/Organisations/257/DefaultCompany


Request URL : https://api-sandbox.oqsha.com/Organisations/257/Contractors/All?&siteIds=804&siteIds=803&siteIds=802&IsActive=1


Request URL : https://api-sandbox.oqsha.com/Organisation/257/ModulePermissions?RoleIds=525


Request URL : https://api-sandbox.oqsha.com/Organisation/257/Users/ModuleTypes?SiteIds=804&SiteIds=803&SiteIds=802&AcmRoleId=525


Request URL : https://api-sandbox.oqsha.com/Organisations/257/Safety-Alerts/All


Request URL : https://api-sandbox.oqsha.com/Organisations/257/Users/12102/History


Request URL : https://api-sandbox.oqsha.com/Resources/eng?orgId=257


Request URL : https://api-sandbox.oqsha.com/AccessControl/Modules/257


Request URL : https://api-sandbox.oqsha.com/Resources/package-features-eng


Request URL : https://api-sandbox.oqsha.com/Health


Request URL : https://api-sandbox.oqsha.com/Organisation/257/Users/DropDown?ModuleName=undefined&isActive=true


Request URL : https://api-sandbox.oqsha.com/Organisations/257/Designations


Request URL : https://api-sandbox.oqsha.com/Organisations/257/Users/267


Request URL : https://api-sandbox.oqsha.com/Organisations/257


Request URL : https://api-sandbox.oqsha.com/Organisation/257/Modules


Request URL : https://api-sandbox.oqsha.com/Organisations/257/PendingActionsNotifications


Request URL : https://api-sandbox.oqsha.com/Languages


Request URL : https://api-sandbox.oqsha.com/Countries


Request URL : https://api-sandbox.oqsha.com/Organisations/257/Contractors/All?&IsActive=1


Request URL : https://api-sandbox.oqsha.com/Dashboard/Organisations/257/SideMenu


Request URL : https://api-sandbox.oqsha.com/Assets/AssetTypes?OrgId=257&SortingOrder=asc&SortingColumn=Name


Request URL : https://api-sandbox.oqsha.com/Organisations/257/Reports/Dashboards


Request URL : https://api-sandbox.oqsha.com/Organisations/257/Section/All


Request Body : {"SiteIds":[],"DepartmentIds":[],"SearchTerm":"","SortingColumn":["name"],"SortingOrder":["asc"],"PageNumber":1,"PageSize":1000}


Request URL : https://api-sandbox.oqsha.com/Organisations/257/Departments


Request URL : https://api-sandbox.oqsha.com/Organisations/257/Divisions/Dropdown?SiteId=804&SiteId=803&SiteId=802


Request URL : https://api-sandbox.oqsha.com/Organisation/257/AccessControl/Roles


Request URL : https://api-sandbox.oqsha.com/Organisation/257/CompanyTypes


Request URL : https://api-sandbox.oqsha.com/Organisations/257/Contractors/All?&siteIds=804&siteIds=803&siteIds=802&IsActive=1


Request URL : https://api-sandbox.oqsha.com/Organisations/257/DefaultCompany


Request URL : https://api-sandbox.oqsha.com/Organisation/257/ModulePermissions?RoleIds=457&RoleIds=492&RoleIds=528&RoleIds=525&RoleIds=527&RoleIds=494&RoleIds=493


Request URL : https://api-sandbox.oqsha.com/Organisations/257/Safety-Alerts/All


Request URL : https://api-sandbox.oqsha.com/Organisations/257/Users/267/History


Request URL : https://api-sandbox.oqsha.com/Organisations/257


Request URL : https://api-sandbox.oqsha.com/Organisations/257/Zones


Request URL : https://api-sandbox.oqsha.com/Organisations/257/Users/267


Request URL : https://api-sandbox.oqsha.com/Organisations/257/Zones/Sites


Request Body : {"ZoneIds":[2,1]}


Request URL : https://api-sandbox.oqsha.com/Organisations/257/Departments?SiteIds=804&SiteIds=803&SiteIds=802


Request URL : https://api-sandbox.oqsha.com/Organisations/257/Company/All?&IsActive=1


Request URL : https://api-sandbox.oqsha.com/Users


Request Body : {"OrgId":[257],"PageNumber":1,"PageLimit":10,"SortingColumn":["CreatedOn"],"SortingOrder":["desc"],"SearchTerm":""}


Request URL : https://api-sandbox.oqsha.com/Organisation/262/AccessControl/Roles


Request URL : https://api-sandbox.oqsha.com/Organisations/262/Modules/87/Workflows/States/Types


Request URL : https://api-sandbox.oqsha.com/Organisations/262/Departments


Request URL : https://api-sandbox.oqsha.com/Trigger-Configs/Dropdowns


Request URL : https://api-sandbox.oqsha.com/Organisations/262/Modules/87/Categories/104