Cannot break Permissions Inhertitance to Document Library
Hi, I have a document Library under a site and I am trying to Break permissions inheritance. I receive the following error: "Operation aborted (Exception from HRESULT: 0x80004004 (E_ABORT)) at Microsoft.SharePoint.Library.SPRequestInternalClass.ResetSecurityScope(String bstrUrl, UInt32 dwObjectType, String bstrObjUrl, Guid guidDoc, Boolean bUnique, Boolean bCopyRoleAssignments, Guid& pguidScopeId, Int32& piError) at Microsoft.SharePoint.Library.SPRequest.ResetSecurityScope(String bstrUrl, UInt32 dwObjectType, String bstrObjUrl, Guid guidDoc, Boolean bUnique, Boolean bCopyRoleAssignments, Guid& pguidScopeId, Int32& piError)" This only happens to the specific Document Library. Any ideas ? Dimitris Porikos
November 11th, 2011 6:02am

This Document Library is custom document Library or? Had you tried break inheritance through powershell? Like: $webUrl="your web url" $spList="your list name" $spWeb = ([Microsoft.SharePoint.PowerShell.SPWebPipeBind]$webUrl).Read() $spList = $spWeb.Lists[$listName] $spList.BreakRoleInheritance(true); #true to copy role assignments from the parent object to this object; false to assign only the current user to security roles. $spList.Update() $spWeb.Dispose()
Free Windows Admin Tool Kit Click here and download it now
November 11th, 2011 9:14am

Which way you have tried to break the inheritance on the document library? If using UI then refer http://office.microsoft.com/en-us/sharepoint-server-help/manage-permissions-for-a-list-library-folder-document-or-list-item-HA010021564.aspx#BM9 Hope this helps youBhushan | http://www.passionatetechie.blogspot.com | http://twitter.com/BhushanGawale
November 11th, 2011 9:31am

Hello, @Bhushan: I tried to break inheritance by using the UI: Document Library Settings > Permissions > etc... @cchitsiang: On the line "$spWeb = ([Microsoft.SharePoint.PowerShell.SPWebPipeBind]$webUrl).Read()" I get this error: "Unable to find type [Microsoft.SharePoint.PowerShell.SPWebPipeBind]: make sure that the assembly containing this type s loaded." I also tried to access the list by using the following code: $spSite = new-object Microsoft.SharePoint.SPSite("http://portal") $spWeb = $spSite.OpenWeb("Team Site") $spList = $spWeb.Lists["Pages"] but I get this error in line 3: "Unable to index into an object of type Microsoft.SharePoint.SPListCollection" Dimitris Porikos
Free Windows Admin Tool Kit Click here and download it now
November 14th, 2011 4:21am

Make sure you already load the Microsoft.SharePoint.Powershell snapin before running scripts, eg: Add-PSSnapin "Microsoft.SharePoint.Powershell" just a remind: for your scripts, OpenWeb should open url instead of web site name. Regards
November 14th, 2011 11:04am

Hello, I used the alternative LoadWithPartialName command to load assembly since I got some errors using the Add-PSSnapin command. Finally, I managed to call the $spList.BreakRoleInheritance(1) command (true was not accepeted) and I recieved the same error: Exception calling "BreakRoleInheritance" with "1" argument(s): "Operation aborted (Exception from HRESULT: 0x80004004 ( E_ABORT))" At line:1 char:29 I tried to do the same with another list in the same site and everything works as expected! Dimitris Porikos
Free Windows Admin Tool Kit Click here and download it now
November 14th, 2011 12:26pm

Hello Sorry for late reply. I think you may need troubleshoot the issue through ULS Isssue.. You may download SPTraceView to getting real time SharePoint error message. Or you may see this post, quite similar to your case :) Hope helps Cheers
November 19th, 2011 2:52am

The problem occured only to the specific Document Library. We created a new one and moved our content... Dimitris Porikos
Free Windows Admin Tool Kit Click here and download it now
November 24th, 2011 9:12am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics