Forum Discussion
Per-location view error
Sorin Sandu : Please check these settings in SharePoint site where you were trying...
- On the SharePoint site, click the Settings button (Gear icon), and then click Site Settings.
- Under Site Actions, click Manage Site Features.
- Activate the Metadata Navigation and Filtering feature.
- Locate the Library Settings of the document library in question.
- Click Per-Location View Settings.
- Change the folders to have the default views that you want.
- Go back to Library Settings for that library, and then click Metadata navigation settings.
- Add Folders and Content Type to the Selected Hierarchy Fields box, and then click OK.
- TroyStarrJul 29, 2021
Microsoft
Thanks Sorin Sandu, these details are very helpful. We're following up to identify the best approach to fix this issue.
- Denis MolodtsovOct 20, 2022Brass Contributor
TroyStarr
Perhaps it's related: We are getting an error when trying to access the "SharePoint structure view" when adding a reference to a document or a picture. In our case, to replicate an issue, we can replicate the exact same error this way:We recently upgraded from SP 216 to SE. And this is this started occurring. This is not happening if we create an empty site collection from scratch. So, some old data + a database upgrade process breaks this functionality in SE. At least in our farm.
Error:
System.Runtime.InteropServices.COMException: Exception from HRESULT: 0x80131904 at Microsoft.SharePoint.Library.SPRequestInternalClass.GetWebAndChildrenNSInfo(String bstrUrl, Guid gSiteId, Guid gWebId, UInt32 dwOptions, Boolean bGetPath, String bstrExpandPath, UInt32 dwWebUrlPrefixLen, Object& pvarThisWeb, Object& pvarSubwebs, Object& pvarLists, Object& pvarExpandedNodes, UInt32& pdwThisWebCount, UInt32& pdwSubwebCount, UInt32& pdwListCount, UInt32& pdwExpandedNodeCount) at Microsoft.SharePoint.Library.SPRequest.GetWebAndChildrenNSInfo(String bstrUrl, Guid gSiteId, Guid gWebId, UInt32 dwOptions, Boolean bGetPath, String bstrExpandPath, UInt32 dwWebUrlPrefixLen, Object& pvarThisWeb, Object& pvarSubwebs, Object& pvarLists, Object& pvarExpandedNodes, UInt32& pdwThisWebCount, UInt32& pdwSubwebCount, UInt32& pdwListCount, UInt32& pdwExpandedNodeCount)