PrintPackJobTask.RobotPack_Jobs

// Job ID: #6892c9138764a44efa0372e8
using OI.Service.HangfireTask.CreatePackJob;

var printPackJobTask = Activate<PrintPackJobTask>();
await printPackJobTask.RobotPack_Jobs(
    "67ae853d08efed117c7d211c",
    "67ae9cdf08efed117c9e77b1",
    "MiaTBw",
    "Mia Thompson",
    new { "6892c8e6ba053b945f3f3432", "6892c8f52875926d4569bbe6", "6892c8c64b42a95d4effff67", "6892c8d74b42a95d4e000342", "6892c8a8ba053b945f3f338e", "6892c8b7ba053b945f3f33f0" });
CurrentCulture
"en-US"
CurrentUICulture
"en-US"

State

8/6/2025 3:16:35 AM (+234ms) 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

+176ms Processing

Server:
ip-0a0008f6:1344
Worker:
8fe6163f

+7ms Enqueued

Queue:
default

8/6/2025 3:16:35 AM Created