[Solved] Get_TotalSentMessageTrackLogTask fails
Every four hours I am receiving the following error. It is saying a search time range is being incorrectly specified, but I cannot see where to specify this. This seems like a system task, so I am guessing the range is hardcoded?
Failed to retrieve message logs: System.Management.Automation.RemoteException: The search time range was incorrectly specified. The End and Start parameter values can’t be the same. at System.Management.Automation.Runspaces.AsyncResult.EndInvoke() at System.Management.Automation.PowerShell.CoreInvokeRemoteHelper[TInput,TOutput](PSDataCollection`1 input, PSDataCollection`1 output, PSInvocationSettings settings) at System.Management.Automation.PowerShell.CoreInvoke[TInput,TOutput](PSDataCollection`1 input, PSDataCollection`1 output, PSInvocationSettings settings) at System.Management.Automation.PowerShell.CoreInvoke[TOutput](IEnumerable input, PSDataCollection`1 output, PSInvocationSettings settings) at System.Management.Automation.PowerShell.Invoke(IEnumerable input, PSInvocationSettings settings) at CPService.Tasks.Exchange.ExchActions.Get_TotalSentMessages(String server, DateTime start, DateTime end) at CPService.Tasks.Exchange.Get_MessageTrackingLogsTask.Execute(IJobExecutionContext context)
I updated to the latest version of both the service and the application, but this error remains the same. If this is settable, can someone tell me where, if not, can someone advise me how to resolve this issue.
Is your CloudPanel server set to a different language than the Exchange server?
Also, on the Exchange servers event viewer, you should see an event for this powershell command being executed. Since it failed, it should be an error. Can you find that and paste it in here? I am looking for the value it passed to Exchange
Below is the error logged in the MSExchange Management Application Log:
Cmdlet failed. Cmdlet Get-MessageTrackingLog, parameters -Server “M.l**.com” -EventId “RECEIVE” -Start “7/17/2023 10:57:34 AM” -End “7/17/2023 8:57:34 AM” -ResultSize “Unlimited” -DomainController “A***.L***.com”.
The languages on both servers are the same.
This installation has been running for a few years, but this message only began about two weeks ago. First, I would get it once every few days, then it became more frequent, now I get it many times per day.
I checked the time on the Exchange Server, the AD Server, and the server hosting the Cloudpanel, and the times, and time zones are all the same.
With regards to the log time, here is an example:
Cmdlet failed. Cmdlet Get-MessageTrackingLog, parameters -Server “M.l.com” -EventId “RECEIVE” -Start “7/18/2023 1:57:34 PM” -End “7/18/2023 11:57:35 AM” -ResultSize “Unlimited” -DomainController “A.L.com”.
was logged at 11:57:41 AM.
Email sent from mark @ resort-manager.com with file name logs.zip
Emai resent with correct logs
That is good news Mark! Thank you!