Thursday, July 5, 2012

Setting WebPartLimits Attributes

One of my team member was face an issue regarding the web parts on a page i.e."The maximum number of Web Parts for all zones on this page has been exceeded". After analysis I found on that page there are 60+ web parts on that page. I am sharing the quick solution with you.

Resolution

To resolve this issue you have to set the Web Part limit in application web.config. file.

There are two Web Part limit attributes:
· MaxZoneParts specifies the total number of Web Parts allowed within all Web Part zones on a Web Part Page.
· PropertySize specifies the maximum number of bytes used to store Web Part properties on the server.
The following example sets the Web Part limit attributes

<SharePoint>
    <WebPartLimits MaxZoneParts="50" PropertySize="1048576" />
</SharePoint>

You just have to update the MaxZoneParts value to web parts count availabe on your page or exceed and update the PropertySize value.

<SharePoint>
    <WebPartLimits MaxZoneParts="100" PropertySize="1048576" />
</SharePoint>

I have one more quick solution, you can go to the users site admin screen by adding ?contents=1 to the end of the URL, and deleting web parts which aren’t needed.

Visit http://technet.microsoft.com/en-us/library/cc262787.aspx for SharePoint Server 2010 Software boundaries and limits.

No comments:

Post a Comment

SharePoint AI Innovations Reach General Availability

Microsoft continues to strengthen the foundation for AI-powered workplaces with the announcement that several SharePoint AI innovations are ...