Unable to collect data for SharePoint Online Assessment

TH 1 Reputation point
2022-01-19T20:17:57.76+00:00

I'm trying to get the MS SharePoint Online Assessment performed for my company. I have everything setup now, but have found that the scheduled task stops after only running for a second. I've gone through the log files but have not found anything that resolves the issue.

I have gone through each of the 3 suggestions at the bottom of this log, but none have helped. I have confirmed there are no open PowerShell windows, only a single workspace is linked in the control panel, and the PSModulePath only contains a single entry for a directory containing Microsoft.PowerShell.OMS.Assessments.dll.

Here is an output of the log:

[2022-01-19T18:29:11.3334203Z][11]ThreadId: 11 [Information][SharePointOnlineAssessment]Registering to FileTrace... FilePath: C:\SPOA\SharePointOnlineAssessment\Logs
[2022-01-19T18:29:11.5209245Z][11]ThreadId: 11 [Error][SharePointOnlineAssessment][3085]Cannot identify any file Microsoft.Diagnostics.Tracing.EventSource.dll with version 1.0.26.0 in C:\Program Files\Microsoft Monitoring Agent\Agent\Health Service State\Resources
[2022-01-19T18:29:12.0209445Z][11]ThreadId: 11 [Warning][SharePointOnlineAssessment][2871]Found multiple instances of Newtonsoft.Json.dll under 'C:\Program Files\Microsoft Monitoring Agent\Agent\Health Service State\Resources': C:\Program Files\Microsoft Monitoring Agent\Agent\Health Service State\Resources\292\Newtonsoft.Json.dll,C:\Program Files\Microsoft Monitoring Agent\Agent\Health Service State\Resources\749\Newtonsoft.Json.dll,C:\Program Files\Microsoft Monitoring Agent\Agent\Health Service State\Resources\763\Newtonsoft.Json.dll,C:\Program Files\Microsoft Monitoring Agent\Agent\Health Service State\Resources\782\Newtonsoft.Json.dll. Searching for first file having version 12.0.3.23909
[2022-01-19T18:29:12.0834446Z][11]ThreadId: 11 [Warning][SharePointOnlineAssessment][2871]Found multiple instances of System.Management.Automation.dll under 'C:\Program Files\Microsoft Monitoring Agent\Agent\Health Service State\Resources': C:\Program Files\Microsoft Monitoring Agent\Agent\Health Service State\Resources\384\System.Management.Automation.dll,C:\Program Files\Microsoft Monitoring Agent\Agent\Health Service State\Resources\779\System.Management.Automation.dll. Searching for first file having version 10.0.10586.0
[2022-01-19T18:29:12.1459228Z][11]ThreadId: 11 [Warning][SharePointOnlineAssessment][2871]Found multiple instances of Microsoft.IdentityModel.Clients.ActiveDirectory.dll under 'C:\Program Files\Microsoft Monitoring Agent\Agent\Health Service State\Resources': C:\Program Files\Microsoft Monitoring Agent\Agent\Health Service State\Resources\299\Microsoft.IdentityModel.Clients.ActiveDirectory.dll,C:\Program Files\Microsoft Monitoring Agent\Agent\Health Service State\Resources\773\Microsoft.IdentityModel.Clients.ActiveDirectory.dll. Searching for first file having version 5.2.0.0
[2022-01-19T18:29:12.7865516Z][11]ThreadId: 11 [Information][SharePointOnlineAssessment]Successfully updated EventLog OmsAssessment.Microsoft-Assessments-Prerequisites.etwManifest.dll
[2022-01-19T18:29:12.7865516Z][11]ThreadId: 11 [Information][SharePointOnlineAssessment]Invoking SharePointOnlineAssessment Execution with AssessmentId fd8baaac-a0ba-45e4-b0a9-dc7732614674...
[2022-01-19T18:29:12.7865516Z][11]ThreadId: 11 [Information][SharePointOnlineAssessment]Assessment Working Directory: C:\SPOA\SharePointOnlineAssessment\191829
[2022-01-19T18:29:12.7865516Z][11]ThreadId: 11 [Information][SharePointOnlineAssessment]Cleaning up temp directory... TempDirectory: C:\SPOA\SharePointOnlineAssessment
[2022-01-19T18:29:12.7865516Z][11]ThreadId: 11 [Information][SharePointOnlineAssessment]Assessment Binaries Directory: C:\SPOA\SharePointOnlineAssessment\OmsAssessment
[2022-01-19T18:29:12.7865516Z][11]ThreadId: 11 [Information][SharePointOnlineAssessment]Creating program directory... ProgramDirectory: C:\SPOA\SharePointOnlineAssessment\OmsAssessment
[2022-01-19T18:29:12.7865516Z][11]ThreadId: 11 [Information][SharePointOnlineAssessment]Starting to copy OmsAssessment files into program directory... ProgramDirectory: C:\SPOA\SharePointOnlineAssessment\OmsAssessment
[2022-01-19T18:29:12.7865516Z][11]ThreadId: 11 [Information][SharePointOnlineAssessment]Copying... File: C:\Program Files\Microsoft Monitoring Agent\Agent\Health Service State\Resources\786\OmsAssessment.exe
[2022-01-19T18:29:12.8021774Z][11]ThreadId: 11 [Information][SharePointOnlineAssessment]Copying... File: C:\Program Files\Microsoft Monitoring Agent\Agent\Health Service State\Resources\787\OmsAssessment.exe.config
[2022-01-19T18:29:12.8021774Z][11]ThreadId: 11 [Information][SharePointOnlineAssessment]Copying... File: C:\Program Files\Microsoft Monitoring Agent\Agent\Health Service State\Resources\766\Microsoft.Oms.Assessments.Stores.dll
[2022-01-19T18:29:12.8021774Z][11]ThreadId: 11 [Information][SharePointOnlineAssessment]Copying... File: C:\Program Files\Microsoft Monitoring Agent\Agent\Health Service State\Resources\810\DocumentFormat.OpenXml.dll
[2022-01-19T18:29:12.8803015Z][11]ThreadId: 11 [Information][SharePointOnlineAssessment]Copying... File: C:\Program Files\Microsoft Monitoring Agent\Agent\Health Service State\Resources\809\License.xml
[2022-01-19T18:29:12.8803015Z][11]ThreadId: 11 [Information][SharePointOnlineAssessment]Copying... File: 
[2022-01-19T18:29:12.8803015Z][11]ThreadId: 11 [Error][SharePointOnlineAssessment][3017]One of the following has happened:
1. A Powershell window is open with Microsoft.Powershell.OMS.Assessments.dll module loaded and the file is being used in that process.Because of this, the Microsoft.Powershell.OMS.Assessments.dll download failed and this dll is trying to copy an older version of the binaries (which do not exist as the newer version was downloaded) needed to run the assessment. Please close all the Powershell windows and restart the Microsoft Health Service

