I am trying to apply a xslt list view from one site to a bunch of other sites. This is a filtered calendar web part in list style not calendar view, so I cant use an overlay. I am adding the web part on the landing page of each site. The landing page also has a document library web part on the page.
There are no issues when the web part is added. However once I try to click into folders for the document library the page throws an error. This does not happen with other list view web parts (links, library) that have been added from other sites only once the calendar has been added.
Error that I get from ULS is:
System.ArgumentException: Value does not fall within the expected range. at Microsoft.SharePoint.SPWeb.GetWebRelativeUrlFromUrl(String strUrl, Boolean includeQueryString, Boolean canonicalizeUrl) at Microsoft.SharePoint.SPWeb.GetItem(String strUrl, Boolean bFile, Boolean cacheRowsetAndId, Boolean bDatesInUtc, String fields) at Microsoft.SharePoint.SPList.EnsureCurrentFolderInfo() at Microsoft.SharePoint.SPList.DoesUserHavePermissions(SPBasePermissions permissionMask, Boolean checkFolder) at Microsoft.SharePoint.Utilities.RightsSensitiveVisibilityHelper.UserHasRights(PermissionContext permissionContext, SPBasePermissions permissions, PermissionMode permissionMode, SPContext context, SPWeb contextWeb, SPList contextList) at Microsoft.SharePoint.Utilities.RightsSensit…
At first I thought this had to do with some custom XSL I had added. However I tried it without the custom xsl and still had the same issue.
Anyone else experience this. I am running this issue with SharePoint 2010 Foundation.
XSL List Views should only be used for lists and libraries on the same site. The views themselves often seem to work but they can corrupt the source list/library. The solution I have used in the past to solve this is to delete the offending web part, delete the list/library and then restore from the recycle bin.
To display list/library contents from another site you should use the CQWP, a Core Search web part or potentially create a custom source in the site you want the page linked to the list/library.
Personally, I would use the CQWP. The concepts of customising the XSL are basically the same though you do need to tweak the properties of the web part to use your XSL files. I have a post on my blog which goes through this if you need more details - http://paylord.wordpress.com
Answered by Dave Paylor on January 4, 2021
2 Asked on January 6, 2022
1 Asked on January 6, 2022
1 Asked on January 6, 2022 by jes516
1 Asked on January 6, 2022 by ah-jamali
1 Asked on January 4, 2022
3 Asked on January 4, 2022 by default_noob_network
1 Asked on January 4, 2022 by j-choe
2 Asked on January 2, 2022 by rothrock
1 Asked on January 2, 2022 by drvr
1 Asked on January 2, 2022 by scott-davis
3 Asked on January 2, 2022 by lieptas
0 Asked on January 2, 2022
1 Asked on December 31, 2021
1 Asked on December 31, 2021 by okmqaz135
2 Asked on December 31, 2021 by kandace
2 Asked on December 31, 2021 by namwar-rizvi
3 Asked on December 31, 2021
1 Asked on December 31, 2021 by ahmed-alsharkawy
Get help from others!