Hello,
I have a Process which re-uses tasks and workflows, essentially until the user is finished entering in all the data, and approvals.
User enters in data > Workflow saves data to DB and Clears page > User enters more data.
This goes on until the User is finished, then goes off to approvals.
I have recently started hitting this error:
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: (413) Request Entity Too Large.
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)
At this point, the Affected Form seemingly cannot run any more workflows.
I found this post:
https://answers.laserfiche.com/questions/174587/413-Request-Entity-Too-Large--Workflow-Web-Service-API
And was able to increase the Max Size as described.
Web\Laserfiche.Workflow.Web\Web.Config
Default MaxReceivedMessageSize was:
10485760
Doubled it to:
20971520
Same here:
Laserfiche.Workflow.Service.exe.config
Default was 1024000000.
Doubled to 2048000000.
I have restarted services, and Recycled Workflow Web Services App Pool.
This resolved the issue for a bit longer, but the issue just returned several tries later (Same instance).
Are there any limitations to sending the user back to the same user task in the Process?
Is there any way to see what could be causing this issue specifically?
I am not sure why the data would be larger each time, it is just updating SQL tables via workflow, then clearing the form.
I greatly appreciate any guidance.
Thank You!