PackingFoilTask.ExecuteUpdateDrug

// Job ID: #69094db1610ad01e744a4bab
using OI.Service.HangfireTask;

var packingFoilTask = Activate<PackingFoilTask>();
await packingFoilTask.ExecuteUpdateDrug(
    "65f2569216f53f0d606afc0d",
    FromJson<Drug>("{\"DrugName\":\"VENLAFAXINE XR (APO) 75mg SR-CAP\",\"DrugCode\":\"VENL10\",\"Austr\":\"286958\",\"Supplier\":\"APOTEX PTY LTD\",\"Type\":\"SR-Capsule\",\"Color\":\"opaque flesh-coloured\",\"Shape\":\"\",\"Marking\":\"radial circular bands\",\"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 machinerywith or soon after food.swallowed whole\",\"Direction\":\"\",\"GenericCode\":\"VENL1\",\"GenericName\":\"VENLAFAXINE\",\"Presentation\":\"Used in the treatment of major depressive disorder (MDD) and other mood disorders. Sometimes also used to treat anxiety disorders, obsessive-compulsive disorder (OCD), attention deficit hyperactivity disorder (ADHD), chronic neuropathic pain, and fibromyalgia syndrome (FMS), and for the relief of menopausal symptoms.\",\"ImageId\":\"636087f96f6fd81ad4e2d984\",\"ImageSmallSizeId\":\"68f599085a506b941b5c8c13\",\"ImageName\":\"286958-C01-01-BL600.jpg\",\"AltBrand\":\"EFEXOR XR, EVELEXA XR, VENLAFAXINE XR (GEN HLTH), ELAXINE SR, ENLAFAX XR, VENLA (RBX), VENLAFAXINE XR (APO), VENLAFAXINE XR (CHEM MART), VENLAFAXINE XR (SANDOZ SZ), VENLAFAXINE XR (TW), VENLEXOR XR, ALTVEN XR, VENLAFAXINE SR (STADA), VENLAFAXINE SR (SCP), VENLAFAXINE (ACTAVIS), VENLAFAXINE SR (AN), VENLAFAXINE XR (BLOOMS), VENLAFAXINE XR (SANDOZ HX), VENLAFAXINE XR (WGR)\",\"DoNotCrush\":true,\"TradeName\":\"VENLAFAXINE XR (APO)\",\"Formulation\":\"SR-CAP\",\"Strength\":\"75mg\",\"Schedule\":\"4\",\"PackSize\":28,\"IsCytotoxic\":false,\"Authorized\":2,\"TSAuthorized\":\"0001-01-01T00:00:00Z\",\"ShelfLife\":1,\"Description\":\"peach opaque  radial circular bands\",\"UsePrintingDrugName\":false,\"PrintingDrugName\":\"\",\"PharmacyId\":\"65f2569216f53f0d606afc0d\",\"Route\":{\"Code\":\"PO\",\"Description\":\"Oral\"},\"OriginValues\":\"{\\"Authorized\\":0,\\"ShelfLife\\":0,\\"Route\\":null}\",\"Usage\":4,\"DrugFullName\":\"VENLAFAXINE XR (APO) 75mg SR-CAP\",\"MedicationFullDetails\":\"VENLAFAXINE XR (APO) 75mg SR-CAP - VENLAFAXINE (VENL10)\",\"Id\":\"5f0e69e0a0ba5db368a169f0\",\"CreatedDate\":\"2020-07-15T02:28:44.432Z\",\"CreatedUserId\":\"5e7457052a22160c3cf31edb\",\"LastUpdateUserId\":\"6785b2ca08efed02d494383e\",\"LastUpdateDate\":\"2025-11-04T00:49:53.2168936Z\",\"UpdateDeletedDate\":\"1900-01-01T00:00:00Z\",\"IsDeleted\":false}"));
CurrentCulture
"en-US"
CurrentUICulture
"en-US"

State

11/4/2025 12:51:29 AM (+1m 35.749s) Failed

An exception occurred during performance of the job.

System.OutOfMemoryException

Exception of type 'System.OutOfMemoryException' was thrown.

