Short answer: this message means Outlook found a problem with its local cache file (the .ost). A common cause in busy offices is that the file has grown close to Outlook’s 50 GB limit, usually because shared or delegated mailboxes are cached into it as well. Shrink what Outlook caches, move large shared mailboxes into their own data file, and let Outlook rebuild the cache. Your email stays safe in Microsoft 365.
An administration officer at a structural engineering firm contacted us when her Outlook stopped receiving new emails and a test message would not send. Outlook showed “Errors have been detected in the file … .ost” with a Run Repair Tool button, and she sensibly stopped to ask before running it. Email in Outlook on the web was fine. The cause was Outlook’s 50 GB cache limit: a very large mailbox she had open alongside her own was being cached into the same file. Moving it into its own data file got her email flowing again. Here is what we found and how to fix it.
Symptoms
When you open classic Outlook for Windows, or while it is running, a dialog titled Microsoft Outlook appears:
Errors have been detected in the file C:\Users\username\AppData\Local\Microsoft\Outlook\name@yourbusiness.com.au.ost.

You may also notice:
- New emails stop arriving in Outlook, while Outlook on the web shows them.
- Emails sit in the Outbox, or Send/Receive reports errors.
- Outlook is slow, freezes, or crashes, especially when switching between mailboxes.
- A message saying the .ost file “has reached its maximum size”.
The full wording of that size warning is:
The Outlook data file C:\Users\username\AppData\Local\Microsoft\Outlook\name@yourbusiness.com.au.ost has reached the maximum size. To reduce the amount of data in this file, permanently delete some items that you no longer need.

People also search for this as “Outlook ost errors detected”, “Outlook data file errors run repair tool”, “Outlook not receiving emails ost” or “ost file too large”.
Affected Software
- Application: Classic Outlook for Windows (Microsoft 365 Apps, Outlook 2016, 2019 and 2021) in Cached Exchange Mode
- Platform: Windows 10 and 11
- Related Services: Exchange Online mailboxes, shared mailboxes and delegated mailboxes
Cause
In Cached Exchange Mode, Outlook keeps a copy of your mailbox in an offline data file (.ost) on your computer. By default, Microsoft caps this file at 50 GB. As the file approaches the limit, Outlook first restricts actions such as sending, then stops writing new data to the file altogether. That is when new emails stop appearing and you start seeing data file errors.
Your own mailbox is often not the problem. When you have Full Access to other mailboxes, Outlook adds them to your profile, and with Download shared folders turned on, it caches their contents into your .ost as well. One busy shared or delegated mailbox can push the combined file over the limit.
In the case we fixed, the data file folder showed one cached mailbox file at about 44 GB (44,010,312 KB), close to the 50 GB ceiling. Splitting the large mailbox into its own data file cleared the errors.

A damaged .ost file after a crash, a forced shutdown or a full disk can show the same message, so it is worth checking the size before deciding on a fix.
Resolution
Step 1: Check the size of your .ost files
- Close Outlook.
- Press Windows key + R, type
%LOCALAPPDATA%\Microsoft\Outlookand press Enter. - Switch to Details view and look at the Size column. Anything above about 40,000,000 KB (40 GB) is near the limit.
Step 2: Cache less mail
- Open Outlook and go to File > Account Settings > Account Settings, select your mailbox and select Change.
- Move the Download email for the past slider to a shorter period, such as 6 or 12 months. Older email stays available on the server.
- Select More Settings > Advanced and clear Download shared folders. Shared and delegated mailboxes are then read from the server instead of filling your cache.
- Select OK, Next, Done, then restart Outlook.
Step 3: Give large shared mailboxes their own data file
If you need a large shared or delegated mailbox cached for offline use, give it its own .ost so it does not count against yours:
- Ask your administrator to turn off automapping for that mailbox (remove and re-add Full Access with
-AutoMapping $false), so it is not also loaded under your own mailbox. - In Outlook, select File > Add Account and add the shared mailbox’s address. Outlook creates a separate data file for it.
- Restart Outlook and check both mailboxes are syncing.
- If the split mailbox sits on Syncing for a long time, check its Sync Issues > Conflicts folder. In the case behind this article, splitting the mailbox out was not the whole fix. Outlook was still stuck syncing that mailbox a few days later. Our technician moved a large backlog of items out of its Conflicts folder into a normal folder and left Deleted Items to finish syncing, and later that day the customer confirmed Outlook had caught up and was running normally.
Step 4: Let Outlook rebuild the cache
- Close Outlook.
- In
%LOCALAPPDATA%\Microsoft\Outlook, rename the oversized or damaged .ost file, for example by adding.oldto the end. - Open Outlook. It creates a new .ost and downloads your mailbox again from Microsoft 365, which can take a while for large mailboxes.
- Once everything has synced, delete the old file to free up disk space.
The Run Repair Tool button runs the Inbox Repair Tool (SCANPST). It can be used on an .ost, but rebuilding the cache is usually quicker and more reliable, because Exchange Online holds the real copy of your mail.
Important Notes
- Do not delete .pst files by mistake. An .ost is a cache that Outlook can rebuild. A .pst may be the only copy of archived mail. Only rename or delete files ending in .ost.
- Raising the limit is a last resort. The 50 GB cap can be raised with the
MaxLargeFileSizeandWarnLargeFileSizeregistry values, but very large cache files make Outlook slower. Caching less is the better fix. - A raised limit can buy time, not a fix. In one case the .ost had hit 50 GB and Outlook would not even let the user delete messages. Raising the limit to 100 GB let her clean up straight away. A few hours later Outlook reported “Errors have been detected in the file” on launch and the .ost had been renamed with
.corrupton the end. A new Outlook profile opened normally and began downloading the mailbox again from Microsoft 365. If you raise the limit, treat it as temporary and reduce what is cached as soon as you can. - Download shared folders is a trade-off. Turning it off keeps shared mailboxes out of your .ost, but Outlook then reads them from the server. For a small shared mailbox you work in all day, that can feel slow. In one case, a slow shared mailbox of about 2 GB became faster to switch between folders once Download shared folders was turned back on. Leave it off for very large shared mailboxes and consider keeping it on when the shared mailboxes are small.
- Remote desktop and AVD users. On shared servers and virtual desktops, .ost files sit inside the user profile container, so large caches also fill the profile disk. Shorter cache periods matter even more there.
- Check the mailbox itself. If a mailbox is close to its own Exchange Online quota, see our guide to the “Your mailbox is almost full” warning.
Related Resources
- Microsoft Learn: How to configure the size limit for .pst and .ost files in Outlook
- Microsoft Support: Repair Outlook data files (.pst and .ost)
- Microsoft Learn: Remove automapping for a shared mailbox
- Fix: “Your Mailbox Is Almost Full” in Microsoft 365 Outlook
- Fix: “The Set of Folders Cannot Be Opened” in Outlook
- Fix: Outlook Search Not Finding All Emails
- Microsoft 365 support and management from GCIT
If Outlook keeps running out of room or your team shares a lot of mailboxes, get in touch with our team.