CreatePackJobTask.CreatePackJob

// Job ID: #68c26b366d01c7514a65f787
using OI.Service.HangfireTask.CreatePackJob;

var createPackJobTask = Activate<CreatePackJobTask>();
await createPackJobTask.CreatePackJob(
    "67ce1885a7ab9507580363b1",
    "67ce1885a7ab9507580363d8",
    "MPAdmin_1256",
    new { "67e1e2d8967e010b10ec4a31", "67e1e2cc967e010b10ec36b2", "67e1e2d0967e010b10ec3bea", "67e1e2d3967e010b10ec43d8", "67e1e2d8967e010b10ec4a0d" },
    FromJson<PrintFoilOpions>("{\"PrintPrescriptionIds\":[],\"ExportOrders\":true,\"FoildIds\":[\"67e1e2d8967e010b10ec4a31\",\"67e1e2cc967e010b10ec36b2\",\"67e1e2d0967e010b10ec3bea\",\"67e1e2d3967e010b10ec43d8\",\"67e1e2d8967e010b10ec4a0d\"],\"GenerateBarcode\":true,\"IsCollatedCopies\":false,\"IsCytotoxic\":false,\"IsPrintAll\":false,\"IsPRN\":false,\"IsS4N\":false,\"IsS8\":false,\"IsShortCourse\":false,\"IsSinemet\":false,\"IsWarfarin\":false,\"NumberOfCopies\":0,\"NumberOfWeek\":1,\"PartWeekPack\":7,\"PackStartDate\":\"2025-09-11T02:00:00Z\",\"PrintDate\":\"2025-09-11T02:00:00Z\",\"CurrentUserId\":\"67ce1885a7ab9507580363d8\",\"Client\":0,\"SpecificPrinting\":false,\"StartPosiion\":0,\"SkipPhoto\":false,\"ExpiryDate\":\"2025-11-06T01:00:00Z\",\"DoseTimeOption\":{\"DoseTimeStart\":0,\"IsBreakfast\":true,\"IsLunch\":true,\"IsDinner\":true,\"IsBedTime\":true}}"));
CurrentCulture
"en-US"
CurrentUICulture
"en-US"

State

9/11/2025 6:25:02 AM (+324ms) Failed

An exception occurred during performance of the job.

System.Exception

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

+7.472s Processing

Server:
ip-0a0006e8:3752
Worker:
73bc6816

+6ms Enqueued

Queue:
queue1

9/11/2025 6:24:54 AM Created