You receive below error in SharePoint page containing DataForm web part with custom XSL applied, and also if your list contains a large number of columns.
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.
Correlation ID: XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
TroubleshootingBased on the Correlation ID, search the SharePoint ULS Logs to find more information and error related to this message.
Tip - Use the Merge-SPLogFile PowerShell command (SharePoint Management Shell - Run as Administrator) to get relative logs.
By digging into the logs, we get this useful error/exception - System.StackOverflowExceptionError while executing web part: System.StackOverflowException: Operation caused a stack overflow.
at Microsoft.Xslt.NativeMethod.CheckForSufficientStack()
at (XmlQueryRuntime , XPathNavigator )
at (XmlQueryRuntime , IList`1 )
at (XmlQueryRuntime , XPathNavigator )
at (XmlQueryRuntime , XPathNavigator , IList`1 , IList`1 )
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)
Reason for Error
Firstly, this is a known issue and a SharePoint 2010 limitation (KB 2639184 - https://support.microsoft.com/en-us/kb/2639184). Secondly, there is a Hotfix (Cumulative Update) to fix this.
This happens because the time allowed for doing the XSL transformation is exceeded and goes over 1 second (default SharePoint is 1 second).
If you create a page from SharePoint Designer which includes much of XSLT, the page will take more time to open. If the page takes more than than a second to open and load, you may come across this error.
Suggestions> Solutions provided here should work - https://support.microsoft.com/en-us/kb/2639184
> Another KB which describes similar issue - https://support.microsoft.com/en-us/kb/2597136
ResolutionYou need to execute below PowerShell command in SharePoint FARM from your SharePoint Server to change and increase the XsltTransformTimeOut value (default is 1 second)
Open SharePoint 2010 Management Shell 'run as administrator'
$spFarm = Get-SPFarm
$spFarm.XsltTransformTimeOut = [NEW INTEGER VALUE]
$spFarm.Update()
Example:
$spFarm = Get-SPFarm
$spFarm.XsltTransformTimeOut = 10
$spFarm.Update()
- That did'nt work, Issue type User not in directory - SharePoint external access error
- How to get SharePoint Online user details from person or group column using REST API
- Create SharePoint Site Collection with new Content database in existing web application
- Fix Power BI 404 not found error when connecting SharePoint Online List as Data Source
- How to get the SharePoint Tenant Login URL
- How to wrap column text in SharePoint Online Modern List Grid View using JSON formatting
- SharePoint Server 2016 installation System Hardware requirements
- Cannot load PowerApps form in SharePoint Online due to repeated authentication
- Change SharePoint search results FullTextSqlQuery RowLimit 10000
- How to create SharePoint Document Library
- How to exclude results from SharePoint Search
- SharePoint 2010 DataForm Unable to display this Web Part System.StackOverflowException
- Fix Error 2711 SQL RBS client - The installer has encountered an unexpected error. The specified Feature name ('Docs') not found in Feature table
- How to upload file programmatically to SharePoint Document Library using Server Object Model C# .Net
- SharePoint error cannot connect to the configuration database
- Drag drop files here option missing for SharePoint document library
- How to activate and create SharePoint Spaces feature for mixed reality experience - 2D/3D images and web parts
- [Fix] Office 365 Sharepoint One Drive Error: Something went wrong. This is a temporary issue
- SharePoint 2016 error - Could not find file ManageUserProfileServiceApplicationTenantSimplified.xml
- SharePoint List excel import - This table exceeds the maximum number of supported rows
- How to customize SharePoint Modern list form using JSON formatting
- New-SPLogFile PowerShell - create new SharePoint log file
- SharePoint Online REST API not returning all list items and limit to only 100 rows
- How to Get or Set SharePoint Document ID _dlc_DocId using PowerShell
- Get-ADUser PowerShell - Get AD user details using email address
- How to press shortcut CTRL + ALT + DEL on Windows Remote Desktop - HowTos
- How to remove app from Dock when closed [macOS Big Sur] - MacOS
- Get the Current Date using LocalDate in Java - Java
- Eclipse : A java Runtime Environment (JRE) or Java Development kit (JDK) must be available - Java
- Difference between using Scanner Class and String args for user input in Java - Java
- How to delete a dir or folder using Python code - Python
- Android: programmatically turn Bluetooth on or off using Java code - Android
- How to disable button in Bootstrap - Bootstrap