XLV Bug: Unable to use folders with cross-site XLV

As I was writing up a post in my collection of bugs with the XSLT List View Web Part I received a comment on a previous post regarding using the XLV with a list from a different site. The commenter (thanks Roy!) was reporting an issue when viewing a document library from one site on another site – but only when trying to use folders in the library!

I’ve therefore added this post to my series:

The Bug

This is a very straight forward bug to describe. You place an XSLT List View Web Part of your document library onto a different site than where the library resides – perhaps by saving the web part into the gallery through SharePoint Designer, or perhaps by creating the .webpart file manually. After doing so you try to click on a folder item to see the contents of that folder in your XLV – as per the expected behaviour. In doing so you get to see an error message like this:
XLV Bug No Item Exists Error

This error seems to occur no matter if you add the web part through SharePoint Designer or via the browser.

Example

Here’s an example of this in action. I’ll first create a document library containing a folder. Using SharePoint Designer 2010 I’ll then save a web part to the gallery for this document library. Adding this web par to the site where the library exists via the browser and I get the web part, fully functional, as expected.
XLV Folder View

Now, I navigate to a different site and add the web part again. At first glance it appears that everything is working as expected – however I then click on a folder to view the contents of that folder. BOOM – that’s where I see the error message shown above.

Explanation & Workaround

I haven’t been able to find the root cause of this issue – however my suspicion is that this is an error in the out of the box XSL. This is because the error message seems fairly clear that it is looking in the ‘wrong place’, i.e. in the current site rather than the library’s site. This feels like an error that could be foreseen/ bypassed in the XSL to me.

In terms of a workaround then I’m stumped again unfortunately. The only option I can think of is to avoid the situation by setting up your view to not sure folders – which is less than ideal.

share and enjoy
  • Print
  • Twitter
  • Digg
  • del.icio.us
  • StumbleUpon
  • Yahoo! Buzz
  • Google Bookmarks
  • Facebook

5 comments to XLV Bug: Unable to use folders with cross-site XLV

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>