// Job ID: #68b0f1567262e209f92c45a4
using OI.Service.HangfireTask.CreatePackJob;
var createPackJobTask = Activate<CreatePackJobTask>();
await createPackJobTask.CreatePackJob(
"683f82a5af648e0e90b91535",
"684b6acca7ab950374ac0724",
"fe",
new { "6848da9c08d9230e38abd557", "6848da9e08d9230e38abd5a4", "6848da9f08d9230e38abd61d", "6848da9f08d9230e38abd622", "6848da9f08d9230e38abd624" },
FromJson<PrintFoilOpions>("{\"PrintPrescriptionIds\":[],\"ExportOrders\":true,\"FoildIds\":[\"6848da9c08d9230e38abd557\",\"6848da9e08d9230e38abd5a4\",\"6848da9f08d9230e38abd61d\",\"6848da9f08d9230e38abd622\",\"6848da9f08d9230e38abd624\"],\"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\":\"2025-09-08T02:30:00Z\",\"PrintDate\":\"2025-08-29T02:30:00Z\",\"CurrentUserId\":\"684b6acca7ab950374ac0724\",\"Client\":0,\"SpecificPrinting\":false,\"StartPosiion\":0,\"SkipPhoto\":false,\"ExpiryDate\":\"2025-10-24T01:30:00Z\",\"DoseTimeOption\":{\"DoseTimeStart\":0,\"IsBreakfast\":true,\"IsLunch\":true,\"IsDinner\":true,\"IsBedTime\":true}}"));
"en-US""en-US"An exception occurred during performance of the job.
Inactive foil(s) exists in the selected foil list
System.Exception: Inactive foil(s) exists in the selected foil list 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 328 --- 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 141