Access is Denied - error message during document library export

Tevon2.0 1,106 Reputation points
2023-01-17T19:05:01.6733333+00:00

(SharePoint Server 2019)

While exporting a document library from an old site via central admin I received the failed status with the error message:

Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)). (Correlation=4c348da0-f9f3-4036-fd6a-97757384df91)

The Execute method of job definition Microsoft.SharePoint.Deployment.SPExportJobDefinition (ID e90505d7-a095-4b1f-9664-f01954edb6c9) threw an exception. More information is included below. Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)). (Correlation=4c348da0-f9f3-4036-fd6a-97757384df91)

Exception stack trace:

at Microsoft.SharePoint.SPGlobal.HandleUnauthorizedAccessException(UnauthorizedAccessException ex, Boolean allowCompleteRequest)

at Microsoft.SharePoint.Library.SPRequest.GetAllWebsOfSite(String bstrUrl, Object& pvarWebs, Object& pvarWebIds, Object& pvarParentWebs, Object& pvarLangs, Object& pvarTitles, Object& pvarUIVersions, Object& pvarFlags, Object& pvarWebTemplates, Object& pvarConfigurations, Object& pvarMasterUrls, Object& pvarCustomMasterUrls, Object& pvarAppInstanceIds)

at Microsoft.SharePoint.SPSite.SPWebCollectionProvider.GetWebsData(String[]& strNames, String[]& strServiceRelUrls, Guid[]& guidWebIds, Int32[]& nLanguages, String[]& strTitles, String[]& strDescriptions, String[]& strCreationTimes, String[]& strModifiedTimes, String[]& strUserModifiedTimes, Boolean[]& bUserIsWebAdmins, Int32[]& nWebTemplates, Int16[]& nProvisionConfigs, Int16[]& nMeetingCounts, Int32[]& nUIVersions, Int32[]& nFlags, String[]& strMasterUrls, String[]& strCustomMasterUrls, Guid[]& guidAppInstanceIds)

at Microsoft.SharePoint.SPWebCollection.EnsureWebsData()

at Microsoft.SharePoint.SPWebCollection.get_Item(Guid id)

at Microsoft.SharePoint.Deployment.SPExportJobDefinition.Run()

at Microsoft.SharePoint.Administration.Backup.SPUnattachedContentDatabaseJobDefinition.Execute(Guid targetInstanceId)

at Microsoft.SharePoint.Administration.SPTimerJobInvokeInternal.Invoke(SPJobDefinition jd, Guid targetInstanceId, Boolean isTimerService, Int32& result)

Microsoft 365 and Office SharePoint Server For business
Microsoft 365 and Office SharePoint Server Development
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Xyza Xue_MSFT 30,176 Reputation points Microsoft External Staff
    2023-01-18T02:26:41.4666667+00:00

    Hi @Tevon2.0

    Please check following tips to troubleshoot the issue.

    1.Check whether the document library has unique permissions, and the user has permission for the document library.
    2.Let the user export another document library, compare the results.
    3.Try to remove the user and re-add the user into the document library permissions.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.