- Compacting your Outlook data file and cleaning up old email items can effectively resolve this error.
- Identify emails with large attachments and save them in a separate folder to prevent the Outlook data file from increasing in size.
- If necessary, you can increase the Outlook PST file size limit by editing registry files on Windows.
Fix 1: Compact the Microsoft Outlook Data File
Compacting your Outlook data file removes unused space and purges redundant information from the data file, effectively reducing its size. Hence, you should try that first.
Step 1: Open the Outlook app on your PC and click the File menu in the top-left corner.

Step 2: In the Info tab, click on Account Settings and select Account Settings from the resulting menu.

Step 3: Under the Data Files tab, select the Outlook data file and click on Settings .

Step 4: Click the Compact Now button.

Fix 2: Clean Up Old Outlook Items
Archiving old mail items in Outlook is another way to reduce the size of your Outlook data file. This will move your old emails to a separate PST file while still keeping them accessible.
Step 1: Open the Outlook app and click the File menu in the top-left corner.
Step 2: In the Info tab, click on Tools and select Clean Up Old Items .

Step 3: In the Archive window, choose the Archive this folder and all subfolders option and select your email account.

Step 4: Click the drop-down menu next to Archive items older than and select your preferred date. Then, click OK .

Fix 3: Enable AutoArchiving in Outlook
Although manually archiving old mail items in Outlook does not take long, you can also automate this process by enabling the AutoArchiving feature. Here’s how:
Step 1: Open the Outlook app and go to File > Options .

Step 2: In the Outlook Options window, switch to the Advanced tab and click the AutoArchive Settings button.

Step 3: Tick the Run AutoArchive every checkbox and specify the number of days after which the AutoArchive feature will run.
Step 4: Use the checkboxes to specify how Outlook needs to handle old items during AutoArchive.

Step 5: Enter the age of the items you want to archive and then click OK .

Fix 4: Save Attachments in a Different Folder
If you frequently exchange emails with large attachments, it can increase the size of your Outlook PST file and trigger the “Outlook data file has reached the maximum size” error on Windows. To fix this, you will need to identify emails with large attachments in Outlook and save those attachments in a separate folder.
Step 1: Open the Outlook app, click the filter option, and select Size under Arranged by.

Step 2: Open any email under the Huge or Very Large section. Right-click on your attachment and select Save All Attachments .

Step 3: Click OK and save the attachments in your preferred folder.

Step 4: Right-click on your attachment and select Remove Attachment .

Fix 5: Increase the PST File Size Limit Using the Registry Editor
Reducing the size of the Outlook data file may not be feasible for you if you regularly receive large files via email or engage in extensive email communication. Fortunately, it’s possible to increase the Outlook PST file size limit by editing registry files .
Step 1: Press the Windows + R keyboard shortcut to open the Run dialog box. Type regedit in the box and press Enter .
Step 2: Paste the following path in the address bar at the top and press Enter.
Computer\HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Outlook\PST
Step 3: Right-click the PST key, go to New , and select DWORD (32-bit) Value from the submenu. Rename it to MaxLargeFileSize . Similarly, create another DWORD and name it WarnLargeFileSize .

Step 4: Double-click the MaxLargeFileSize DWORD and enter 51200 in the Value data field if you want to set the PST file size limit to 50GB. Alternatively, if you want to set the limit to 40GB, enter 40960 instead. Then, click OK .

Step 5: Double-click the WarnLargeFileSize DWORD and set its value to 95% of the MaxLargeFileSize value. For instance, if you have set the MaxLargeFileSize DWORD to 51200 , set the value for WarnLargeFileSize to 48640 (95% of 51200) and click OK .
