// Job ID: #670c94dea7ab950c643da47f
using OI.Service.HangfireTask.CreatePackJob;
var createPackJobTask = Activate<CreatePackJobTask>();
await createPackJobTask.CreatePackJob(
"66ea70f38222d30b9029691f",
"66ea70f38222d30b90296938",
"MPAdmin_1156",
new { "66fbaa0327976e065474a28a" },
FromJson<PrintFoilOpions>("{\"PrintPrescriptionIds\":[\"66fbaa0327976e065474a28e\",\"66fbaa0327976e065474a28b\",\"66fbaa0327976e065474a292\",\"66fbaa0327976e065474a28d\",\"66fbaa0327976e065474a290\",\"66fbaa0327976e065474a28f\",\"66fbaa0327976e065474a28c\",\"66fbaa0327976e065474a293\",\"66fbaa0327976e065474a291\"],\"ExportOrders\":false,\"FoildIds\":[\"66fbaa0327976e065474a28a\"],\"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\":\"2024-10-14T04:00:00Z\",\"PrintDate\":\"2024-10-14T04:00:00Z\",\"CurrentUserId\":\"66ea70f38222d30b90296938\",\"Client\":0,\"SpecificPrinting\":false,\"StartPosiion\":0,\"SkipPhoto\":false,\"ExpiryDate\":\"2024-12-09T04: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.
Object reference not set to an instance of an object.
System.NullReferenceException: Object reference not set to an instance of an object. 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 336 --- 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 138