I created a web application for this customer, it consists of an initial form on one server, once submitted, it starts a Workflow in a secondary server, which invokes a second forms process.
(Client didn't want their web server associated with their domain)
The issue is that I get random instances that terminate once it gets to the second server, and goes into the first user task. Some instances go through fine, and some get terminated. Not sure as to why it does this. (When this happens, I have to go back and manually resubmit the job application, and push the application through again. Really wish Laserfiche had a resubmit button for things like this)
Event Viewer gives me this error (Same error for the instances that have been terminated):
An unexpected error has occurred. [LFF502-UnexpectedError] Details: URL: Error: UnexpectedError Date: 5/9/2016 10:02:30 PM (Pacific Standard Time) HTTP Status Code: 500 Business Process Name: Web Application Business Process ID: 3 Instance ID: 125 Stack Trace: Caught exception: Laserfiche.Forms.CommonUtils.Exceptions.LFFormsException Message: An unexpected error has occurred. [LFF502-UnexpectedError] Inner exception: System.InvalidOperationException Message: Unexpected connection state. When using a wrapping provider ensure that the StateChange event is implemented on the wrapped DbConnection. at System.Data.Entity.Core.Objects.ObjectContext.EnsureContextIsEnlistedInCurrentTransaction[T](Transaction currentTransaction, Func`1 openConnection, T defaultValue) at System.Data.Entity.Core.Objects.ObjectContext.EnsureConnection(Boolean shouldMonitorTransactions) at System.Data.Entity.Core.Objects.ObjectContext.ExecuteInTransaction[T](Func`1 func, IDbExecutionStrategy executionStrategy, Boolean startLocalTransaction, Boolean releaseConnectionOnSuccess) at System.Data.Entity.Core.Objects.ObjectQuery`1.<>c__DisplayClass7.<GetResults>b__5() at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.Execute[TResult](Func`1 operation) at System.Data.Entity.Core.Objects.ObjectQuery`1.GetResults(Nullable`1 forMergeOption) at System.Data.Entity.Core.Objects.ObjectQuery`1.<System.Collections.Generic.IEnumerable<T>.GetEnumerator>b__0() at System.Data.Entity.Internal.LazyEnumerator`1.MoveNext() at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source) at System.Linq.Queryable.FirstOrDefault[TSource](IQueryable`1 source, Expression`1 predicate) at Laserfiche.Forms.EntityModels.cf_timers.FindTrigger(IEntityContext appContext, String type, Int32 processId, Nullable`1 mainInstanceId, Nullable`1 stepId) at Laserfiche.Forms.EntityModels.cf_timers.AddTrigger(IEntityContext appContext) at Laserfiche.Forms.Routing.Activity.RegisterBoundaryEvents(cf_bp_worker_instances processInstance, IRoutingContext routingContext) at Laserfiche.Forms.Routing.UserTask.ExecuteForNewEntry(cf_bp_worker_instances processInstance, IRoutingContext routingContext) at Laserfiche.Forms.Routing.UserTask.Execute(Int32 instanceId, IRoutingContext routingContext) at Laserfiche.Forms.Routing.RoutingDispatcher.ExecuteSteps()
Any help? Thanks!