This morning, about 100 Forms instances terminated/suspended in our production environment. I am still working through the error log in Forms, but found this one and was wondering if anyone knows what it means?
Log Name: Laserfiche-Forms-App/Admin
Source: Laserfiche-Forms-App
Date: 10/14/2025 7:49:58 AM
Event ID: 10502
Task Category: UnexpectedErrorErrorAdmin
Level: Error
Keywords: Session0,Session1,Session2,Session3
User: XXXX
Computer: XXXX
Description:
An unexpected error has occurred. [LFF502-UnexpectedError]
Details:
URL:
Error: UnexpectedError
Date: 10/14/2025 7:49:58 AM (US Mountain Standard Time)
HTTP Status Code: 500
Business Process ID: 0
Business Process Name:
Stack Trace:
Caught exception: Laserfiche.Forms.CommonUtils.Exceptions.LFFormsException
Message: An unexpected error has occurred. [LFF502-UnexpectedError]
Inner exception: System.InvalidOperationException
Message: The operation cannot be completed because the DbContext has been disposed.
at System.Data.Entity.Internal.LazyInternalContext.InitializeContext()
at System.Data.Entity.Internal.Linq.DbQueryProvider.Execute[TResult](Expression expression)
at Laserfiche.Forms.Routing.RoutingContextService.GetSingleUserSnapshotById(Int32 id)
at Laserfiche.Forms.Routing.FlowObject.UpdateEndStatus(cf_bp_worker_instances processInstance, IRoutingContext routingContext, String endingStatus, Nullable`1 userId, Boolean isAllCompleted)
at Laserfiche.Forms.Routing.RoutingDispatcher.HandleExecutionException(Exception ex, KeyValuePair`2 currentStep, Exception& executionException)
at Laserfiche.Forms.Routing.RoutingDispatcher.ExecuteStep(KeyValuePair`2 currentStep, Exception& executionException)
at Laserfiche.Forms.Routing.RoutingDispatcher.ExecuteSteps(Int32 processWorkerInstanceId, ActionType action, Int32 stepIdToAct, String comment, CancellationToken cancellationToken)
at Laserfiche.Forms.Routing.RoutingDispatcher.RunProcess(Int32 currentStepId, Int32 processId, Int32 boundaryEventStepId, SubmissionDataSet inputData, Int32 refMainProcessInstanceId, Int32 lastSubmissionId, PaymentParams paymentParams, CancellationToken cancellationToken, AuditEventInfo auditEventInfo)
at Laserfiche.Forms.Routing.InstanceProcessingService.RunRouting(RoutingRequestParameters requestParam)
at Laserfiche.Forms.Routing.InstanceProcessingService.<>c__DisplayClass9_0.<StartRouting_Async>b__0()
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Laserfiche-Forms-App" Guid="{98141CA4-660B-51C6-66B4-EC37F5B2FD87}" />
<EventID>10502</EventID>
<Version>0</Version>
<Level>2</Level>
<Task>55032</Task>
<Opcode>0</Opcode>
<Keywords>0x4000f00000000000</Keywords>
<TimeCreated SystemTime="2025-10-14T14:49:58.869272200Z" />
<EventRecordID>196772</EventRecordID>
<Correlation />
<Execution ProcessID="3116" ThreadID="11180" />
<Channel>Laserfiche-Forms-App/Admin</Channel>
<Computer>XXXX</Computer>
<Security UserID="XXXX" />
</System>
<EventData>
<Data Name="message">An unexpected error has occurred. [LFF502-UnexpectedError]
Details:
URL:
Error: UnexpectedError
Date: 10/14/2025 7:49:58 AM (US Mountain Standard Time)
HTTP Status Code: 500
Business Process ID: 0
Business Process Name:
Stack Trace:
Caught exception: Laserfiche.Forms.CommonUtils.Exceptions.LFFormsException
Message: An unexpected error has occurred. [LFF502-UnexpectedError]
Inner exception: System.InvalidOperationException
Message: The operation cannot be completed because the DbContext has been disposed.
at System.Data.Entity.Internal.LazyInternalContext.InitializeContext()
at System.Data.Entity.Internal.Linq.DbQueryProvider.Execute[TResult](Expression expression)
at Laserfiche.Forms.Routing.RoutingContextService.GetSingleUserSnapshotById(Int32 id)
at Laserfiche.Forms.Routing.FlowObject.UpdateEndStatus(cf_bp_worker_instances processInstance, IRoutingContext routingContext, String endingStatus, Nullable`1 userId, Boolean isAllCompleted)
at Laserfiche.Forms.Routing.RoutingDispatcher.HandleExecutionException(Exception ex, KeyValuePair`2 currentStep, Exception& executionException)
at Laserfiche.Forms.Routing.RoutingDispatcher.ExecuteStep(KeyValuePair`2 currentStep, Exception& executionException)
at Laserfiche.Forms.Routing.RoutingDispatcher.ExecuteSteps(Int32 processWorkerInstanceId, ActionType action, Int32 stepIdToAct, String comment, CancellationToken cancellationToken)
at Laserfiche.Forms.Routing.RoutingDispatcher.RunProcess(Int32 currentStepId, Int32 processId, Int32 boundaryEventStepId, SubmissionDataSet inputData, Int32 refMainProcessInstanceId, Int32 lastSubmissionId, PaymentParams paymentParams, CancellationToken cancellationToken, AuditEventInfo auditEventInfo)
at Laserfiche.Forms.Routing.InstanceProcessingService.RunRouting(RoutingRequestParameters requestParam)
at Laserfiche.Forms.Routing.InstanceProcessingService.<>c__DisplayClass9_0.<StartRouting_Async>b__0()
</Data>
</EventData>
</Event>