Jun 18 2020 09:21 AM
Hi All,
We have tried to enable the Teams Attendance report for our Global policy however when I run the PowerShell command I receive the following message:
"The WriteObject and WriteError methods cannot be called from outside the overrides of the BeginProcessing, ProcessRecord,
and EndProcessing methods, and they can only be called from within the same thread."
I can run Get commands without issue however I cannot seem to run any Set- or New- commands.
Has anyone seen this error message before?
Code sample below:
Get-CSTeamsMeetingPolicy -Identity Global | ft Identity,AllowEngagementReport
Set-CsTeamsMeetingPolicy -Identity Global -AllowEngagementReport Enabled
Jun 18 2020 02:48 PM
@CCorcoran I'm getting the same error. Opening a ticket with O365 support now to see what they can come up with.
Jun 19 2020 03:49 AM
Hi @CCorcoran
Can you please connect to Skype for Business Powershell and then run the command.
Run PowerShell ISE as Administrator
Set-ExecutionPolicy unrestricted
Import-Module SkypeOnlineConnector
$cred = Get-Credential
$session = New-CsOnlineSession -Credential $cred -Verbose
Import-PSSession -Session $session
Let me know in case you face any issues
With Regards,
Satish U
Jun 19 2020 08:50 AM
Hi @Brisby,
Please let me know if you hear back.
Hi @RealTime_M365.
Thank you for your suggestion.
Yes, I ran ISE in the administrator context, and with similar code to what you suggested (script.png) and received the same message as before (console.png).
Any other ideas are greatly appreciated...
Kind regards,
CC
Jun 19 2020 09:07 AM
@RealTime_M365 We are seeing the exact same issue. We are trying to enable this for our Global Policy
Set-CSTeamsMeetingPolicy -Identity Global -AllowEngagementReport Enabled
gives us that error "The WriteObject and WriteError methods cannot be called from outside the overrides of the BeginProcessing"
Get-CSTeamsMeetingPolicy -Identity Global | Set-CSTeamsMeetingPolicy -AllowEngagementReport Enable
Gives me this error "You are not permitted to invoke Set-CsTeamsMeetingPolicy with the following parameters:
Instance"
Jun 22 2020 05:55 PM
Jun 23 2020 03:50 AM
Hi @RealTime_M365,
I tried again and I am still seeing the issue. What updates were causing the issue? Is there something else that we have to do to get it working?
CCorcoran
Jun 23 2020 01:30 PM
SolutionJun 23 2020 02:33 PM
@ShawnColeman Thank you very much. That resolved the issue. Appreciate the effort to find the solution.
Jun 23 2020 01:30 PM
Solution