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

Question

Question

Failed to trigger workflow from Laserfiche Form

asked on January 13, 2016

Hi,

I tried to trigger a workflow from the laserfiche form when user submit the form, the process got suspended and in event viewer it shows the following error

1/14/2016 6:31:19 AM
Message: The underlying connection was closed: An unexpected error occurred on a send.
Stack trace:    at System.Net.HttpWebRequest.GetResponse()
   at Laserfiche.Forms.Routing.LFWorkflowService.Execute(Int32 instanceId, IRoutingContext routingContext)
   at Laserfiche.Forms.Routing.ServiceTask.Execute(Int32 instanceId, IRoutingContext routingContext)
Message: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.
Stack trace:    at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
   at System.Net.FixedSizeReader.ReadPacket(Byte[] buffer, Int32 offset, Int32 count)
   at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)
   at System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToken message, AsyncProtocolRequest asyncRequest)
   at System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest)
   at System.Net.Security.SslState.ForceAuthentication(Boolean receiveFirst, Byte[] buffer, AsyncProtocolRequest asyncRequest)
   at System.Net.Security.SslState.ProcessAuthentication(LazyAsyncResult lazyResult)
   at System.Net.TlsStream.CallProcessAuthentication(Object state)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Net.TlsStream.ProcessAuthentication(LazyAsyncResult result)
   at System.Net.TlsStream.Write(Byte[] buffer, Int32 offset, Int32 size)
   at System.Net.PooledStream.Write(Byte[] buffer, Int32 offset, Int32 size)
   at System.Net.ConnectStream.WriteHeaders(Boolean async)
Message: An existing connection was forcibly closed by the remote host
Stack trace:    at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
   at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
 

Workflow server is running smooth and i don't understand where the problem occurs,please help me to resolve this.

Thanks in Advance

0 0

Answer

APPROVED ANSWER
replied on January 19, 2016

On the Workflow Server computer where you have the Workflow Web Services installed, please confirm that the URL for the web application directory is valid and when tested, reports that the connection is successful.

Next, go to the Forms configuration page and verify that the value used as the Workflow Server is valid. From the Forms Server computer, confirm that you can open a web browser and go to http://[Workflow Server Value]/workflow and see the Workflow Web Services page.

If further assistance is needed, please open a support case. Include screenshots of the above configurations as well.

0 0

Replies

replied on January 14, 2016 Show version history

Hi there,

Are you using SSL on workflow and Forms?

You can try trouble shooting with this http://answers.laserfiche.com/questions/87148/Workflow-Server--The-remote-server-returned-an-error-500

 

 

0 0
replied on January 19, 2016

No,I am not using SSL in workflow and Forms.Is it mandatory to use SSL to trigger Workflow from Form?

Actually i need to save some fields data from the Laserfiche Forms to Database?Is it possible to do with the javascript?if possible,please send the sample code to insert the datas into database.

 

0 0
replied on January 19, 2016 Show version history

It's not mandatory to use SSL. To insert into database, you cannot use Javascript, you'll need the SQL activity in Workflow.

You can file a Support Case about the Workflow cannot connect issue.

0 0
replied on January 19, 2016

Hi,Actually I am planning to trigger the workflow from Form and using that workflow to insert the data into database,but using workflow service task the process gets suspended and getting following error

1/19/2016 4:22:57 PM
Message: The remote server returned an error: (404) Not Found.
Stack trace:    at System.Net.HttpWebRequest.GetResponse()
   at Laserfiche.Forms.Routing.LFWorkflowService.Execute(Int32 instanceId, IRoutingContext routingContext)
   at Laserfiche.Forms.Routing.ServiceTask.Execute(Int32 instanceId, IRoutingContext routingContext)
 

I think it might have communication issue between workflow server and forms.please guide me to resolve the issue.

Thanks

0 0
APPROVED ANSWER
replied on January 19, 2016

On the Workflow Server computer where you have the Workflow Web Services installed, please confirm that the URL for the web application directory is valid and when tested, reports that the connection is successful.

Next, go to the Forms configuration page and verify that the value used as the Workflow Server is valid. From the Forms Server computer, confirm that you can open a web browser and go to http://[Workflow Server Value]/workflow and see the Workflow Web Services page.

If further assistance is needed, please open a support case. Include screenshots of the above configurations as well.

0 0
replied on January 19, 2016

Hi Alexander,

I found the issue with the Workflow server name given in the Configuration page without port number.

Thank you guys for your support.It worked for me :)

0 0
replied on January 19, 2016

You're welcome. We're glad things are up and running.

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

Sign in to reply to this post.