Australian cloud for business software — built and run in Sydney since 2002

NetLeverage
NetLeverage

Outlook data file has reached its maximum size: the PST and OST limits and the four registry values

Technical article
Troubleshooting

About this article: This article is reviewed against the cited sources. This is source research, not lab validation. Check the stated versions and your own requirements before making changes.

A user cannot move mail into an archive, sent items are not being kept, Outlook asks them to clean up the mailbox, or a message says that a data file "has reached its maximum size". The file is a .pst (personal folders) or an .ost (offline folders) file, and Outlook is enforcing a size limit that is set by registry values. Microsoft has one page that describes those limits, the defaults, and what Outlook does when a file nears or reaches them.

Read the sections up to Fix first. Nothing in them changes anything. The fixes are of two kinds, and one of them deletes mail permanently.

What the error means

Microsoft's page says Outlook supports ANSI and UNICODE personal folders (.pst) and offline folder (.ost) files, and that four registry entries limit their size: MaxFileSize, WarnFileSize, MaxLargeFileSize and WarnLargeFileSize. The "Large" entries refer to the UNICODE format, which the page calls the new Large format. The other two refer to the ANSI format, which it calls an earlier Microsoft Outlook format. The page notes the UNICODE values are set in megabyte increments and the ANSI values in byte increments.

The page describes the entries this way:

  • MaxFileSize "determines the absolute maximum size that both the .pst and the .ost files can grow to".
  • WarnFileSize "determines the maximum data that both the .pst and the .ost files can have". After it is reached, neither file type can add more data, though the physical file may still grow because of internal processes.

The page's table for Outlook 2016, 2013 and 2010 gives these defaults:

Name Type Valid data range Default
MaxLargeFileSize REG_DWORD 0x00000001 - 0x0000C800 0x0000C800, 51,200 (50 GB)
WarnLargeFileSize REG_DWORD 0x00000000 - 0x0000BE00 0x0000BE00, 48,640 (47.5 GB)
MaxFileSize REG_DWORD 0x001F4400 - 0x7C004400 0x7BB04400, 2,075,149,312 (1.933 GB)
WarnFileSize REG_DWORD 0x00042400 - 0x7C004400 0x74404400, 1,950,368,768 (1.816 GB)

A check of the arithmetic: 0xC800 is 51,200, which is 50 GB in 1,024 MB units, and 0xBE00 is 48,640, which is 47.5 GB, or 95 percent of the maximum. The page says the default for WarnFileSize is calculated as 95 percent of MaxFileSize for a UNICODE file.

One caution about the page itself. A second table on it lists defaults by Office version and shows different Large-size defaults for Outlook 2013 and 2010 (20 GB and 19 GB) than the first table does for the same versions (50 GB and 47.5 GB). The numbers here are read for Outlook 2016 only. Check the current page for older versions.

Likely causes

Cause What you see How to confirm
A .pst or .ost has reached MaxLargeFileSize or MaxFileSize The page's error: the file "has reached its maximum size" when moving items Compare the file's size on disk with the limit in the table, and check whether the registry values below exist
The data in the file has reached the warning size Mail cannot be sent where sent mail is stored in that file, items cannot be copied or moved inside the file, Auto-Archive fails Same comparison against WarnLargeFileSize or WarnFileSize
A limit was set lower on purpose, by policy (our reading; the page names no such cause) The limit is far below the defaults The four values exist under the Policies or the user-preference registry location listed below
An .ost has grown because shared folders or site mailboxes are downloaded An .ost much larger than the user's own mailbox The page says shared folders can make the .ost grow significantly when Download Shared Folders is on

The page gives no counts. The rows are not in order of likelihood.

What Outlook does at the warning size, according to the page: when the WarnFileSize or WarnLargeFileSize limit is reached, "the compaction function is triggered to try to reduce the size of the file to a usable level". While the limit is reached, email messages cannot be sent if sent email is stored in Sent Items, and items cannot be copied or moved within the file. If the file is an archive .pst used by Auto-Archive, Auto-Archive fails. The page says messages can still be deleted or archived from a .pst or .ost that is the current default delivery location.

The page lists three errors that might occur at the maximum. First, moving items to a file at the limit produces this message:

Can't move the items. The file <path>\<filename>.pst has reached its maximum size. To reduce the amount of data in this file, select some items that you no longer need, and then permanently delete them.

Second, if an .ost is over the limit and you force an inbox synchronisation with Shift+F9, Outlook 2013 "might show an error in the Send/Receive dialog box or intermittently crash". Third, when mail is delivered to a file at the limit in Cached Exchange Mode, the Mailbox Cleanup wizard launches.

Prove the cause before changing anything

All of these read only.

  1. Ask the user for the exact text on screen and when it appears: when moving, when sending, or when synchronising. Compare it with the three errors above.

  2. Find the file and its size. The page does not describe how to locate the file, so use your own method to find the user's data file. Compare the size on disk with the table. The page says the warning limit is on the data in the file, not the physical size, so a file can be slightly larger on disk than the warning figure.

  3. Check whether limits are already set. In Registry Editor, look (read only) at these two locations for Outlook 2016, which the page gives as the policy location and the user preference location:

HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\16.0\Outlook\PST
HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Outlook\PST

