Skip to main content
Microsoft Teams Metadata Failing with Error Code 404

Microsoft Teams Metadata Failing with Error Code 404

Updated over a week ago

Overview

This Knowledge Base article addresses issues related to Microsoft Teams backups that fail with an error code 404. The error typically occurs when attempting to retrieve files and folders for a specific site via the Microsoft Graph API. The error message indicates that the corresponding SharePoint site or folder is not available.

Error Description

[2024-07-17 02:12:22,836] [ERROR] Failed to get channel name from files folder api for channel : 19:tvztDUB78mqUzbkSi0RHjh8mqvvjd7-Cz2o9gd-4lLM1@thread.tacv2, fault Internal Error!! Response Code: 404 Text:{"error":{"code":"NotFound","message":https://sharepointsitename.sharepoint/db905278f90cd6f8c0b9e56bb0da6deb2c6a41cf312ab56b9d319b8c5ce3e407/f1135b041ba0ee1375ae4dbd7c637d7da5e1630cd65375b748b2b66747990ea7 Site isn't available. Attempting to create site : False."

Explanation

  • Error Cause: The error arises when the Microsoft Graph API fails with a 404 response while attempting to access files and folders for a specific Teams channel. This error is due to the corresponding folder not being available in SharePoint Online.

  • Reason: This typically occurs when the Files/Folders tab in Microsoft Teams has been created, updated, or renamed but has not been properly initialized. Microsoft Teams needs the Files tab to be manually initiated to generate a valid response for the backup process.

Reference Article

For additional information, refer to the Druva Help Article on Team Backups with Errors.

Resolution Steps

  1. Validate Teams Channels:

    • Check if the affected Teams channels are still available and whether they have been renamed.

    • If they are still present and renamed, manually initiate the Files tab in the Teams channel.

  2. Initiate Manual Backup:

    • After initializing the Files tab, initiate a manual backup in Druva and review the results.

  3. Fetch Channel Name Using Microsoft Graph Explorer:

    • Use the channel GUID from the backup log to fetch the channel name. This can be done using the Microsoft Graph Explorer tool.

  4. Run PowerShell Command:

To retrieve the channel name, run the following PowerShell command:

Get-TeamChannel -GroupId <GroupId> -DisplayName <ChannelName>
  • Replace <GroupId> and <ChannelName> with the appropriate values.

5. Access Team in MS Teams Desktop App:

  • Open the MS Teams Desktop App.

  • Navigate to the affected channel and click on the channel name to trigger folder creation in SharePoint Online.

6. Re-run the Backup:

  • Once the folder has been created in SharePoint Online, attempt the backup process again.

Additional Assistance

If you continue to experience issues or need further assistance, please contact Druva support for additional help.

Did this answer your question?