// Job ID: #69ba1c18d70c9c7186718c25
using OI.Service.HangfireTask.CreatePackJob;
var createPackJobTask = Activate<CreatePackJobTask>();
await createPackJobTask.CreatePackJob(
"664bfec9d222d902740e5f5b",
"666a4183d222d912b86465b8",
"VH",
new { "666bf48f8222d30790e37239", "666bf4908222d30790e37334", "666bf4908222d30790e37396", "666bf4908222d30790e3740c", "666bf4908222d30790e3744a", "666bf4918222d30790e37502", "666bf4918222d30790e375b8", "666bf4918222d30790e376d6", "666bf4928222d30790e3793b", "666bf6455ac25f0bdcc949e4", "6684b543d222d90ef426016f", "668e56948222d31194596fb0", "668f32fe5ac25f0770fae66c", "66e8d0c58222d30fb45b796c", "67590b7da7ab950f8cc7cacd", "68ad1794ea0f1832c673df17", "68e466b774679c3cfc73e74a", "68f0442de450274dff4e32c9", "69786834ce2a0113bdbd7342" },
FromJson<PrintFoilOpions>("{\"PrintPrescriptionIds\":[],\"ExportOrders\":true,\"FoildIds\":[\"666bf48f8222d30790e37239\",\"666bf4908222d30790e37334\",\"666bf4908222d30790e37396\",\"666bf4908222d30790e3740c\",\"666bf4908222d30790e3744a\",\"666bf4918222d30790e37502\",\"666bf4918222d30790e375b8\",\"666bf4918222d30790e376d6\",\"666bf4928222d30790e3793b\",\"666bf6455ac25f0bdcc949e4\",\"6684b543d222d90ef426016f\",\"668e56948222d31194596fb0\",\"668f32fe5ac25f0770fae66c\",\"66e8d0c58222d30fb45b796c\",\"67590b7da7ab950f8cc7cacd\",\"68ad1794ea0f1832c673df17\",\"68e466b774679c3cfc73e74a\",\"68f0442de450274dff4e32c9\",\"69786834ce2a0113bdbd7342\"],\"GenerateBarcode\":true,\"IsCollatedCopies\":false,\"IsCytotoxic\":false,\"IsPrintAll\":false,\"IsPRN\":false,\"IsS4N\":false,\"IsS8\":false,\"IsShortCourse\":false,\"IsSinemet\":false,\"IsWarfarin\":false,\"NumberOfCopies\":0,\"NumberOfWeek\":2,\"PartWeekPack\":7,\"PackStartDate\":\"2026-03-30T02:00:00Z\",\"PrintDate\":\"2026-03-18T02:00:00Z\",\"CurrentUserId\":\"666a4183d222d912b86465b8\",\"Client\":0,\"SpecificPrinting\":false,\"StartPosiion\":0,\"SkipPhoto\":false,\"ExpiryDate\":\"2026-05-13T03:00:00Z\",\"DoseTimeOption\":{\"DoseTimeStart\":0,\"IsBreakfast\":true,\"IsLunch\":true,\"IsDinner\":true,\"IsBedTime\":true}}"));
"en-US""en-US"An exception occurred during performance of the job.
Index was outside the bounds of the array.
System.IndexOutOfRangeException: Index was outside the bounds of the array. at System.Collections.Generic.List`1.Enumerator.MoveNext() at System.String.Join(String separator, IEnumerable`1 values) at OI.Service.HangfireTask.CreatePackJob.CreatePackJobTask.<GeneratePackJob>d__38.MoveNext() in C:\Program Files (x86)\Jenkins\workspace\myPak-webjob-live\OI\OI.Service\HangfireTask\CreatePackJob\CreatePackJobTask.cs:line 313 --- 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.CreatePackJobTask.<CreatePackJob>d__37.MoveNext() in C:\Program Files (x86)\Jenkins\workspace\myPak-webjob-live\OI\OI.Service\HangfireTask\CreatePackJob\CreatePackJobTask.cs:line 140