PrintPackJobTask.RobotPack_Jobs

// Job ID: #689ac5f39e33cfe1206851dc
using OI.Service.HangfireTask.CreatePackJob;

var printPackJobTask = Activate<PrintPackJobTask>();
await printPackJobTask.RobotPack_Jobs(
    "6847a67c08efed091064bb23",
    "68676584fa5b362fe4b2640c",
    "kowtharm",
    "Kowthar  Mahmod",
    new { "689ac5c4334168d7fa1ab253", "689ac5eb334168d7fa1abb6b", "689ac5eb334168d7fa1abb6a" });
CurrentCulture
"en-US"
CurrentUICulture
"en-US"

State

8/12/2025 4:41:32 AM (+326ms) 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

+8.396s Processing

Server:
ip-0a0008f6:3404
Worker:
9d60517d

+6ms Enqueued

Queue:
default

8/12/2025 4:41:23 AM Created