// Job ID: #68da15a5d142c1471d0897ca
using OI.Service.HangfireTask.CreatePackJob;
var createPackJobTask = Activate<CreatePackJobTask>();
await createPackJobTask.CreatePackJob(
"68478ffcaf648e0c7c94d408",
"6847971c08efed091046d0eb",
"ck",
new { "68da150af115199afa040d3c" },
FromJson<PrintFoilOpions>("{\"PrintPrescriptionIds\":[\"68da1590c84ac55fe39e82ec\"],\"ExportOrders\":true,\"FoildIds\":[\"68da150af115199afa040d3c\"],\"GenerateBarcode\":true,\"IsCollatedCopies\":false,\"IsCytotoxic\":false,\"IsPrintAll\":false,\"IsPRN\":true,\"IsS4N\":false,\"IsS8\":false,\"IsShortCourse\":false,\"IsSinemet\":false,\"IsWarfarin\":false,\"NumberOfCopies\":0,\"NumberOfWeek\":1,\"PartWeekPack\":7,\"PackStartDate\":\"2025-09-29T02:00:00Z\",\"PrintDate\":\"2025-09-29T02:00:00Z\",\"CurrentUserId\":\"6847971c08efed091046d0eb\",\"Client\":0,\"SpecificPrinting\":false,\"StartPosiion\":0,\"SkipPhoto\":false,\"ExpiryDate\":\"2026-03-29T01: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 327 --- 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