We have a public Forms environment running in a DMZ.
Forms Version 11.0.2212.30987
We have it configured so the Forms instance in the DMZ is the same system that is running internally as well (same database, and using the routing service on our internal server).
We haven't run a lot of stuff through the public environment yet, but we have a new one that we launched last week, including an email campaign inviting submissions. Since that launch, I've noticed a bunch of these submissions getting suspended (not all of them, but about 25%-30% of them).
The process only has three parts - the Message Start Event, a Workflow Service Task, and then the End Event. The error is happening on the Workflow Service Task. This workflow copies the details of the submission into a different process for internal processing and review. So it's a pretty simple process - but the hiccup is specifically calling the Workflow.
The event logs around the time of the error looks like this on the DMZ:
An unexpected error has occurred. [LFF502-UnexpectedError] Details: URL: Error: UnexpectedError Date: 10/30/2023 9:40:42 AM (Mountain Standard Time) HTTP Status Code: 500 Business Process ID: 0 Stack Trace: Caught exception: Laserfiche.Forms.CommonUtils.Exceptions.LFFormsException Message: An unexpected error has occurred. [LFF502-UnexpectedError] Inner exception: System.Data.Entity.Infrastructure.DbUpdateConcurrencyException Message: Store update, insert, or delete statement affected an unexpected number of rows (0). Entities may have been modified or deleted since entities were loaded. See http://go.microsoft.com/fwlink/?LinkId=472540 for information on understanding and handling optimistic concurrency exceptions. at System.Data.Entity.Internal.InternalContext.SaveChanges() at Laserfiche.Forms.Routing.SubmissionRecovery.CheckSubmissionsGetNonProcessedInternal(RoutingEngineAppContext context) Inner exception: System.Data.Entity.Core.OptimisticConcurrencyException Message: Store update, insert, or delete statement affected an unexpected number of rows (0). Entities may have been modified or deleted since entities were loaded. See http://go.microsoft.com/fwlink/?LinkId=472540 for information on understanding and handling optimistic concurrency exceptions. at System.Data.Entity.Core.Mapping.Update.Internal.UpdateTranslator.ValidateRowsAffected(Int64 rowsAffected, UpdateCommand source) at System.Data.Entity.Core.Mapping.Update.Internal.UpdateTranslator.Update() at System.Data.Entity.Core.Objects.ObjectContext.ExecuteInTransaction[T](Func`1 func, IDbExecutionStrategy executionStrategy, Boolean startLocalTransaction, Boolean releaseConnectionOnSuccess) at System.Data.Entity.Core.Objects.ObjectContext.SaveChangesToStore(SaveOptions options, IDbExecutionStrategy executionStrategy, Boolean startLocalTransaction) at System.Data.Entity.Infrastructure.DbExecutionStrategy.Execute[TResult](Func`1 operation) at System.Data.Entity.Core.Objects.ObjectContext.SaveChangesInternal(SaveOptions options, Boolean executeInExistingTransaction) at System.Data.Entity.Internal.InternalContext.SaveChanges()
And the event logs look like this on the internal server:
An unexpected error has occurred. [LFF502-UnexpectedError] Details: URL: Error: UnexpectedError Date: 10/30/2023 9:40:43 AM (Mountain Standard Time) HTTP Status Code: 500 Business Process ID: 305 Instance ID: 319124 Business Process Name: Holiday Skip-a-Pay - AMUCU Stack Trace: Caught exception: Laserfiche.Forms.CommonUtils.Exceptions.LFFormsException Message: An unexpected error has occurred. [LFF502-UnexpectedError] Inner exception: System.Net.WebException Message: The remote server returned an error: (401) Unauthorized. at System.Net.HttpWebRequest.GetResponse() at Laserfiche.Forms.Routing.WrapHttpWebRequest.GetResponse() at Laserfiche.Forms.Routing.LFWorkflowService.Execute(Int32 instanceId, IRoutingContext routingContext, RoutingInstanceStatus OriginalStatus) at Laserfiche.Forms.Routing.ServiceTask.Execute(Int32 instanceId, IRoutingContext routingContext)
The error message I see within the Forms client looks like this:
An unexpected error has occurred. [LFF502-UnexpectedError] Details: URL: Error: UnexpectedError Date: 10/30/2023 9:40:43 AM (Mountain Standard Time) HTTP Status Code: 500 Business Process ID: 305 Instance ID: 319124 Business Process Name: Holiday Skip-a-Pay - AMUCU Stack Trace: Caught exception: Laserfiche.Forms.CommonUtils.Exceptions.LFFormsException Message: An unexpected error has occurred. [LFF502-UnexpectedError] Inner exception: System.Net.WebException Message: The remote server returned an error: (401) Unauthorized. at System.Net.HttpWebRequest.GetResponse() at Laserfiche.Forms.Routing.WrapHttpWebRequest.GetResponse() at Laserfiche.Forms.Routing.LFWorkflowService.Execute(Int32 instanceId, IRoutingContext routingContext, RoutingInstanceStatus OriginalStatus) at Laserfiche.Forms.Routing.ServiceTask.Execute(Int32 instanceId, IRoutingContext routingContext)
These have all processed correctly once I retried the suspended tasks - but I haven't had any luck discovering why some of these are getting suspended while most of them are not.
Has anyone seen a similar issue and/or have suggestions on how to address this issue?
Thank you.