// Job ID: #67f49000af648e10b8ab1663
using OI.Service.HangfireTask.CreatePackJob;
var createPackJobTask = Activate<CreatePackJobTask>();
await createPackJobTask.CreatePackJob(
"67ce1885a7ab9507580363b1",
"67ce2af5a7ab9507581ba0e6",
"TF",
new { "67e1e2d8967e010b10ec4a31" },
FromJson<PrintFoilOpions>("{\"PrintPrescriptionIds\":[\"67e1e2d8967e010b10ec4a32\"],\"ExportOrders\":true,\"FoildIds\":[\"67e1e2d8967e010b10ec4a31\"],\"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-04-14T02:00:00Z\",\"PrintDate\":\"2025-04-08T02:00:00Z\",\"CurrentUserId\":\"67ce2af5a7ab9507581ba0e6\",\"Client\":0,\"SpecificPrinting\":false,\"StartPosiion\":0,\"SkipPhoto\":false,\"ExpiryDate\":\"2025-06-03T02: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 339 --- 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