PrintPackJobTask.RobotPack_Jobs

// Job ID: #68915e5292489d6c838e8d90
using OI.Service.HangfireTask.CreatePackJob;

var printPackJobTask = Activate<PrintPackJobTask>();
await printPackJobTask.RobotPack_Jobs(
    "67d9f6e2af648e0accf00131",
    "67eb6fb2a7ab950db8356830",
    "RC",
    "Rachel Cook",
    new { "68915e0d174cdec4ea3f3d3f", "68915e3b2b08356077ee297d", "68915e3b2b08356077ee297c", "68915e3b2b08356077ee297b" });
CurrentCulture
"en-US"
CurrentUICulture
"en-US"

State

8/5/2025 1:28:58 AM (+312ms) 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

+7.806s Processing

Server:
ip-0a0008b7:4372
Worker:
96dc2fa8

+6ms Enqueued

Queue:
default

8/5/2025 1:28:50 AM Created