I'm getting an error in the Product Ribbon Conditions. When opening an edit condition dialog I get a "Retrieving condition types failed" alert. When inspecting the Ajax request sent I the following details:
Request URL: http://websiteurl/Admin/ConditionsAdmin/GetConditionTypes
Status Code: 500 Internal Server Error
Request pay load: {"availableConditionTypesIds":"{\"4\":[0,2,4,3,5,1],\"3\":[1,0,4,5,11,12,2,8,10,6,7,3,9],\"5\":[]}"}
Error message: "Error during serialization or deserialization using the JSON JavaScriptSerializer. The length of the string exceeds the value set on the maxJsonLength property."
I have found that the problem has to do with the input. When changing the request payload to:
{"availableConditionTypesIds":"{\"4\":[0,2,4,3,5,1],\"3\":[1,0,4,5,11,12,2,8,10,6,7,3,9]}"}
.. the request works fine. I can't comprehend why. I have two different installations of the site. The conditions work fine on one and not the other. The databases (the SS_C_ tables and the SS_PR_ProductRibbon) are exactly the same.
Can anyone help?