9 Replies Latest reply on May 21, 2020 11:53 AM by Cris Coffey

    'System.OutOfMemoryException' is thrown when closing a very aged/big work order

    Sam Truong
      Share This:

      Hi All,

       

      I'm using v11.4 and I have an aged work order that I'm unable to close out. Here is the exception I'm getting:

       

      TechnicianClient|TIE1107152|Language|sam|Frameworks.ErrorCode.002

        -- No Error Code specified in Exception instance [TrackIt.Business.HelpDesk.HelpDeskException]

        -- Exception of type 'System.OutOfMemoryException' was thrown. [System.OutOfMemoryException]

       

      1. TrackIt.Business.HelpDesk.HelpDeskException : No Error Code specified in Exception instance

         at TrackIt.Business.HelpDesk.HelpDeskImpl.HelpDeskLocal.GetWorkOrder(DBSession session, Int32 workOrderId, Boolean lockWorkOrder)

         at TrackIt.Application.TechnicianClient.AddIn.HelpDesk.ChangeWorkOrderStatusCommand.ChangeStatusOfSelectedWorkOrders(IdCollection selectedWorkOrderIds, DBSession dbSession, WorkOrderStatus newWorkOrderStatus, WorkOrderNote workOrderNote, DateTime dateCompleted)

         at TrackIt.Application.TechnicianClient.AddIn.HelpDesk.ChangeWorkOrderStatusWaitDialog.PerformActionMethodAndClose()

         at TrackIt.Application.Framework.WinForms.Dialogs.WaitDialog.delayedStartTimer_Tick(Object sender, EventArgs e)

         at System.Windows.Forms.Timer.OnTick(EventArgs e)

         at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)

         at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

       

      1. System.OutOfMemoryException : Exception of type 'System.OutOfMemoryException' was thrown.

         at System.Text.StringBuilder.ToString()

         at System.String.Join(String separator, IEnumerable`1 values)

         at TrackIt.Core.BOM.HelpDesk.WorkOrderNoteCollection.CreateAppendedWorkOrderNoteString(IEnumerable`1 collection)

         at TrackIt.Core.BOM.HelpDesk.WorkOrderNoteCollection.PopulateIssueDescriptionAndTechnicianWorkOrderNotesCollection()

         at TrackIt.Core.BOM.HelpDesk.WorkOrderNoteCollection.get_IssueDescriptionAndTechnicianNotes()

         at TrackIt.Core.BOM.HelpDesk.WorkOrder.get_IssueDescriptionAndTechnicianNotes()

         at TrackIt.Business.HelpDesk.HelpDeskImpl.HelpDeskImpl.ResortNotes(WorkOrder workOrder, Boolean unDirtySession)

         at TrackIt.Business.HelpDesk.HelpDeskImpl.HelpDeskImpl.GetWorkOrder(DBSession session, Int32 workOrderId, Boolean lockWorkOrder)

         at TrackIt.Business.HelpDesk.HelpDeskImpl.HelpDeskSecure.GetWorkOrder(SecurityCredentials credentials, DBSession session, Int32 workOrderId, Boolean lockWorkOrder)

         at TrackIt.Business.HelpDesk.HelpDeskInterceptor.GetWorkOrder(DBSession session, Int32 workOrderId, Boolean lockWorkOrder)

         at TrackIt.Business.HelpDesk.HelpDeskImpl.HelpDeskLocal.GetWorkOrder(DBSession session, Int32 workOrderId, Boolean lockWorkOrder)

       

      Rebuilding indexes doesn't help.

       

      Anyone seen/got a solution for this?

       

      Many thanks,

       

      Sam.