Friday, April 21, 2017

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

We had a custom webpart deployed in the SharePoint page. Faced this issue when loading the page and same was working before.

Error found in Event log:
System.StackOverflowException: Operation caused a stack overflow.
at Microsoft.Xslt.NativeMethod.CheckForSufficientStack()
at dvt_groupfield(XmlQueryRuntime )
at <xsl:template name="dvt_1.body">(XmlQueryRuntime , IList`1 , Double , XPathNavigator )
at <xsl:template name="dvt_1">(XmlQueryRuntime , XPathNavigator )
at Root(XmlQueryRuntime )
at Execute(XmlQueryRuntime )
at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter writer)
at Microsoft.SharePoint.WebPartPages.DataFormWebPart.ApplyXslTransform(XPathNavigator dataNavigator, XslCompiledTransform xslCompiledTransform, XsltArgumentList xmlArguments)
at Microsoft.SharePoint.WebPartPages.DataFormWebPart.ExecuteTransform(XslCompiledTransform xslCompiledTransform, XsltArgumentList xmlArguments, Boolean bDeferExecuteTransform)
at Microsoft.SharePoint.WebPartPages.DataFormWebPart.PrepareAndPerformTransform(Boolean bDeferExecuteTransform)

Reason:

This issue occurs when the query took longer than one 1 second to complete as normally XsltTransformTimeOut set to 1 in SP2013 farm.

To get your Timeout interval:

PS U:\> $farm=Get-SPFarm
PS U:\> $farm.XsltTransformTimeOut

we got value returned as 1
Increase timeout interval to fix this issue:

PS U:\> $farm=Get-SPFarm
PS U:\> $farm.XsltTransformTimeOut=20
PS U:\> $farm.update

You can also update to 5 and monitor for few days, if it is observed to be fine, then you can have 5 seconds as interval



$farm=Get-SPFarm
$farm.XsltTransformTimeOut=5
$farm.update

No comments:

Post a Comment

SharePoint 2013 OWA: Server Error: We're sorry. An Error has occurred. We've logged the error for the server administrator Use...