We have a Repeating Section with 14 columns. And the SharePoint list is being updated by an SSIS package in the backend. One of such entries made 61 rows. So, now the Repeating Section has 61 Rows & 14 Columns.
When edited the Nintex Form & tried to save/cancel, it gave an error with some correlation id. The correlation id said :
System.InvalidOperationException: Operation is not valid due to the current state of the object.
at System.Web.HttpValueCollection.FillFromEncodedBytes(Byte bytes, Encoding encoding)
How do we overcome this issue ?
Thanks in advance.
Solved! Go to Solution.
Actually the issue is not related to the Repeating Section. It's the no.of input elements in a page. By default, the limit on the number of form input elements that can be submitted to a page is 1000.
For the error item, Repeating Section alone has 61 X 14 = 854 (Text boxes - input html element). These 854 elements + the other input html elements on the page have have crossed the value 1000. I increased the limit to 5000.
In the Web.config I added the below App Setting and it worked !
<add key="aspnet:MaxHttpCollectionKeys" value="5000" />