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

Question

Question

Which argument is out of range, what is an argument?

asked on July 22, 2021 Show version history

Forms is giving this error on submission.

Specified argument was out of the range of valid values. 
Parameter name: index

How do we increase the range of the index? This doesn't appear to be a template field size limitation, but instead an internal variable that we have no access to extend the length of. What is the maximum?

Oh does this mean we are referencing an index that doesn't exist inside of an array? I have no idea where to start troubleshooting this.

0 0

Replies

replied on July 22, 2021

Where are you getting this error? Save to repository? 

I generally see it if the field has a max character limit and the Forms field value is too long. 

Do you see any other errors in the error log or event viewer? 

0 0
replied on July 22, 2021

This is the only error, it is in event viewer right after submission of the form. I guess it is trying to tell me which field in the rest of the error but I can't read this. Where is the field Variable name so I can double check.

 

at System.Linq.Enumerable.ElementAt[TSource](IEnumerable`1 source, Int32 index)
   at Laserfiche.Forms.Routing.VariableXMLGenerator.GenerateXmlFromSubmissionDataFromCache(SubmissionDataSet sds, Int32 formId)
   at E_Forms.Controllers.FormController.Thanks(String parentView, Int32 formId, Int32 bpId, Int32 submissionId, Int32 option, Boolean HideHeader, SubmissionDataSet submissionData, FormDataSet formData, Boolean inMobileIframe, Boolean NeverShowFormSubmission)
   at E_Forms.Controllers.FormController.Submit(FormCollection collection)
   at lambda_method(Closure , ControllerBase , Object[] )
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters)
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c.<BeginInvokeSynchronousActionMethod>b__9_0(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.<>c__DisplayClass11_0.<InvokeActionMethodFilterAsynchronouslyRecursive>b__0()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass11_2.<InvokeActionMethodFilterAsynchronouslyRecursive>b__2()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass11_2.<InvokeActionMethodFilterAsynchronouslyRecursive>b__2()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethodWithFilters(IAsyncResult asyncResult)
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass3_6.<BeginInvokeAction>b__4()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass3_1.<BeginInvokeAction>b__1(IAsyncResult asyncResult)

0 0
replied on July 22, 2021

Most posts about the argument index are from QF and WF but I found someone else with the same problem. They claim simply upgrading to 10.3.1 fixes it, but we are on version 11. I am thinking it was a coincidence that they didn't get it after upgrading, nothing to do with the version itself.

No one yet has found the actual variable causing the problem. If I can't find it, I will have to send the whole process into support.

https://answers.laserfiche.com/questions/128350/Inner-exception-SystemArgumentOutOfRangeException#147462

0 0
replied on August 10, 2021

Did you have to start a case with LF support? 

0 0
replied on August 10, 2021

Because downloading and re-uploading the process fixed the issue on your side, I can't send it in to support. If I send them a copy of the whole process and they upload it in their test environment, they will not be able to reproduce.

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

Sign in to reply to this post.