Home
About
Search
Welcome to M-Files Empower – our new support experience. We'd love to hear what you think!Give feedback
Home/Support and troubleshooting/Troubleshooting/Error resolution

Error: "Could not allocate space for object" because the PRIMARY file group is full

Last updated on 30 December 2022

Admin

Overview

If the SQL DB Server runs out of drive space this can cause severe issues with M-Files operations and even prevent files from opening with errors like the below:

image.png

In this case, even deleting or destroying objects from the vault is unlikely to resolve the issue as the database does not resize right away but will instead do that during the next Optimization operation. Though the Optimization process will likely fail due to a lack of available space. Note that M-Files does not resize the database on its own, if its size decreases during some maintenance operations, this is due to normal MSSQL operation.

Solution

See what can be cleared from the DB drive even temporarily. First double check the transaction log size and truncate if needed:

https://learn.microsoft.com/en-us/sql/relational-databases/logs/manage-the-size-of-the-transaction-log-file?view=sql-server-ver16

If this is a VM, then allocate more space for the drive.

Once resolved, verify if the M-Files File Data is also kept on the SQL Database or if it's separate. We recommend that the File Data not be stored in the SQL DB:

https://www.m-files.com/user-guide/latest/eng/changing_the_location_of_the_vault_file_data.html

Still need help?

On this page