2. The Monitoring Agent is linked to more than one workspace and these workspaces have different scopes with different required dlls/versions needed to run the assessment. Please remove all but one workspace using the AgentControlPanel.exe.

3. $env:PSModulePath contains a directory that has an older version of Microsoft.Powershell.OMS.Assessments.dll but the latest version of this dll is in a different directory. Please remove from $env:PSModulePath the directory containing the old version of Microsoft.Powershell.OMS.Assessments.dll
[2022-01-19T18:29:12.8803015Z][11]ThreadId: 11 [Information][SharePointOnlineAssessment]Copying Assessment files was unsuccessful. Cannot start the assessment.
[2022-01-19T18:29:12.8803015Z][11]ThreadId: 11 [Error][SharePointOnlineAssessment][3009]Assessment Invocation Failed with Exit Code - -1
[2022-01-19T18:29:12.8803015Z][11]ThreadId: 11 [Error][SharePointOnlineAssessment][3010]Assessment Invocation Failure Message - Copying Assessment files was unsuccessful. Cannot start the assessment.
[2022-01-19T18:29:12.8803015Z][11]ThreadId: 11 [Warning][SharePointOnlineAssessment][2853]To receive continued assessment updates, please close this Powershell window
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,265 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Elsie Lu_MSFT 9,791 Reputation points
    2022-01-20T07:23:50.763+00:00

    Hi @TH , welcome to Q&A forum!

    Have you ever successfully performed a task before? Since you have already tried the suggestions in Logs, to help you better, I would suggest you open a service request for further help.

    166675-1.png

    You could also refer to this article for a simple troubleshooting guide:
    Troubleshooting the On-Demand Assessments


    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.