System.InvalidOperationException: JSReport render failed. Status: 404. Response: {"message":"Unable to find specified template (Drop Survey Checklist)","stack":"Error: Unable to find specified template (Drop Survey Checklist)\n  at module.exports (/app/node_modules/@jsreport/jsreport-core/lib/shared/createError.js:10:13)\n  at WorkerReporter.createError (/app/node_modules/@jsreport/jsreport-core/lib/shared/reporter.js:53:12)\n  at AsyncFunction.<anonymous> (/app/node_modules/@jsreport/jsreport-core/lib/worker/templates.js:51:28)\n  at async ListenerCollection.fire (/app/node_modules/@jsreport/jsreport-core/lib/shared/listenerCollection.js:157:21)\n  at async beforeRender (/app/node_modules/@jsreport/jsreport-core/lib/worker/render/render.js:24:5)\n  at async WorkerReporter._render (/app/node_modules/@jsreport/jsreport-core/lib/worker/render/render.js:147:7)\n  at async /app/node_modules/@jsreport/jsreport-core/lib/worker/reporter.js:234:24\n  at async processAndResponse (/app/node_modules/@jsreport/advanced-workers/lib/workerHandler.js:42:17)"}
   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 77
--- End of 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 895


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 914


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


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


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


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


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


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


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


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


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


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


Request URL : https://api-sandbox.oqsha.com/Organisations/264/TaskCategories/Dropdown


Request URL : https://api-sandbox.oqsha.com/Organisations/264/Training/Counts


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


Request Body : {"SiteId":["846","845"],"UserId":678}


Request Body : {"SiteIds":["846","845"],"FromDate":"2026-04-01","ToDate":"2026-06-04"}


Request URL : https://api-sandbox.oqsha.com/Organisations/264/Divisions/Dropdown


Request URL : https://api-sandbox.oqsha.com/Organisations/264/Incidents/Counts


Request URL : https://api-sandbox.oqsha.com/Organisations/264/Tasks/List/Counts


Request URL : https://api-sandbox.oqsha.com/Organisations/264/KPI/PlantMaster/Sites/Counts


Request URL : https://api-sandbox.oqsha.com/Organisations/264/Inspections/Counts


Request URL : https://api-sandbox.oqsha.com/Organisations/264/PermitToWork/All/Sites/Counts


Request URL : https://api-sandbox.oqsha.com/Organisations/264/IncidentManagement/Firs/Counts


Request URL : https://api-sandbox.oqsha.com/Organisations/264/Courses/Counts


Request URL : https://api-sandbox.oqsha.com/Organisations/264/ManagementOfChangeList/Counts


Request Body : {"SiteIds":["846","845"],"FromDate":"2026-04-01","ToDate":"2026-06-04","CategoryId":[]}


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


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


Request URL : https://api-sandbox.oqsha.com/Organisation/262/Users/DropDown?siteId=881&siteId=883&siteId=886&siteId=884&siteId=841&siteId=888&siteId=887&siteId=882&siteId=889&siteId=885


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


Request Body : {"SiteIds":["846","845"]}


Request URL : https://api-sandbox.oqsha.com/Organisation/264/KPI/PlantMasterDropdown


Request URL : https://api-sandbox.oqsha.com/Organisation/264/KPI/EmployeeMasterDropdown


Request Body : {"OrgId":[264],"SiteId":["846","845"]}


Request Body : {"SiteIds":[881,883,886,884,841,888,887,882,889,885],"PageNumber":1,"PageLimit":1000,"UserId":267}


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


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


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


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


Request Body : {"SiteIds":[841],"PageNumber":1,"PageLimit":1000,"UserId":267}


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


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


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


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


Request URL : https://api-sandbox.oqsha.com/Transition-History?orgId=262&ModuleId=87&EntityId=41


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


Request URL : https://api-sandbox.oqsha.com/Organisations/262/InspectionV2/41/Export


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


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