ISSUE: Configure Message Size Limit step fails with error 'An error occurred during ExchangeOnline Powershell'
Last modified:
Overview
In most workflows, there are two occurrences of the 'Configure Message Size Limit step'. The first one will set the Max size limit and the second one will revert the size back to the original size. In a specific scenario, this error occurred on the second step.
O365_AdjustAllowedMessageSize Phase 1: An error occurred during ExchangeOnline Powershell | Exception message 1: The 'Connect-ExchangeOnline' command was found in the module 'ExchangeOnlineManagement', but the module could not be loaded. For more information, run 'Import-Module ExchangeOnlineManagement'.Exception message 2: The 'Connect-ExchangeOnline' command was found in the module 'ExchangeOnlineManagement', but the module could not be loaded. For more information, run 'Import-Module ExchangeOnlineManagement'.Exception message 3: Could not find file 'D:\Program Files\cloudficient\Exchange\Event.Format.ps1xml'. | Parameters: [upn, user@domain.com] [maxReceiveSize, 100mb] [maxSendSize, 100mb] [ProcessResult]
The notable part of this error is: 'Could not find file 'D:\Program Files\cloudficient\Exchange\Event.Format.ps1xml'. When checking for this file on the Bridgehead server, it indeed does not exist.
The oddity here is the first step in which the message size is increased and succeeded without issue.
Solution
'Restart' this step. In this recent scenario, that resolved the issue.
This issue requires further investigation to understand the root cause.