Unable to display this Web Part – XSLTListView and XSLTDataView web part issues in IE – RESOLVED

Just posting this for anyone that has been shot in the foot by the latest December CU for SharePoint 2010.

This is from the Microsoft article KB2639184 :

Create a list or library in SharePoint 2010. Open the list / library in SharePoint Designer. Close and hide the XSLTListView Web part on the page. Insert a DataForm web part on the page. If the list contains a large number of columns or custom XSL has been applied to the DataForm web part the following error message may be displayed:

“Unable to display this Web Part. To troubleshoot the problem, open this Web page in a Microsoft SharePoint Foundation-compatible HTML editor such as Microsoft SharePoint Designer. If the problem persists, contact your Web server administrator.”

You will also see System.StackOverflowException errors in the SharePoint log.

Now this issue arose after the installation of the June CU.  Microsoft in their wisdom reduced the timeout for XSLT transformation from 5 seconds to 1 second without giving the administrator the option of increasing it manually via Powershell.  The reduction is a securtity measure to reduce the risk of successfull DoS attacks.  However if you have an internal SharePoint installaton (which many companies do) this new change is fairly pointless.

The timeout essentially causes any modified XSLTListViewWebPart and XSLTDataViewWebParts to error intermittently when viewed in the browser.

However it was meant to have been fixed in the August CU.  Here is the major issue … Installing the December CU breaks the fix from August!!  I would recommend you DO NOT INSTALL the December CU until the next (February?) CU or hotfix is released.

The solutions offered by Microsoft are at this page: http://support.microsoft.com/kb/2639184.  However none of those options are particularly viable for us.  What we need is a hotfix and I will post an update should I get hold of one.

UPDATE:

there is now a hot fix available from Microsoft to resolve this issue,  you need to log a call with them and ask for sharepointfoundation2010-kb2597136-fullfile-x64-glb.exe

Once installed use the Powershell script below to make the change to the Timeout value.  Changing it to 2 seconds for us worked and the webparts are now showing fine.

SAMPLE PowerShell to set XsltTransformTimeOut

===========================================

$farm = Get-SPFarm

$farm.XsltTransformTimeOut = 5

$farm.Update()

Cheers,

Pete.

About these ads

6 thoughts on “Unable to display this Web Part – XSLTListView and XSLTDataView web part issues in IE – RESOLVED

  1. Thank you for posting this answer. It’s good to know that it’s an issue that requires a hotfix. My company runs Office 365 and we use SharePoint through that. I don’t know where our SharePoint is hosted, but my guess is that it’s in the cloud. So, when MS sends the hotfix, where do we run the hotfix?

  2. Thanks for the post. I m also having the same issue. I m getting Unable to display this webpart…message intermittently in the browser. Sometimes it takes 10 times refresh to see my DataFormWebPart, which is annoying. I went to check 14/LOGS but couldn’t find any meaningful error message. My DFWP displays correctly in the desginer. Once I get hotfix link in my email, where do I install it? Thanks.

  3. Pingback: Intermittent “Unable to display this Web Part” messages « The Chris Kent

  4. Pingback: michael greene » Unable to display this Web Part, FAST Search Center

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s