We have a real mystery in an SDK application we wrote in toolkit 8.3, for an 8.3 server.
The application takes files provided from an external source, and imports them into Laserfiche. We recently moved the server to a VM, and that is the only change in the environment.
Here's the mystery: The application worked without issue for years, even after the server move. Now every other day roughly, it fails at the very last step. The next day, it will work fine. Later in a day when it fails, it will work fine.
To summarize we get a batch of images we process and import into Laserfiche. When the routine fails, it fails for all of them. When it works, it works or all of them.
The very last step involves adding pages to the document we just created, using:
If Importer.IsAnImageFile(sDocumentFile) Then Importer.ImportImagesFromFile(sDocumentFile) Else Importer.ImportElectronicFile(sDocumentFile) End If 'Clean Up and Return a Status Importer = Nothing LF_Document.Dispose() Return True
This is within a Try Catch block.
When the process fails, the files do not get written to the Volume. But, there are NO error messages from the server, and NO error messages in Event Viewer. It as if the files were whisked to Never Never Land by magic. The volumes are local to the server itself.
Here are some details. Seen in LF, the document thinks it has pages.
When you open the document, you have nothing:
Pages either shows nothing:
Or thinks it wrote the files:
In this last case, the files were actually missing entirely, even though the server shows file names and sizes.
Any ideas? TIA