// Job ID: #68b903bdbf6049b640b0dfe9
using OI.Service.HangfireTask.CreatePackJob;
var createPackJobTask = Activate<CreatePackJobTask>();
await createPackJobTask.CreatePackJob(
"682a7d0baf648e0c34ee3b27",
"682bd0faa7ab950b5c39ee73",
"Micaela",
new { "68662899fa5b362fe44a8d37" },
FromJson<PrintFoilOpions>("{\"PrintPrescriptionIds\":[\"686628e0fa5b362fe44b3680\"],\"ExportOrders\":true,\"FoildIds\":[\"68662899fa5b362fe44a8d37\"],\"GenerateBarcode\":true,\"IsCollatedCopies\":false,\"IsCytotoxic\":false,\"IsPrintAll\":false,\"IsPRN\":false,\"IsS4N\":false,\"IsS8\":false,\"IsShortCourse\":false,\"IsSinemet\":false,\"IsWarfarin\":false,\"NumberOfCopies\":0,\"NumberOfWeek\":4,\"PartWeekPack\":7,\"PackStartDate\":\"2025-09-13T02:00:00Z\",\"PrintDate\":\"2025-09-04T02:00:00Z\",\"CurrentUserId\":\"682bd0faa7ab950b5c39ee73\",\"Client\":0,\"SpecificPrinting\":false,\"StartPosiion\":0,\"SkipPhoto\":false,\"ExpiryDate\":\"2025-10-30T01: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.
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