Subject: Notes error: Folder is larger than supported, cannot perform operation
Found this in my archive
http://www-10.lotus.com/ldd/46dom.nsf/DateAllFlatweb?SearchView&Query=Notes+Error:Folder+is+larger+than+supported,+cannot+perform+operation
You will have to define the context of the error message to know what is happening. Is it when replication of a mailbox
occurs, or is it when another event takes place?
This is what Lotus has to say about this kind of error:
========================================================
PROBLEM
You receive the error “Folder is larger than supported” under a number of circumstances, including:
- Scheduled replication between servers. Error message: "Unable To Replicate .
Folder is Larger Than Supported - Cannot Perform Operation."
- Client to server replication of a mail file. Error message: "Unable to add note XXXXX to folder in Database
: Folder is larger than supported, cannot perform operation."
- Deletion of documents from a folder in a database.
The task being performed when the error occurs may complete successfully, but there are also times when it may fail
such as server to server replication
SOLUTION
This error message occurs if the number of “Folder Objects” in the database exceeds the limit of 50. The number of
folder objects can be checked using NotesPeek. Open the database in NotesPeek, highlight the folder in question, and
check the summary items of the folder to look at the folder objects which will show $FolderObject, $FolderObject1,
etc…
When the folder objects reach the limit of 50, an automatic folder reorganization is done to reduce the number of folder
objects. When the folder reorganization is not successful, the error “Folder is larger than supported” is returned.
There are three things that are used to perform a folder reorganization:
-
Operations older than the cutoff date (under File - Replication - Settings) are compressed.
-
Duplicate folder operations for the same noteid are discarded, leaving only the last folder for that Noteid.
-
Operations related to deleted notes will be removed if they fall outside of the cutoff date.
WORKAROUNDS
Here are three things you can do to reduce the folder objects:
- Compact the database.
Compacting a database performs a folder reorganization, which may reduce the number of folder objects.
- Change the purge interval.
A lower purge interval reduces the cutoff date, which in turn compresses or removes folder operations. To lower the
purge interval, choose File - Replication - Settings and on the “Space Savers” tab, change the numeric value next to
“Remove documents not modified in the last xx days.” Do not check the box, simply change the numeric value. The
default is 90. This number should not be lower then your full replication cycle. For example, if this database replicates
everywhere in your environment within one week, setting the value to 15 would be well within reason. Run Compact
after changing the purge interval. For more information on the purge interval, refer to Technote #158404.
- Recreate the folder.
A new folder will not contain historical folder operations, therefore the folder will have fewer folder objects. The
technique to use is as follows:
Scenario: Folder “ABC” has maxed out folder objects:
-
Create a new folder called “Temp”
-
Move everything from “ABC” folder into folder “Temp”
-
Delete “ABC” folder
-
Create a new folder called “ABC”
-
Move everything from “Temp” folder back into the “ABC” folder
-
Delete “Temp” Folder
This can be done programmatically via LotusScript
Application Centric Information
Some customers have run into this scenario in custom applications and would like to know what can be done to try and
avoid this issue. The basic answer is to be efficient in the number of individual folder operations that are performed.
Review the code to avoid unnecessary adding and removing of documents from a folder. For example, sometimes it is
easier to code script to remove everything from the folder, and then add documents en masse based on a criteria. If the
documents are already in the folder, then the script could be written to check if the documents exist first. Another idea is
to evaluate whether the operation would be better performed with a view, by setting a flag field that would include it in a
view’s selection formula. Finally, adding programmatic maintenance to recreate folders from scratch would also be
recommended.