I am developing the customer bill validation process. The bill is a readable PDF. I am doing PDF extractor to get the data and validate the entries. I have to process thousands of files continuously. after processing few hundreds of files I am getting an out of memory issue as given below.
“Job Stopped with an unexpected exit code : 0xE0434352”
I am using .NET framework version 5.0, UiPath Studio Version 2022.4. Ram is 16GB and Processor 4 Core.
I extract the each bill and store in the data tables and do the required validation for that and then move to next bill.
And also I am not using excel files in the process. But I am writing validation errors to the csv files.
Appreciate if you can help me to sort this error. I am doing multiple validations using different workflows.
Complete stack trace is given below:
Application: UiPath.Executor.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.OutOfMemoryException
at System.CodeDom.CodeMethodInvokeExpression…ctor(System.CodeDom.CodeMethodReferenceExpression, System.CodeDom.CodeExpression)
at System.Activities.XamlIntegration.TextExpressionCompiler.GenerateValueExpressionInvocation(CompiledExpressionDescriptor, Boolean, System.Collections.Generic.Dictionary`2<System.String,Int32>)
at System.Activities.XamlIntegration.TextExpressionCompiler.GenerateInvokeExpressionMethod(Boolean)
at System.Activities.XamlIntegration.TextExpressionCompiler.Parse()
at System.Activities.XamlIntegration.TextExpressionCompiler.Compile()
at System.Activities.XamlIntegration.ActivityXamlServices.Compile(System.Activities.IDynamicActivity, System.Activities.LocationReferenceEnvironment)
at System.Activities.XamlIntegration.ActivityXamlServices.Load(System.Xaml.XamlReader, System.Activities.XamlIntegration.ActivityXamlServicesSettings)
at System.Activities.XamlIntegration.ActivityXamlServices.Load(System.Xml.XmlReader, System.Activities.XamlIntegration.ActivityXamlServicesSettings)
at System.Activities.XamlIntegration.ActivityXamlServices.Load(System.IO.Stream, System.Activities.XamlIntegration.ActivityXamlServicesSettings)
at UiPath.Executor.WorkflowLoader.LoadWorkflow(System.String, System.String)
at UiPath.Executor.InProcessRunner.BeginExecute(System.AsyncCallback, System.Object)
at UiPath.Core.Activities.ExecutorInvokeActivity.BeginExecute(System.Activities.AsyncCodeActivityContext, System.AsyncCallback, System.Object)
at System.Activities.AsyncCodeActivity.InternalExecute(System.Activities.ActivityInstance, System.Activities.Runtime.ActivityExecutor, System.Activities.Runtime.BookmarkManager)
at System.Activities.ActivityInstance.Execute(System.Activities.Runtime.ActivityExecutor, System.Activities.Runtime.BookmarkManager)
at System.Activities.Runtime.ActivityExecutor+ExecuteActivityWorkItem.ExecuteBody(System.Activities.Runtime.ActivityExecutor, System.Activities.Runtime.BookmarkManager, System.Activities.Location)
at System.Activities.Runtime.ActivityExecutor+ExecuteActivityWorkItem.Execute(System.Activities.Runtime.ActivityExecutor, System.Activities.Runtime.BookmarkManager)
at System.Activities.Runtime.ActivityExecutor.TryExecuteNonEmptyWorkItem(System.Activities.Runtime.WorkItem)
at System.Activities.Runtime.ActivityExecutor.OnExecuteWorkItem(System.Activities.Runtime.WorkItem)
at System.Activities.Runtime.Scheduler+Callbacks.ExecuteWorkItem(System.Activities.Runtime.WorkItem)
at System.Activities.Runtime.Scheduler.OnScheduledWork(System.Object)
at System.Runtime.Fx+SendOrPostThunk.UnhandledExceptionFrame(System.Object)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(System.Object)
at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(System.Object)
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
at MS.Internal.CulturePreservingExecutionContext.Run(MS.Internal.CulturePreservingExecutionContext, System.Threading.ContextCallback, System.Object)
at System.Windows.Threading.DispatcherOperation.Invoke()
at System.Windows.Threading.Dispatcher.ProcessQueue()
at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
at MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)
at MS.Win32.UnsafeNativeMethods.DispatchMessage(System.Windows.Interop.MSG ByRef)
at System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame)
at System.Windows.Threading.Dispatcher.PushFrame(System.Windows.Threading.DispatcherFrame)
at System.Windows.Application.RunDispatcher(System.Object)
at System.Windows.Application.RunInternal(System.Windows.Window)
at System.Windows.Application.Run(System.Windows.Window)
at UiPath.Executor.ExecutorBootstrapper…ctor()
at UiPath.Executor.ExecutorBootstrapper.Main()