// Job ID: #69b793a29c2a8602abbe51dc
using OI.Service.HangfireTask;
var packingFoilTask = Activate<PackingFoilTask>();
await packingFoilTask.ExecuteUpdateDrug(
"65f2569216f53f0d606afc0d",
FromJson<Drug>("{\"DrugName\":\"SERTRALINE (APO) 100mg (as HCL) TAB\",\"DrugCode\":\"SERT36\",\"Austr\":\"213180\",\"Supplier\":\"APOTEX PTY LTD\",\"Type\":\"Tablet\",\"Color\":\"white to off-white\",\"Shape\":\"capsule-shaped\",\"Marking\":\"100 BL\",\"Warning\":\"*Ask your Doctor or Pharmacist before using other medicines including over-the-counter or any health products*Do NOT stop taking this medication abruptly*May affect alertness and/or co-ordination. If affected, do not drive or operate machineryPcy Board Warn: Similar Names\",\"Direction\":\"\",\"GenericCode\":\"SERT1\",\"GenericName\":\"SERTRALINE\",\"Presentation\":\"Used to treat depression, obsessive-compulsive disorder, panic disorder, anxiety disorders, post-traumatic stress disorder (PTSD), and premenstrual dysphoric disorder (PMDD). \",\"ImageId\":\"5f3a2d84a0ba5d7c50794f25\",\"ImageSmallSizeId\":\"68f599335a506b941b5c8e36\",\"ImageName\":\"213180-C01-01-BL600.jpg\",\"AltBrand\":\"ZOLOFT, XYDEP, CONCORZ, ELEVA, SERTRALINE (CHEM-MART), SERTRALINE (DP), SERTRALINE (TW), SERTRALINE (GENRX), CONCORZ, SETRONA, SERTRALINE (WINTHROP), SERTRALINE (CR), SERTRALINE (GEN HLTH), SERTRA, SERTRATRUST, SERTRALINE (ACTAVIS), SERTRACOR, SERTRALINE (DRLA), SERTRALINE (SANDOZ), SERTRALINE (AURO), SERTRALINE (PFIZER), SERTRALINE (APO), SERTRALINE (AN), SERTRALINE (NOUMED), SERTRALINE USP (CIPLA) S19A, SERTRALINE (BLOOMS), SERTRALINE (WGR)\",\"DoNotCrush\":false,\"TradeName\":\"SERTRALINE (APO)\",\"Formulation\":\"TAB\",\"Strength\":\"100mg (as HCL)\",\"Schedule\":\"4\",\"PackSize\":30,\"IsCytotoxic\":false,\"Authorized\":2,\"TSAuthorized\":\"0001-01-01T00:00:00Z\",\"ShelfLife\":1,\"Description\":\"white oblong \\"100 BL\\"\",\"UsePrintingDrugName\":false,\"PrintingDrugName\":\"\",\"PharmacyId\":\"65f2569216f53f0d606afc0d\",\"Route\":{\"Code\":\"PO\",\"Description\":\"Oral\"},\"OriginValues\":\"{\\"Authorized\\":0,\\"ShelfLife\\":0,\\"Description\\":\\"white to off-white capsule-shaped 100 BL\\",\\"Route\\":null}\",\"Usage\":10,\"DrugFullName\":\"SERTRALINE (APO) 100mg (as HCL) TAB\",\"MedicationFullDetails\":\"SERTRALINE (APO) 100mg (as HCL) TAB - SERTRALINE (SERT36)\",\"Id\":\"5f0e69e0a0ba5db368a16e4d\",\"CreatedDate\":\"2020-07-15T02:28:45.373Z\",\"CreatedUserId\":\"5e7457052a22160c3cf31edb\",\"LastUpdateUserId\":\"66024f2ca5ab8f030cc8a61f\",\"LastUpdateDate\":\"2026-03-16T05:22:41.9057262Z\",\"UpdateDeletedDate\":\"1900-01-01T00:00:00Z\",\"IsDeleted\":false}"));
"en-US""en-US"An exception occurred during performance of the job.
Exception of type 'System.OutOfMemoryException' was thrown.
System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown. at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at MongoDB.Bson.Serialization.BsonClassMap.<>c__DisplayClass118_0.<GetCreator>b__1() at MongoDB.Bson.Serialization.BsonClassMap.CreateInstance() at MongoDB.Bson.Serialization.BsonClassMapSerializer`1.DeserializeClass(BsonDeserializationContext context) at MongoDB.Bson.Serialization.BsonClassMapSerializer`1.Deserialize(BsonDeserializationContext context, BsonDeserializationArgs args) at MongoDB.Bson.Serialization.IBsonSerializerExtensions.Deserialize[TValue](IBsonSerializer`1 serializer, BsonDeserializationContext context) at MongoDB.Driver.Core.Operations.CursorBatchDeserializationHelper.DeserializeBatch[TDocument](RawBsonArray batch, IBsonSerializer`1 documentSerializer, MessageEncoderSettings messageEncoderSettings) at MongoDB.Driver.Core.Operations.AsyncCursor`1.CreateCursorBatch(BsonDocument result) at MongoDB.Driver.Core.Operations.AsyncCursor`1.ExecuteGetMoreCommand(IChannelHandle channel, CancellationToken cancellationToken) at MongoDB.Driver.Core.Operations.AsyncCursor`1.GetNextBatch(CancellationToken cancellationToken) at MongoDB.Driver.Core.Operations.AsyncCursor`1.MoveNext(CancellationToken cancellationToken) at MongoDB.Driver.IAsyncCursorExtensions.ToList[TDocument](IAsyncCursor`1 source, CancellationToken cancellationToken) at OI.Data.MongoDBRepository`1.<>c__DisplayClass23_0.<<GetAsync>b__0>d.MoveNext() in C:\Program Files (x86)\Jenkins\workspace\myPak-webjob-live\OI\OI.Data\MongoDBRepository.cs:line 248 --- 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`1.GetResult() at OI.Data.MongoDBRepository`1.<GetAsync>d__23.MoveNext() in C:\Program Files (x86)\Jenkins\workspace\myPak-webjob-live\OI\OI.Data\MongoDBRepository.cs:line 244 --- 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`1.GetResult() at OI.Service.HangfireTask.PackingFoilTask.<ExecuteUpdateDrug>d__6.MoveNext() in C:\Program Files (x86)\Jenkins\workspace\myPak-webjob-live\OI\OI.Service\HangfireTask\PackingFoil\PackingFoilTask.cs:line 55