If MaxFileSize, WarnFileSize, MaxLargeFileSize or WarnLargeFileSize exist there, someone has already changed the limit, and, on our reading, what you read is the limit in force; the page does not say which location wins when both exist. If the keys do not exist, the defaults in the table apply. Write the values down as the before state.

  1. Check whether Download Shared Folders is on for an unusually large .ost. The page says shared folders, and site mailboxes in Outlook 2013 and later, are synchronised into the .ost when that setting is on.

Example (illustrative): at a Perth engineering firm, projects.example.com.au users keep a shared mailbox open in Outlook with Download Shared Folders on. One user's .ost is close to 50 GB, the default Large limit, and Outlook reports problems when moving items. The registry shows no PST key, so the defaults apply. The size comparison supports the cause.

Fix

Choose by what the proof showed. There are two routes: reduce what is in the file, or change the limit. Reducing the data is the page's own advice in the error message. Raising the limit is the other route, but the page says it does not recommend UNICODE limits beyond its listed values because performance can decrease.

Route 1: remove data you no longer need

Disruptive step: The next step permanently deletes mail and other items from the data file. Permanent deletion cannot be reversed from inside Outlook, and the page gives no recovery route.

The error message says to select items you no longer need and permanently delete them. The page also says messages can be archived, as well as deleted, while the file is at the limit.

If the file is a .pst, take a copy of it first, with Outlook closed, to a place with enough space. For an .ost, the page does not say what deleting items does to the mailbox on the server, so talk to the user and the mailbox administrator first. This copy advice is general, not from the page.

Select the items that are no longer needed and permanently delete them, or archive them as the page allows.

To undo it: a permanent deletion cannot be reversed in Outlook. The only way back is the copy of the file taken before the deletion, kept for as long as the user might need it.

Route 2: change the limit with the registry values

Risk: The next steps edit the Windows registry for Outlook. The page warns that serious problems might occur if you modify the registry incorrectly, and that raising a UNICODE limit beyond the listed values can reduce performance.

This follows the page's steps for creating the values under the policy location. Before you start, back up the key. Microsoft's registry page says: in Registry Editor, locate and click the key you want to back up, select File, then Export, choose a location and a name, then select Save. If the PST key does not exist yet, there is nothing to export; the way back in that case is to delete the values you create.

Work out the numbers before touching the registry. The page recommends at least 5 percent between the maximum and the warning value, so that internal processes are not hindered, and says that a MaxFileSize above the ANSI 2 GB limit is ignored, so as to prevent corruption.

Example (illustrative): an IT team wants to limit mailbox files on a shared Remote Desktop host to 20 GB. MaxLargeFileSize is 20,480 (hex 0x5000) and WarnLargeFileSize is 19,456 (hex 0x4C00). Those match the page's older-version defaults, and 19,456 is 95 percent of 20,480.

  1. Select Start, then Run, type regedit, and select OK.
  2. Expand HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\16.0\Outlook for Outlook 2016.
  3. If there is no PST key, right-click Outlook, point to New, select Key, and type PST.
  4. Right-click PST, point to New, and select DWORD (32-bit) Value. Type MaxLargeFileSize, press Enter twice, choose Decimal, type the value, and select OK.
  5. Repeat for WarnLargeFileSize, then for MaxFileSize and WarnFileSize, as the page does.
  6. Close Registry Editor. As general advice, restart Outlook afterwards.

For many machines the page says to use the ORK tool for mass deployment of these registry keys and to automate their creation. Changes for many users belong to the administrator who owns that deployment.

To undo it: if you exported the PST key before, import that file in Registry Editor with File, Import, and delete any value you added that is not in the exported file. If the key or values did not exist before, delete the values (and the PST key if you created it) and restart Outlook. On our reading, which the page does not state, that returns Outlook to the defaults in the table.

Confirm the fix

  • The action that failed, whether moving items, sending, or synchronising, now succeeds.
  • The file's size and the limit in the registry are written side by side in the ticket, with the 5 percent gap between maximum and warning where you changed values.
  • After a restart, the user can move items into the file and Sent Items fills as expected.
  • If Route 2 was used, re-read the four values in Registry Editor and compare them with what you intended, in decimal.

What to watch afterwards

  • Files near the warning size. The page says Outlook compacts, then stops sending and moving at the warning level; the registry warning values do not make Outlook warn the user in advance, which the page says explicitly.
  • Shared folders and site mailboxes in Cached Exchange Mode, which the page says can push an .ost over the limit.
  • Raised limits. The page says UNICODE limits beyond its listed values can reduce performance.
  • Any value that exceeds the ANSI 2 GB limit for the ANSI entries. The page says it is ignored.
  • Archive files. The page says Auto-Archive fails when its .pst reaches the warning size.

Risks and limits

These steps have not been run or lab-tested.

The page's Applies-to line lists Outlook 2016, 2013, 2010, 2007 and 2003; it does not name current Microsoft 365 builds. The page gives no method for finding a data file or telling an ANSI file from a UNICODE file, and no guidance on how large a file Outlook handles well. Its two tables disagree on the Outlook 2013 and 2010 Large defaults, so the figures here are for Outlook 2016 only. Microsoft's pages give no figures for how many cases each cause covers. Route 2 changes registry values under the Policies location, and the page does not say what happens when a managed policy sets the same values.

Sources