Thursday 27 August 2015

SharePoint 2013 Custom Search - Part 3 - Display Templates

This is the final part in a three-parter on leveraging SharePoint 2013 custom search and a business solution, this follows directly on from SharePoint 2013 Custom Search - Part 2 - Result Sources and Query and will focus on the display of results.

SharePoint 2013 makes heavy use of display templates throughout the platform. Microsoft have now made it easier than using XSLT (which is a relief!) to display search results and in a similar way to the way the masterpages are controlled, you simply upload a html/javascript version of your display template and SharePoint - via the use of jiggery-pokery and magic - creates the necessary .js file! Awesome!

Ok, so lets get to it! We saw before we 

The amount of data that was returned by a data connection has exceeded the maximum limit that was configured by the server administrator SharePoint infopath 2010 error

So we have a lot of InfoPath forms in my current company and an error that appeared recently was this:

The amount of data that was returned by a data connection has exceeded the maximum limit that was configured by the server administrator.

Click OK to resume filling out the form. You may want to check your form data for errors. 







Reason:The warning message usually comes if the Default data connection response size increases. By default, The Default data connection response size is set to 1500kb for InfoPath Form Services. In my case, the data connection response size was already 8000kb, so I needed to increase it further.
Resolution:Open SharePoint 2010 Central Administration. 
Go to General Application Setting and then click on Configure InfoPath Forms Services from InfoPath forms Services section as shown in the figure below:



Then change the Data Connection Response Size to something higher, in my case I changed to 21200kb.



Then press ok.

Refresh your site and reopen the InfoPath form, this time without this warning message.