Summary
If the tempdb database is full, importing new files can compromise data integrity. You may see the following message in the Event Viewer:
Error executing the stored procedure 'lfsp_get_next_storeid_by_volume' in database 'Database_Name'. Could not allocate new page for database 'TEMPDB'. There are no more pages available in filegroup DEFAULT. Space can be created by dropping objects, adding additional files, or allowing file growth.
Cause
Stored procedures can fail to execute if the tempdb SQL Server database is full. When scanning in a new document or importing a new file, LaserFiche calls a stored procedure (lfsp_get_next_storeid_by _volume or lfsp_get_next_elecstoreid_by_volume) that returns the next counter value. Anything created in the volume for that session then increments that counter and uses the values as a unique ID for that file. If the stored procedures fail to execute, the counter resets to 0. Any new images or electronic files would then overwrite other items already in that LaserFiche volume.
Resolution
Failure to properly execute a stored procedure does not return any LaserFiche errors. If you suspect that newly scanned or imported documents are overwriting older documents, you must manually check for possible data corruption. There are two methods to check for this particular error:
If you suspect data corruption, use the following utility to check which documents need rescanning:
The utility will return a list of documents that share images or a list of documents that are missing images. At this point, you may either rescan the afflicted documents or restore the database from backup.
Workaround
There are two steps to prevent tempdb from filling up: