You are viewing limited content. For full access, please sign in.

Question

Question

Upgrade to 10.4.2 causing Workflow Service Task to terminate

asked on February 18, 2020

The Workflow is completing after called but the forms server doesn't care anymore.  This form worked prior to updating to 10.4.2

 

URL:
Error: UnexpectedError
Date: 2/18/2020 12:13:55 PM (Central Standard Time)
HTTP Status Code: 500
Business Process ID: 160
Instance ID: 54272
Business Process Name: Consumer Loan Application - In Person

Stack Trace:
Caught exception: Laserfiche.Forms.CommonUtils.Exceptions.LFFormsException
Message: An unexpected error has occurred. [LFF502-UnexpectedError]


Inner exception: System.ObjectDisposedException
Message: The ObjectContext instance has been disposed and can no longer be used for operations that require a connection.
   at System.Data.Entity.Core.Objects.ObjectContext.get_Connection()
   at System.Data.Entity.Core.Objects.ObjectQuery`1.GetResults(Nullable`1 forMergeOption)
   at System.Data.Entity.Core.Objects.DataClasses.EntityCollection`1.Load(List`1 collection, MergeOption mergeOption)
   at System.Data.Entity.Core.Objects.DataClasses.RelatedEnd.DeferredLoad()
   at System.Data.Entity.Core.Objects.Internal.LazyLoadBehavior.LoadProperty[TItem](TItem propertyValue, String relationshipName, String targetRoleName, Boolean mustBeNull, Object wrapperObject)
   at System.Data.Entity.Core.Objects.Internal.LazyLoadBehavior.<>c__DisplayClass7`2.<GetInterceptorDelegate>b__1(TProxy proxy, TItem item)
   at System.Data.Entity.DynamicProxies.cf_bp_worker_instanc_8994AEA43FFC3AC19B77A7BCA8A81EDBE6E664917AD7D38740266AFD9E957FA1.get_cf_bp_worker_instance_history()
   at Laserfiche.Forms.EntityModels.cf_bp_worker_instances.GetLastHistory()
   at Laserfiche.Forms.Routing.ServiceTask.Execute(Int32 instanceId, IRoutingContext routingContext)
   at Laserfiche.Forms.Routing.RoutingDispatcher.ExecuteStep(KeyValuePair`2 currentStep, Exception& executionException)

 

1 0

Replies

replied on February 19, 2020 Show version history
Hi Spencer,
 
Does the error happen to all instances or some instances of the process?
 
If the problem persists, please open a support case with your VAR, and provide more information:
1. Forms version before upgrade
2. Workflow version
3. Exported process that encounter the problem
4. Forms event log around error time (Applications and Service Logs -> Laserfiche -> Forms -> App -> Admin & Operational)
5. Forms database if error doesn't happen to all instances of the process
 
We will do further investigation with above information. Unfortunately, with current information the problem could not be reproduced.
 
Thanks,
Ziyan
0 0
replied on April 13, 2020

Hi Spencer,

 

Recently it is noticed that workflow service task will be terminated in Forms when

  • workflow service task is configured to 'Wait for the workflow to finish before proceeding'
  • and used workflow has 'Set Business Process Variables' activity targeting a different process/Forms server

 

This issue happens in 10.4.2 and later versions. From the error message, it looks like same issue as that you've encountered.

If your issue has not been resolved yet, please try review the workflow used in the terminated step, and update mismatched process/Forms server configuration if any. 

 

Hope this will help.

 

Thanks,

Ziyan

0 0
replied on April 17, 2020

Was the reason for this even discovered? 

1 0
replied on April 20, 2020

This is identified as a bug in Forms. BUG236892 is filed and we will investigate the root cause soon.

0 0
replied on June 24, 2020
0 0
replied on October 27, 2023

Glad they have a fix for this and look forward to implementing it. Thank you for posting this. 

You are not allowed to follow up in this post.

Sign in to reply to this post.