See Lotus Notes Knowledgebase articles. f.e.:
<br/>
"Error Compacting <db>: The Object Store..." After Upgrading to Domino 6.x <br/>
<br/>
Product:<br/>
Lotus Domino > Lotus Domino Server > Version 6.x<br/>
Platform(s):<br/>
Platform Independent<br/>
Doc Number:<br/>
1108173<br/>
<br/>
Published 13.09.2004<br/>
Technote<br/>
<br/>
<br/>
Problem<br/>
<br/>
When running compact on specific mailfiles after upgrading a Domino server to 6.x, you see the following error:<br/>
<br/>
"Error compacting <db>: The object store that is used by this note was not found or is not a Notes database". <br/>
<br/>
Shared mail is not being used, and it is unknown whether it was ever used on the server at any point.<br/>
<br/>
<br/>
<br/>
<br/>
Solution<br/>
<br/>
In this case, the error was due to note-level corruption of specific documents. Although the source of the corruption was not determined, the workaround was to use the console command:<br/>
<br/>
load object collect -force <databasename><br/>
<br/>
to clear the $ObjectStoreLink field and delete the damaged documents. Compact then ran normally.<br/>
<br/>
Supporting Info:<br/>
OBJECT COLLECT -FORCE will purge any message with no valid links.<br/>
<br/>
<br/>
<br/>
<br/>
Related Attachments<br/>
<br/>
<br/>
<br/>
<br/>