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

Question

Question

Invalid Form Data was sent t the server

asked on November 20, 2016 Show version history

Hi,

Our client is using LF 10.1 RIO with Forms.

We are testing our solution before going live and keep getting this error message on user's computers. Even though they or anyone else has the forms designer open.

Please can you educate me on what this error is and what might fix it?

 

Error displayed when Submit button is clicked.

Error captured in the Event Log.

Invalid form data was sent to the server. This can occur if the form is out of date. Please refresh this form and try again. [LFF2106-InvalidDataSent]

Details:
URL: /Forms/Form/Submit?source=formiframe
Error: InvalidDataSent
Date: 11/21/2016 4:48:10 PM (AUS Eastern Standard Time)
HTTP Status Code: 400
User: REDACTED
IP: 192.168.64.151
Browser: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.99 Safari/537.36

Stack Trace:
Caught exception: Laserfiche.Forms.CommonUtils.Exceptions.LFFormsException
Message: Invalid form data was sent to the server. This can occur if the form is out of date. Please refresh this form and try again. [LFF2106-InvalidDataSent]
   at E_Forms.Controllers.FormController.RetrieveFormDataFromUqid(String uqid)
   at E_Forms.Controllers.FormController.Submit()
   at lambda_method(Closure , ControllerBase , Object[] )
   at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters)
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters)
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.<BeginInvokeSynchronousActionMethod>b__39(IAsyncResult asyncResult, ActionInvocation innerInvokeState)
   at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`2.CallEndDelegate(IAsyncResult asyncResult)
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod(IAsyncResult asyncResult)
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3d()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethodWithFilters(IAsyncResult asyncResult)
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass21.<>c__DisplayClass2b.<BeginInvokeAction>b__1c()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass21.<BeginInvokeAction>b__1e(IAsyncResult asyncResult)

0 0

Replies

replied on February 20, 2017 Show version history

For anyone who ran into this issue: if you are using Laserfiche Directory Server to do authentication, there is a know issue that the session will be time out for 1 hour which we are still working on fixing it.

If you ran into it randomly no matter use Laserfiche Directory Server or Laserfiche Server to do authentication, this is due to the FormsAppPool is recycled before some data cached by it is saved to database. To reduce the chance of the issue happen, you can change the Recycling Conditions fixed interval for FormsAppPool to specific time such as 3:00 which is 3:00 AM in the morning so less chance that there is user filling the form. 

1 0
replied on February 21, 2017

Thanks.. Even though we took a different path, I still have projects where this is a good way to do things. If I encounter any issues, I will raise it here...

0 0
replied on November 20, 2016

You get this error immediately after login and open a task to perform or after wait for some time after login then perform the task?

0 0
replied on November 20, 2016

We get this immediately.

0 0
replied on November 20, 2016

Are you using Laserfiche Directory Server for authentication in Forms? Can you click save again in User Authentication tab? Also please check whether the value for  Idle Time Out settings in FormsAppPool is the default value 20 minutes(http://screencast.com/t/eE0928J6UkC)

0 0
replied on November 21, 2016

Hi Xiuhong,

 

Yes we are using DS for authentication in Forms. Save button was not active so I changed the Sync interval and saved it again. And FormsAppPool is as its displayed in the screenshot with a small exception of Identity (Mine has Service account instead of ApplicationPoolIdentity, let me know if this is something which needs to be addressed).

Thanks,

Adarsh

0 0
replied on November 22, 2016

You can try set the Idle Time Out setting to a bigger value such as 60 minutes to see whether it will get resolved. This issue seems have same root cause as

https://answers.laserfiche.com/questions/110760/Forms-Timeout-length

 But I can't reproduce it from my side.

0 0
replied on November 22, 2016

Hi Xiuhong,

This issue is separate from the time-out increase. Are you suggesting that this error is somehow linked to time-out?

This is now happening more frequently at random user tasks. If we close the window and open again, it works but this isn't convenient. The workflow has been configured to wait for Workflow Service Task to complete so a background update of the form isn't likely to be taking place. Can you suggest what elase I can check.

Thanks,

Adarsh

0 0
replied on November 23, 2016

It should be relate to some settings for the FormsAppPool in Application Pools. Can you check whether there is any noticeable difference between yours and mine:

0 0
replied on January 2, 2019
Are there any new updates on this issue. We are experiencing this currently.
0 0
replied on January 13, 2019

What version of Forms are you using? We enhanced this with Forms 10.2.1 and Forms 10.3.1: If you are using 10.2.1, please apply the latest update 4, If you are using 10.3.1, please apply the latest update 2. If you still run into it after update to latest version. then please open a support case with your VAR with details for how to reproduce this issue. 

0 0
replied on August 19, 2020

Has any one found a solution for this?

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

Sign in to reply to this post.