Versions used: Sitecore 8.1 rev. 151207 (Update-1).
When using general link, if you try to expand an item that has a large number of children (which should be avoided, but sometimes is out of your hands; in our case, they were commerce items imported by the module) you will notice it never ends loading the children. If you open the browser console, you will see an error like the following:
When you click on the
+ icon, an AJAX request is sent to an Item Web API method which is using the class
maxJsonLength default size is 2MB. We tried adding setting
<jsonSerialization maxJsonLength="######"/> in web.config but it didn’t fix the issue.
We contacted sitecore support about this and it was flagged as a bug (ref no. 94776). The official solution is here. It now allows us to set the maximum allowed size in a new setting called
Please let me know what you think and/or if you can spot any errors.