I have a custom SharePoint 2013 Custom List. I have a column which is of type Multiple Lines of Text. In this column I am storing a very large string, which is essentially a serialized string with a combination of both XML and JSON. I am able to save this data successfully into that column.
Now, while trying to View the Item, I am getting the exception given below. But while editing the item, I am able to open the Edit Form without any exception. Similarly, everything shows up properly in the Default View also. The issue seems to be only with View Item form. Can anyone please help? I also tried to set/increase the Max Length of JSON to integer maximum value in web.config
, but without any success.
Exception:
[InvalidOperationException: Error during serialization or deserialization using the JSON JavaScriptSerializer. The length of the string exceeds the value set on the maxJsonLength property.] System.Web.Script.Serialization.JavaScriptSerializer.Serialize(Object obj, StringBuilder output, SerializationFormat serializationFormat) +131 System.Web.Script.Serialization.JavaScriptSerializer.Serialize(Object obj, SerializationFormat serializationFormat) +57 Microsoft.SharePoint.WebControls.ClientFormManager.OnPreRender(EventArgs e) +225 System.Web.UI.Control.PreRenderRecursiveInternal() +155 System.Web.UI.Control.PreRenderRecursiveInternal() +240 System.Web.UI.Control.PreRenderRecursiveInternal() +240 System.Web.UI.Control.PreRenderRecursiveInternal() +240 System.Web.UI.Control.PreRenderRecursiveInternal() +240 System.Web.UI.Control.PreRenderRecursiveInternal() +240 System.Web.UI.Control.PreRenderRecursiveInternal() +240 System.Web.UI.Control.PreRenderRecursiveInternal() +240 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4090