Clear all

[Solved] Get_TotalSentMessageTrackLogTask fails

9 Posts
2 Users
0 Reactions
Topic starter

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.


7 Answers
Topic starter

Just to confirm the latest updates seems to have fixed the problem, it has been several hours since my last error message.

Many thanks.


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

Topic starter

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.


KMI Support 2023-07-17 22:40

@marklft The start timestamp is greater than the end timestamp which is what the issue is, but I’m not quite sure yet how that even happened. The start timestamp is today at 10:57:34AM, but can you tell me the Timestamp on the event log that you got this from?

Is it possible the time was off on one of these servers now or recently in the past?

Topic starter

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 “” -EventId “RECEIVE” -Start “7/18/2023 1:57:34 PM” -End “7/18/2023 11:57:35 AM” -ResultSize “Unlimited” -DomainController “”.

was logged at 11:57:41 AM.


KMI Support 2023-07-18 07:35

@marklft Can you put the service into debug mode, restart the service, and send me the logs the next time you receive the email? To put in debug: and then email to

Topic starter

Email sent from mark @ with file name

Topic starter

Emai resent with correct logs


That is good news Mark! Thank you!