System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
   at System.Collections.Generic.Dictionary`2.Initialize(Int32 capacity)
   at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
   at MongoDB.Driver.Linq.Linq3Implementation.Serializers.KnownSerializers.KnownSerializersNode.AddKnownSerializer(Type type, IBsonSerializer serializer)
   at MongoDB.Driver.Linq.Linq3Implementation.Serializers.KnownSerializers.KnownSerializersNode.AddKnownSerializersFromChild(KnownSerializersNode child)
   at MongoDB.Driver.Linq.Linq3Implementation.Serializers.KnownSerializers.KnownSerializerFinder.Visit(Expression node)
   at System.Linq.Expressions.ExpressionVisitor.VisitLambda[T](Expression`1 node)
   at System.Linq.Expressions.Expression`1.Accept(ExpressionVisitor visitor)
   at MongoDB.Driver.Linq.Linq3Implementation.Serializers.KnownSerializers.KnownSerializerFinder.Visit(Expression node)
   at MongoDB.Driver.Linq.Linq3Implementation.Serializers.KnownSerializers.KnownSerializerFinder.FindKnownSerializers(Expression root, IBsonDocumentSerializer rootSerializer)
   at MongoDB.Driver.Linq.Linq3Implementation.Translators.TranslationContext.Create(Expression expression, IBsonSerializer serializer, TranslationContextData data)
   at MongoDB.Driver.Linq.Linq3Implementation.LinqProviderAdapterV3.TranslateExpressionToField[TDocument,TField](Expression`1 expression, IBsonSerializer`1 documentSerializer, IBsonSerializerRegistry serializerRegistry, Boolean allowScalarValueForArrayField)
   at MongoDB.Driver.ExpressionFieldDefinition`2.Render(IBsonSerializer`1 documentSerializer, IBsonSerializerRegistry serializerRegistry, LinqProvider linqProvider, Boolean allowScalarValueForArrayField)
   at MongoDB.Driver.ExpressionFieldDefinition`2.Render(IBsonSerializer`1 documentSerializer, IBsonSerializerRegistry serializerRegistry, LinqProvider linqProvider)
   at MongoDB.Driver.OperatorUpdateDefinition`2.Render(IBsonSerializer`1 documentSerializer, IBsonSerializerRegistry serializerRegistry, LinqProvider linqProvider)
   at MongoDB.Driver.MongoCollectionImpl`1.ConvertWriteModelToWriteRequest(WriteModel`1 model, Int32 index)
   at System.Linq.Enumerable.<SelectIterator>d__5`2.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at MongoDB.Driver.Core.Operations.BulkMixedWriteOperation..ctor(CollectionNamespace collectionNamespace, IEnumerable`1 requests, MessageEncoderSettings messageEncoderSettings)
   at MongoDB.Driver.MongoCollectionImpl`1.CreateBulkWriteOperation(IClientSessionHandle session, IEnumerable`1 requests, BulkWriteOptions options)
   at MongoDB.Driver.MongoCollectionImpl`1.<BulkWriteAsync>d__31.MoveNext()
--- 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 MongoDB.Driver.MongoCollectionImpl`1.<UsingImplicitSessionAsync>d__107`1.MoveNext()
--- 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.<BulkWriteAsync>d__15.MoveNext() in C:\Program Files (x86)\Jenkins\workspace\myPak-webjob-live\OI\OI.Data\MongoDBRepository.cs:line 166
--- 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.PackingFoilTask.<BulkUpdate>d__7.MoveNext() in C:\Program Files (x86)\Jenkins\workspace\myPak-webjob-live\OI\OI.Service\HangfireTask\PackingFoil\PackingFoilTask.cs:line 89
--- 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.PackingFoilTask.<ExecuteUpdateDrug>d__6.MoveNext() in C:\Program Files (x86)\Jenkins\workspace\myPak-webjob-live\OI\OI.Service\HangfireTask\PackingFoil\PackingFoilTask.cs:line 69

+579ms Processing

Server:
ip-0a0006f8:3056
Worker:
320c7d1d

+6ms Enqueued

Queue:
default

11/4/2025 12:49:53 AM Created