Monday, January 02, 2012 11:18 AM
I am getting an error on load of the XSLListviewWebpart webpart randomly and on refresh of the page it works fine. The error is:
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.
I checked the logs.The log is as follows:
Error while executing web part: System.StackOverflowException: Operation caused a stack overflow.
at SyncToNavigator(XPathNavigator , XPathNavigator )
at <xsl:template name="FieldRef_ValueOf">(XmlQueryRuntime , XPathNavigator , XPathNavigator )
at <xsl:template match="FieldRef" name="FieldRef_DateTime_body" mode="DateTime_body">(XmlQueryRuntime , XPathNavigator , XPathNavigator )
at <xsl:template match="FieldRef" name="FieldRef_PrintField" mode="PrintField">(XmlQueryRuntime , XPathNavigator , XPathNavigator , Double , String )
at <xsl:apply-templates mode="PrintFieldWithECB">(XmlQueryRuntime , XPathNavigator , XPathNavigator )
at <xsl:template match="FieldRef" name="FieldRef_printTableCell_EcbAllowed" mode="printTableCellEcbAllowed">(XmlQueryRuntime , XPathNavigator , XPathNavigator , String )
at <xsl:template match="Row" mode="Item">(XmlQueryRuntime , XPathNavigator , IList`1 , IList`1 , Double , Double )
at <xsl:template match="View" mode="RenderView">(XmlQueryRuntime , XPathNavigator )
at <xsl:template match="View" mode="full">(XmlQueryRuntime , XPathNavigator , String )
at <xsl:template match="View" name="View_Default_RootTemplate" mode="RootTemplate">(XmlQueryRuntime , XPathNavigator , String )
at <xsl:template match="/">(XmlQueryRuntime )
at Root(XmlQueryRuntime )
at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter writer, Boolean closeWriter)
at System.Xml.Xsl.XmlILCommand.Execute(IXPathNavigable contextDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter results)
at System.Xml.Xsl.XslCompiledTransform.Transform(IXPathNavigable input, XsltArgumentList arguments, XmlWriter results)
at Microsoft.SharePoint.WebPartPages.DataFormWebPart.ExecuteTransform(XslCompiledTransform xslCompiledTransform, XsltArgumentList xmlArguments, Boolean bDeferExecuteTransform)
at Microsoft.SharePoint.WebPartPages.DataFormWebPart.PrepareAndPerformTransform(Boolean bDeferExecuteTransform)
I found that it is because 'In SharePoint 2010 the XSL transform cannot take longer than 1 second.' And I got the solution for the dataformwebpart from the following link:
But I want solution for XSLListviewWebpart.
Wednesday, January 04, 2012 7:52 AMModerator
Thursday, January 05, 2012 8:33 PM
XSLTListViewWebPart inherits from DataFormWebPart. The same issue applies to it. Basically, if the XSLT transforming takes longer tham 1 sec, the SP server will throw above error.
The coming Feb CU will address this issue and you will be able to use PowerShell to adjust the timeout value.
Jing Wang | Microsoft Online Community Support
Tuesday, January 10, 2012 10:40 AM
Hi,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
Thursday, February 09, 2012 2:52 PM
Hello Jing Wa,
Is there a known release date for the February 2012 CU?
Tuesday, February 14, 2012 4:54 PM
Thanks for the the update.
Unfortunately, I am also facing the same issue and contacted Microsoft for the said Hotfix last week. But I don't seem to have received any response until now. Also, I don't see any page related to the KB2597136. So I am not sure of any ways I can fix this problem.
Can you please help me to resolve this issue?
Thursday, February 16, 2012 9:01 PM
Hi, I'm having this problem on the dataviewwebpart. Do you (or anyone) know if this powershell as it stands will reppair that as well, or is there a separate property, such as $farm.DataViewTransformTimeOut = 5 that would be used?
Wednesday, February 22, 2012 9:38 PMModerator
Hi Peter and all,
Please note that there is not a released hotfix at this point and there has been no official release from Microsoft as of this writing that fixes the problem.
Thursday, February 23, 2012 3:58 AM
What about Sharepoint Online ? Will there be any fix for that.
Thursday, February 23, 2012 1:33 PMModerator
SharePoint Online is patched routinely.
Monday, February 27, 2012 6:58 PM
Jing Wa's statement is still accurate though, no? "The coming Feb CU will address this issue and you will be able to use PowerShell to adjust the timeout value".
Friday, March 02, 2012 2:40 PM
Can i please request you to unmark / mark the correct response then? Currently, 2 different answers are marked as Answers and its causing confusion for anyone who looks at the post.
Friday, March 02, 2012 8:09 PM
I am happy to have found dialog on this problem. It's a relief to know that other developers are experiencing it.
It's now 02 March 2012 and we have been having the problem for several months.
My company is using SharePoint as part of MS Office 365. We are getting the same intermittent "Unable to display Web Part" error when we first open some Lists and when we try to filter the List (e.g. when we filter a Task list on the Assigned To column). The problem only happens sometimes, and refreshing the page usually solves the problem.
Is there a fix for the MS Office 365 version of SharePoint?
If the same hotfix is necessary, then where do we run the hotfix?
Thursday, March 08, 2012 4:20 PM
For those having the same problem, the Feb CU has been released
Tuesday, May 15, 2012 6:35 AMI am seeing this too. I have raised the timeout to 3 seconds, and it still intermittently happens. What is an acceptable limit?