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

Question

Question

The call to Laserfiche Workflow API was not successful

asked on April 3, 2018

I have a process in forms (10.3) that makes use of different workflows.

The problem is that sometimes when an instance goes through this type of step is suspended and gives the following error:

The call to Laserfiche Workflow API was not successful. (The operation has timed out.). [LFF5203-WFServerApiFault]

Details:
URL:
Error: WFServerApiFault
Date: 4/3/2018 1:54:27 PM (Central America Standard Time)
HTTP Status Code: 500
Business Process ID: 15
Instance ID: 2326
Business Process Name: External Correspondence Registry

Stack Trace:
Caught exception: Laserfiche.Forms.CommonUtils.Exceptions.LFFormsException
Message: The call to Laserfiche Workflow API was not successful. (The operation has timed out.). [LFF5203-WFServerApiFault]
   at Laserfiche.Forms.Routing.LFWorkflowService.Execute (Int32 instanceId, IRoutingContext routingContext, RoutingInstanceStatus OriginalStatus)
   at Laserfiche.Forms.Routing.ServiceTask.Execute (Int32 instanceId, IRoutingContext routingContext)

Do you know why this inconvenient may be presented?
I thank your comments on this regard

0 0

Replies

replied on October 17, 2018

Hello,

 

Did you every get a response/resolution to this?

I experienced this is my 10.2.1 environment.

Thanks

0 0
replied on October 22, 2018 Show version history

Hi Ken, I told you:

The forms have the rule that if a workflow does not start within 30 seconds, present the error that we reported

Our error was the following:
In the workflows that gave an error, we had the activity "Retrieve Business Process Variables" that obtained approximately 200 variables of forms, which caused the work flow to take about 40 seconds to start and to present the error "The call The Laserfiche Workflow API was unsuccessful. (The operation has expired.) [LFF5203-WFServerApiFault] ".

The solution was to choose fewer variables in the activity "Retrieve Business Process Variables" so that the workflow takes less than 30 seconds to start.

0 0
replied on November 1, 2018 Show version history

Hi Harold,

I don't recall us ever communicating on this issue but thanks for the response.

Looking through the various logs I do see Forms giving up after 30 seconds if the workflow does not start but I'm not quite sure how the number of variables being retrieved has to do with delay of the workflow starting. Once the workflow starts, the activity log in the workflow indicates it takes on average 1 second to retrieve the BP variables. Plus, this problem only occurs occasionally. I would think it would happen more often if this was truly the cause.

At least I have a better understand of the problem and can continue to research.

 

Thanks again

0 0
replied on November 1, 2018

Good Afternoon,

 

Would someone from Laserfiche be able to tell us if we can manually change the amount of time Forms waits for the workflow process to start?

0 0
replied on November 7, 2018

This response was the one that I received from Laserfiche support:

On the Workflow Server machine, go to the registry to HKEY_LOCAL_MACHINE \ SOFTWARE \ Laserfiche \ Workflow \ Options and create a new dword called "OperationTimeout" and set the value to be 300 (decimal). Create the "Options" key if it does not already exist.

After making this change, please perform an IIS reset and also restart the Workflow Server service.

Now try Forms again.

2 0
replied on November 8, 2018

Thanks!

0 0
replied on September 4, 2019

How about this scenario: Forms starts a Workflow, the workflow passes it back a variable successfully with Set BP Values activity, Workflow finishes successfully, but Forms is still waiting on the workflow to finish. It is in Progress for over 24 hours. No errors no clues in the logs. Could this still be the operationtimeout?

0 0
replied on September 5, 2019

Not likely, no.

0 0
replied on September 5, 2019

That is what I am trying to convey. The operationtimeout is not the root cause.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.