SharePoint Asked by Cory on January 4, 2021
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
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP