How to Fix Intermittent Get-QuarantineMessage Error in Exchange Online PowerShell
Question details
The user encounters a transient exception when running the Get-QuarantineMessage command in Exchange Online PowerShell.

- Product
- Microsoft Exchange Online
- Device & OS
- not provided
- Scenario
- Running the Get-QuarantineMessage cmdlet to retrieve quarantined messages data.
- Observed behavior
- The command intermittently fails and returns a Microsoft.Exchange.Hygiene.Data.TransientDALException error after repeated backend retries.
Ensure you have the latest version of the Exchange Online PowerShell V3 module installed and that your administrator account has the necessary permissions to access quarantine data.
Contact Microsoft 365 Technical Support
Since this is a transient backend database exception, Microsoft support engineers need to review service logs to identify the root cause and provide a mitigation.
The Microsoft.Exchange.Hygiene.Data.TransientDALException is a Data Access Layer error indicating that the Exchange Online PowerShell module is failing to communicate effectively with Microsoft's backend hygiene databases. Because this is a backend service issue, it cannot be permanently resolved by client-side troubleshooting.
Navigate to admin.microsoft.com and log in using your Microsoft 365 administrator credentials.
Locate and click on the 'Help & support' widget in the bottom right corner of the admin center dashboard.
Type 'Get-QuarantineMessage TransientDALException' into the search bar and press Enter to view preliminary automated solutions.
If the automated solutions do not resolve the problem, click on 'Contact support' to open a new support ticket.
Supply the support team with the exact error message, time of occurrence, and the specific intermittent behavior of the Get-QuarantineMessage cmdlet.

Discover WPS Office for Your Daily Productivity Needs
While managing Exchange Server and backend Microsoft 365 services requires native Microsoft administrative tools, WPS Office provides a lightweight, free, and highly compatible alternative for your everyday document, spreadsheet, and presentation tasks. Enjoy a familiar interface and seamless migration without the heavy subscription fees.
- 1. Download the software: Visit the official WPS Office website and click the free download button for your operating system.
- 2. Install WPS Office: Run the downloaded installer and follow the simple on-screen instructions to set up the suite on your device.
- 3. Open your files: Launch WPS Office and directly open your existing Microsoft Office documents to continue your work seamlessly.

Frequently Asked Questions
What does TransientDALException mean in Exchange Online?
It indicates a temporary Data Access Layer (DAL) issue where the Exchange Online PowerShell module fails to maintain a stable connection with Microsoft's backend email hygiene and quarantine databases.
Can I resolve the Get-QuarantineMessage error by updating the PowerShell module?
While updating to the latest Exchange Online PowerShell (EXO V3) module is always recommended for stability and security, this specific transient error usually stems from backend service issues that require Microsoft Support intervention to fully resolve.
Does this error affect the actual email quarantine process for end users?
No, this error typically only impacts administrators retrieving quarantine message logs via PowerShell. The underlying Microsoft Defender for Office 365 threat protection and quarantine services usually continue to operate normally.




