I have created a linked data source which merges contents of 2 lists. I now want to display the items using grouping. I created a custom aspx page and inserted a data form web part, then I enabled the grouping by 1 column. In SPD everything seems OK, but in the browser I get error

"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."

When I remove the grouping everything displays OK both in SPD and the browser.

I know this is a known issue because the timeout for XSLT transformation is only 1 second - I have already increased it to 5 seconds and I still get the same error.

The 2 lists combined do have a lot of items (about 300 until now) and there will be even more (I plan to add more lists to the linked data source).

Is there a way to overcome the error? Perhaps there is a different solution for grouping, aside from the OOTB one? Or is there another way to simplify the xslt but retain grouping? What is the reasonable maximum timeout period I can put and is this a good solution?

Forgot to mention - I am using sharepoint foundation 2010.

Thank you in advance!

1 Answer 1


could be a couple of things!

as your using xslt it could be somthing simple ;)

Simply change the &nbsp to &#160 for the XSLT code will solve this problem.

Unable to display this Web Part. To troubleshoot the problem, open this Web page ... & Error: Reference to undefined entity 'nbsp'

It is indeed a little weird.

Generally, this error happens when restoring content in SharePoint.

Please check the ListID value following steps below:

  1. Go to site actions > site settings > modify all site settings > site administration > site libraries and lists

  2. Right-click your list and select copy shortcut and paste it into notepad N1. Then you can get the ListID from the URL like:

  1. Then go to your page in the SharePoint designer in split mode. And select the DFWP in the Design mode part and copy the code in the Code mode part into notepad N2. Then search ListID in N2 and you can get the list id value from DefaultValue property.

  2. Then compare them. If they are different, replace all the ListID value with the current one in the code part in N2. Then copy it back your page. If they are same, please provide information about your keyword filed and other tests. Also, you can try to save it and open it in your site and then check the event logs and uls logs to get more information.


you can also get this message when there is too much data to return resulting in that error message! you would need to set some filtering on the result when querying!

Groupby programmatically

SPList plList=oWeb.Lists["MyList"];

  // create new default view that is grouped
    string viewQuery = @"
        <GroupBy Collapse=""FALSE"" GroupLimit=""100"">
          <FieldRef Name=""Year"" Ascending=""FALSE"" />
          <FieldRef Name=""Year"" Ascending=""FALSE"" />
          <FieldRef Name=""Period"" Ascending=""FALSE"" />

    StringCollection viewFields = new StringCollection();

    plList.Views.Add("Grouped By Year", viewFields, viewQuery, 100, true, true, SPViewCollection.SPViewType.Html, false);


another method inline with your way using sharepoint designer!

Creating an XSLT DataView for a sharepoint list



if your talking about "Groupby programmatically" means you will have to do a custom webpart that will have that code within! its not hard atall! if that is too much than you can do this way!


all else fails than it sounds like a bug! for me i would cutom code it as it would work but for you it should work! I did find this tho and its seems like the same issue and that you would need to contact microsoft for the fix, its an exe file and needs to come from them only!


hope it solves your buggy issue!

  • Thank you for your response! I tried the first two solutions, but it did not help. Then I want to test your third solution but I don't know where to put the code? Sorry I am a beginner at this.
    – P.G
    Jun 28, 2013 at 13:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.