level: Error

severity: ERROR

stackTrace:
System.IO.FileNotFoundException: Could not find file 'D:\App-Data\iis\api.incidentreporter365.com\ExportSafetyKaizenV2PDFTemplate.html'.
File name: 'D:\App-Data\iis\api.incidentreporter365.com\ExportSafetyKaizenV2PDFTemplate.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 IncidentReporter.API.Helpers.ExportSafetyKaizenV2PdfHelper.ExportSafetyKaizenV2PDF(SafetyKaizenV2ResponseDto safetyKaizen, String organisationBannerRelativePath, Dictionary`2 userIdNameMap, Dictionary`2 associationNameMapByModuleId, String outputAbsoluteFilePath, String submittedByName) in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\Helpers\ExportSafetyKaizenV2PdfHelper.cs:line 108
   at IncidentReporter.API.BLL.SafetyKaizenV2Bll.<ExportSafetyKaizenV2PDFAsync>d__8.MoveNext() in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\SafetyKaizenV2BLL.cs:line 536


message: Could not find file 'D:\App-Data\iis\api.incidentreporter365.com\ExportSafetyKaizenV2PDFTemplate.html'.


message: The operation was canceled.

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


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


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


stackTrace:
System.InvalidOperationException: ActionTrackerUidFormatOptions not found in PageFlags
   at IncidentReporter.API.BLL.ActionTrackersBll.<PrepareUidPartsAsync>d__18.MoveNext() in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\ActionTrackersBll.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.ActionTrackersBll.<GenerateActionTrackerUidAsync>d__24.MoveNext() in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\ActionTrackersBll.cs:line 1897
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at IncidentReporter.API.BLL.ActionTrackersBll.<GenerateBulkUidsPerSite>d__22.MoveNext() in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\ActionTrackersBll.cs:line 1826
--- 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.ActionTrackersBll.<CreateActionTrackerAsync>d__6.MoveNext() in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\ActionTrackersBll.cs:line 180


message: ActionTrackerUidFormatOptions not found in PageFlags


stackTrace: System.Exception: Task Engine GET zip signed URL failed for batch 0dea14fe-2802-4cf4-9908-88fcad28c674. Status: NotFound, Body: {"type":"https://task-engine/problems/not-found","title":"Resource not found","status":404,"detail":"Batch 0dea14fe-2802-4cf4-9908-88fcad28c674 not found","instance":"/api/v1/batches/0dea14fe-2802-4cf4-9908-88fcad28c674/zip","error_code":"BATCH_NOT_FOUND","timestamp":"2026-05-25T10:28:33.830Z"}


stackTrace: System.Exception: Task Engine GET zip signed URL failed for batch 0dea14fe-2802-4cf4-9908-88fcad28c674. Status: NotFound, Body: {"type":"https://task-engine/problems/not-found","title":"Resource not found","status":404,"detail":"Batch 0dea14fe-2802-4cf4-9908-88fcad28c674 not found","instance":"/api/v1/batches/0dea14fe-2802-4cf4-9908-88fcad28c674/zip","error_code":"BATCH_NOT_FOUND","timestamp":"2026-05-25T10:32:58.826Z"}


stackTrace: System.Exception: Task Engine GET zip signed URL failed for batch 0dea14fe-2802-4cf4-9908-88fcad28c674. Status: NotFound, Body: {"type":"https://task-engine/problems/not-found","title":"Resource not found","status":404,"detail":"Batch 0dea14fe-2802-4cf4-9908-88fcad28c674 not found","instance":"/api/v1/batches/0dea14fe-2802-4cf4-9908-88fcad28c674/zip","error_code":"BATCH_NOT_FOUND","timestamp":"2026-05-25T10:36:37.557Z"}


stackTrace:
System.ArgumentException: An item with the same key has already been added.
   at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
   at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
   at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
   at IncidentReporter.API.BLL.OsmoguardBLL.<UpdateRoleAsync>d__12.MoveNext() in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\OsmoguardBLL.cs:line 509


message: An item with the same key has already been added.


stackTrace:
System.NullReferenceException: Object reference not set to an instance of an object.
   at IncidentReporter.API.BLL.ActionTrackersBll.<GetActionTrackerByIdAsync>d__8.MoveNext() in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\ActionTrackersBll.cs:line 977


stackTrace:
System.ArgumentException: An item with the same key has already been added.
   at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
   at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
   at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
   at IncidentReporter.API.BLL.OsmoguardBLL.<UpdateRoleAsync>d__12.MoveNext() in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\OsmoguardBLL.cs:line 499


stackTrace:
System.IO.FileNotFoundException: HTML template missing for Excavation Work category. Expected HTML template path: D:\App-Data\iis\api.incidentreporter365.com\Templates/PDFs\267\WorkPermitV2\ExcavationWork\ExportWorkPermitV2.html
File name: 'D:\App-Data\iis\api.incidentreporter365.com\Templates/PDFs\267\WorkPermitV2\ExcavationWork\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__8.MoveNext() in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\WorkPermitV2Bll.cs:line 791