Skip to main content
Microsoft 365 Team site restore fails
Updated over 10 months ago

This article applies to:

  • Product edition: inSync Cloud

Problem description

Microsoft 365 Team site restore fails with the error:

Error while creating site under <site path>

Cause

The site was deleted in Microsoft 365. The error is displayed when you perform an in-place restore of a deleted Team site in Microsoft 365.


💡 Tip

When an Microsoft 365 group is deleted, the associated team site also gets deleted.


Steps to verify the issue

To verify this issue:

  1. Login to the inSync Management Console and go to Data Sources > Microsoft 365 link.

  2. Open the SharePoint tab and locate the Team site that has failed to restore.

  3. Download the activity logs for the failed restore from the activity stream from the team site collection.

  4. Identify the failed restore based on the timestamp of the activity log.
    A sample log is provided under Traceback section of this article.

Traceback

{snip}
[2019-03-03 15:11:01,137] [ERROR] Error while creating site Celenotest under site /sites/celenotest/, Error: Unable to read file. Permission Denied Response Code: 404 Text:404 FILE NOT FOUND (#100000046)
[2019-03-03 15:11:01,138] [ERROR] Error <class 'inSyncLib.inSyncError.SyncError'>:Unable to read file. Permission Denied Response Code: 404 Text:404 FILE NOT FOUND (#100000046). Traceback -Traceback (most recent call last):
  File "/opt/Druva/inSync/active/src/drcloud/Lib/SharePointAgent.py", line 2564, in _create_site
    restored_site_properties = self._create_restore_site(web_creation_information, api_path)
  File "/opt/Druva/inSync/active/src/drcloud/Lib/SharePointAgent.py", line 1746, in _create_restore_site
    return self.sp_apis.create_site(api_path, web_creation_information)
  File "/opt/Druva/inSync/active/src/drcloud/Lib/SharePointAgentAPI.py", line 1001, in create_site
    return self.client.post_retry(url=request, payload=body, xheaders=self.HEADERS)
  File "/opt/Druva/inSync/active/src/drcloud/Lib/CloudAppOAuthUtils.py", line 588, in post_retry
    raise error
SyncError: Unable to read file. Permission Denied Response Code: 404 Text:404 FILE NOT FOUND (#100000046)
[2019-03-03 15:11:01,139] [ERROR] Unable to create restore site with template 'STS'. Retrying again with Classic template
[2019-03-03 15:11:02,145] [ERROR] Error while creating site Celenotest under site /sites/celenotest/, Error: Unable to read file. Permission Denied Response Code: 404 Text:404 FILE NOT FOUND (#100000046)
{snip}

Resolution

Recover the team site by recovering the group associated with it as described below:

  1. Login to Microsoft 365 admin console > Exchange Admin center > Groups and select the group and click Restore.

    ExchangeAdminCenter.png
  2. Login to the inSync Management Console and restore the site collection.

See also

Did this answer your question?