System.InvalidOperationException: JSReport render failed. Status: 404. Response: {"type":"about:blank","title":"Not Found","status":404,"detail":"Template 522c9570-d630-4b39-92d5-d27e992a8fae 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.<RenderViaJsReportAsync>d__2.MoveNext() in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\Helpers\PdfExportSwitchHelper.cs:line 119


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


[CreateTask] Started for OrgId: 248


[CreateTask] Step 1 - Initial setup: 0ms


[CreateTask] Step 2 - Fetch organization: 2ms


[CreateTask] Step 3 - Get task module ID: 0ms


[CreateTask] Step 4 - Fetch organization preferences: 1ms


[CreateTask] Step 6 - Begin transaction: 0ms


[CreateTask] Processing SiteId: 708


[CreateTask] Step 7 - Validate input for SiteId 708: 0ms


[CreateTask] Step 8 - Create task object: 0ms


[CreateTask] Step 9 - Fetch site and module details: 0ms


[CreateTask] Step 10 - Determine task category: 0ms


[CreateTask] Step 11 - Get task category short code: 0ms


[CreateTask] Step 12 - Generate task UID: 20ms


[CreateTask] Step 13 - Insert task into database (TaskId: 17628): 1ms


[CreateTask] Step 14 - Associate PSSR: 0ms


[CreateTask] Step 15 - Parse task association flag: 0ms


[CreateTask] Step 16 - Associate MOC: 0ms


[CreateTask] Step 17 - Associate Audit: 0ms


[CreateTask] Step 18 - Associate HIRA: 0ms


[CreateTask] Step 19 - Associate Investigation: 0ms


[CreateTask] Step 20 - Associate Ticket: 0ms


[CreateTask] Step 21 - Process checklist data: 5ms


[CreateTask] Step 22 - Insert assignees: 0ms


[CreateTask] Step 23 - Process asset IDs: 0ms


Audit log sent successfully.


[CreateTask] Step 25 - Process child task details: 85ms


Notification is within the configured time window. OrgId: 248


[CreateTask] Step 26 - Send assignee notifications: 4ms


[CreateTask] Step 28 - Fetch assignees and log audit: 10ms


[CreateTask] Total time for SiteId 708: 138ms


[CreateTask] Step 29 - Commit transaction: 0ms


[CreateTask] Step 30 - Send status update emails: 0ms


[CreateTask] Completed successfully for OrgId: 248. Total execution time: 152ms


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


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


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


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


Request Body : {"SiteId":[],"UserId":267}


Request URL : https://api-sandbox.oqsha.com/Organisation/248/Users/DropDown?ModuleName=Tasks&siteId=708&siteId=744&siteId=707&siteId=705&siteId=709&siteId=706


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


Request Body : {}


Request URL : https://api-sandbox.oqsha.com/Organisations/264/Safety-Alerts/1774/Export