This article was created in response to a support issue logged with K2. The content may include typographical errors and may be revised at any time without notice. This article is not considered official documentation for K2 software and is provided "as is" with no warranties.
When adding in a rule on K2 Designer, a problem appears when saving.
You cannot add new rules to an existing form. After clicking the OK button, the rule editor closes and after a slight pause, a blank version of the rule designer popup appears.
This behaviour occurs due to large amounts of rules configured on forms and views.
By increasing the MaxRequestLength,maxQueryString and maxAllowedContentLength you can resolve this issue.
Add or change the below entries in
C:\Program Files (x86)\K2 blackpearl\K2 smartforms Designer\web.config
1. maxRequestLength changed from 1500000 to 52428800
<httpRuntime maxRequestLength="52428800" requestValidationMode="2.0" enableVersionHeader="false" sendCacheControlHeader="false" executionTimeout="320" />
2. maxQueryString set to 2147483648
3. Added maxAllowedContentLength="2000000000"
<add verb="GET" allowed="true" />
<add verb="POST" allowed="true" />
<add verb="HEAD" allowed="true" />
<requestLimits maxQueryString="2147483648" maxAllowedContentLength="2000000000"/>
Please perform a backup of the web.config before changing the entries!