The MS Teams archiving task fails with error 'There is not a TeamsArchivingTask with id'

book

Article ID: 100061267

calendar_today

Updated On:

Description

Error Message

The following will be seen in a DTrace log of the EVTaskGuardian process:
(EVTaskGuardian)        EV-H    {TaskManager.ListDotNetTasks} Failed to find task, so continuing processing with next task entry. Error There is not a TeamsArchivingTask with id: ...

Cause

There is an orphaned task entry in the EnterpriseVaultDirectory database.

Resolution

1. Stop all EV Services.

2. Backup the EnterpriseVaultDirectory database.

3. Edit the following query for the TaskEntryID in the last line and execute the following query against the EnterpriseVaultDirectory database in SQL Management Studio to get the TaskIdentity value:

       Use EnterpriseVaultDirectory
       Select TaskIdentity from Task
       where TaskEntryId = ""

4. Verify if a record with the TaskIdentity value is listed in the TeamsArchivingTask table.
Delete the record with the matching TaskIdentity value from the TeamsArchivingTask table if it exists by editing the last line in the following query for the TaskIdentity and executing against the EnterpriseVaultDirectory database:

       Use EnterpriseVaultDirectory
       Delete from TeamsArchivingTask
       where TaskIdentity  = ""

5. Then delete the orphaned record from the Task table by editing the last line in the following query for the TaskIdentity and executing against the EnterpriseVaultDirectory database:

        Use EnterpriseVaultDirectory
        Delete from Task
        where TaskIdentity  = ">TaskIdentity from Step 3>"

6. Refresh the TeamsArchivingTask and Task tables to verify the deletion of the orphaned record was successful.

7. Start all EV services.

Issue/Introduction

The Enterprise Vault (EV) archiving task for Microsoft (MS) Teams does not start at its scheduled time. Running the task manually does work as expected.