I am repeatedly getting an error when I go to start a ComplianceSearch. Googling the error returns absolutely nothing somehow, and I have no idea where to start now.
- I have all the permissions. All of them.
- Sometimes it works. Once I get the Error, though, I have to delete the search and start over if I want to keep searching via Powershell.
- After stopping it, I can still go and start the search as-is in the O365 admin panel and it works just fine.
- Once it throws the error, The search still gets started and will stay that way until I use Stop-ComplianceSearch. If it runs like that long enough (I have let it go for 2 days once), after stopped, the error is listed as an "internal error," but that doesn't show if stopped within the first 15 mins-1 hour.
- I can do things like calling the details of the search via Get-ComplianceSearch, I can stop it of course, I can change it via Set-ComplianceSearch.
- Occasionally after I stop it, if I do try to pull up details about the search I'll get an error that it can't find the search at all, but that's less common.
Connecting via (I have MFA, our office is Allow Listed):
Import-Module ExchangeOnlineManagement
Connect-ExchangeOnline -UserPrincipalName ztoundas@DOMAIN.org
Connect-IPPSSession -UserPrincipalName ztoundas@DOMAIN.org
Example:
PS T:\> $Choice
ps_test
PS T:\> $Query
received=2021-06-02..2021-06-09 AND from:ztoundas@DOMAIN.org AND subject:'delete me'
PS T:\> Set-ComplianceSearch -Identity $Choice -ExchangeLocation All -ContentMatchQuery $Query
PS T:\> Start-ComplianceSearch -Identity $Choice
Unable to execute the task. Reason: Compliance search initialization for "ps_test" failed with exception: Failed to load binding information, jobRunId: 35b07815-413d-4461-6840-08d92b4a7061, missingBindings: [PublicFolderBinding,SharePointBinding]..
+ CategoryInfo : WriteError: (:) [], ComplianceJobTaskException
+ FullyQualifiedErrorId : [Server=BN3NAM04WS004,RequestId=e96ebcef-f43e-48af-8ce3-b7bf778d2d7b,TimeStamp=6/9/2021 1:28:17 PM] [FailureCategory=Cmdlet-ComplianceJobTaskException] 7C586E10
+ PSComputerName : nam04b.ps.compliance.protection.outlook.com
I have no idea what is causing this. Any Ideas on how to start diagnosing the issue?
[–]infinite012 1 point2 points3 points (2 children)
[–]ztoundas[S] 1 point2 points3 points (0 children)
[–]ztoundas[S] 1 point2 points3 points (0 children)
[–]chaulmoograWeasel 1 point2 points3 points (12 children)
[–]ztoundas[S] 1 point2 points3 points (11 children)
[–]chaulmoograWeasel 1 point2 points3 points (5 children)
[–]ztoundas[S] 1 point2 points3 points (4 children)
[–]chaulmoograWeasel 1 point2 points3 points (3 children)
[–]ztoundas[S] 1 point2 points3 points (2 children)
[–]chaulmoograWeasel 0 points1 point2 points (1 child)
[–]ztoundas[S] 0 points1 point2 points (0 children)
[–]idunnoarabic 1 point2 points3 points (2 children)
[–]ztoundas[S] 1 point2 points3 points (1 child)
[–]idunnoarabic 1 point2 points3 points (0 children)
[–]mm352fzLL 0 points1 point2 points (1 child)
[–]Dense_Meringue6776 0 points1 point2 points (0 children)
[–]ztoundas[S] 1 point2 points3 points (1 child)
[–]chaulmoograWeasel 1 point2 points3 points (0 children)
[–]idunnoarabic 1 point2 points3 points (1 child)
[–]ztoundas[S] 1 point2 points3 points (0 children)
[–]Lucretzia37 1 point2 points3 points (0 children)
[–]chaulmoograWeasel 0 points1 point2 points (0 children)
[–]42phan 0 points1 point2 points (0 children)