SharePoint designer – How to fix XSL Data View error: “Unable to display this Web Part”

I found an interesting thing about the error message I was getting with SharePoint Designer. The error is:

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

I had a complicated Data view web part that I did not want to recreate.

The Solution:

Open the aspx file in notepad from SharePoint Designer. If you notice a bunch of HTML markup formatted as “>” etc, then open the file normally in SharePoint designer Code View. Copy ALL the code and paste it into Notepad. Copy the code from notepad and replace your code view text. Save and view in browser. No more XSL DATA VIEW ERRORS!

The code view actually contains a rich text type of rendering. When you copy it out and paste it in notepad, it loses all of the special formatting. This allows the page to render correctly.

Advertisements

2 thoughts

  1. hi,

    the solution didnt work for me .. the only thing i did is makeing the column width wider and am getting this error

    do you have another solution?

    1. It is possible you have another second issue as well. This error is generic and this post is for random non-code related breaks. (if you are 100% confident in XSLT and your change and have tested it on another server and if it breaks randomly on different servers, this fix will work). Hope that helps.

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 )

Google+ photo

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

Connecting to %s