PrintPackJobTask.RobotPack_Jobs

// Job ID: #688c54f1a93fe482e2f606af
using OI.Service.HangfireTask.CreatePackJob;

var printPackJobTask = Activate<PrintPackJobTask>();
await printPackJobTask.RobotPack_Jobs(
    "649923d0f65a8813a473b052",
    "64cae9c5f65a8810846f1bb3",
    "AlisonP",
    "Alison Priestley",
    new { "688c54a31356eac12007328c", "688c54c21356eac1200732f6", "688c54c21356eac1200732f5" });
CurrentCulture
"en-US"
CurrentUICulture
"en-US"

State

8/1/2025 5:47:30 AM (+264ms) Failed

An exception occurred during performance of the job.

System.IndexOutOfRangeException

Index was outside the bounds of the array.

System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at OI.Service.HangfireTask.CreatePackJob.PrintPackJobTask.RecordVPB(List`1& updVPBalances, List`1& newVPBalances, List`1& newVPHistories, Patient patient, String jobId, List`1 prescriptionIds, PackingFoil packingFoil, Int32 numWeek, DateTime packStartDate, Dictionary`2 doseAllocated, List`1 headings) in C:\Program Files (x86)\Jenkins\workspace\myPak-webjob-live\OI\OI.Service\HangfireTask\CreatePackJob\PrintPackJobTask.cs:line 897
   at OI.Service.HangfireTask.CreatePackJob.PrintPackJobTask.<UpdateVPBalance>d__57.MoveNext() in C:\Program Files (x86)\Jenkins\workspace\myPak-webjob-live\OI\OI.Service\HangfireTask\CreatePackJob\PrintPackJobTask.cs:line 724
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
   at OI.Service.HangfireTask.CreatePackJob.PrintPackJobTask.<RobotPack_Jobs>d__52.MoveNext() in C:\Program Files (x86)\Jenkins\workspace\myPak-webjob-live\OI\OI.Service\HangfireTask\CreatePackJob\PrintPackJobTask.cs:line 325

+90ms Processing

Server:
ip-0a0008b7:1496
Worker:
acb46953

+5ms Enqueued

Queue:
default

8/1/2025 5:47:29 AM Created