logo
search
Exchange Connection Problems

How to Fix Custom Message Trace Errors in Exchange Online

Khadija KhanKhadija Khan Oct 15, 2026 869 views

Question details

Administrators are unable to successfully run custom message trace queries in the Exchange admin center due to system errors.

How to Fix Custom Message Trace Errors in Exchange Online
Product
Exchange Online
Device & OS
not provided
Scenario
Attempting to track email delivery or run a custom message trace query through the web-based Exchange admin center.
Observed behavior
The custom message trace query fails and returns an error message, which may be caused by temporary service issues, browser conflicts, or invalid request parameters.
Before you start

Verify that your Microsoft 365 account has the necessary administrator permissions (such as Organization Management) to access the Exchange admin center and run message traces.

Solution 1Recommended

Run Message Trace via Exchange Online PowerShell

Use PowerShell to bypass potential browser issues or web-interface glitches when tracking messages.

Often, errors in the Exchange admin center are tied to caching issues or localized web interface bugs. Running the trace directly through PowerShell provides a more reliable connection to the Exchange backend.

1
Try an Alternative Web Browser

Before using command-line tools, attempt to run the trace in a completely different web browser or in an Incognito/InPrivate window to rule out browser cache issues.

2
Connect to Exchange Online PowerShell

Open PowerShell as an administrator on your computer and use the 'Connect-ExchangeOnline' command to authenticate with your administrator credentials.

3
Execute the Get-MessageTrace Command

Run the 'Get-MessageTrace' cmdlet with your required parameters (such as SenderAddress or StartDate) to retrieve your email delivery data without relying on the web portal.

Run Message Trace via Exchange Online PowerShell
PowerShell Advantage: Using PowerShell not only bypasses portal errors but also allows you to script and automate recurring message trace requests.
Free Microsoft Office alternative

Boost Your Productivity with WPS Office

While managing Exchange Online requires Microsoft administration tools, your everyday document editing doesn't require a costly subscription. WPS Office provides a free, powerful, and lightweight alternative to Microsoft Office for writing reports, analyzing data, and preparing presentations.

  1. 1. Download the Installer: Visit the official WPS Office website and click the free download button for your operating system.
  2. 2. Install WPS Office: Run the downloaded installation file and follow the simple on-screen prompts to set up the software.
  3. 3. Open and Edit Documents: Launch WPS Office to immediately start creating new documents or editing your existing Microsoft Office files.
Highly compatible with Microsoft Word, Excel, and PowerPoint formats.Lightweight installation that runs smoothly without heavily taxing system resources.Familiar tabbed user interface, ensuring a zero-learning-curve transition.Built-in PDF editing tools for comprehensive document management.
microsoft office alternative - wps office

Frequently Asked Questions

What is a message trace in Exchange Online?

A message trace is an administrative tool in Exchange Online that allows you to follow email messages as they travel through your organization. It helps determine if an email was received, rejected, deferred, or successfully delivered.

Why does my custom message trace keep failing?

Failures can occur due to corrupted browser caches, overly complex or invalid search parameters in your custom query, or temporary backend service outages on Microsoft's Exchange servers.

Do I need special permissions to use the Get-MessageTrace command?

Yes, to run message trace commands in Exchange Online PowerShell, you must be assigned specific administrative roles in Microsoft 365, such as Organization Management, Compliance Management, or Security Administrator.