We have a form that users use to upload documents to our Laserfiche repository. The form is working and users are uploading many documents per day.
We noticed that there are about 18 form upload tasks in suspended status in the Forms Monitor. The full stack of the error is shown below. I've searched the Laserfiche knowledgebase and google for the specific error, but have not found any answers.
We are using Forms version 11.
Any idea what would cause this error? The user was able to upload the documents that originally generated this error, so it does not seem to be an issue with the documents.
Error Stack
An error occurred when generating pages for PDFs in a Save to Repository service task. [LFF5437-STRErrorGeneratePage]
Details:
URL:
Error: STRErrorGeneratePage
Date: 8/24/2023 1:03:48 PM (Mountain Standard Time)
HTTP Status Code: 500
Business Process ID: 4
Instance ID: 8965
Business Process Name: SR - Document Upload
Stack Trace:
Caught exception: Laserfiche.Forms.CommonUtils.Exceptions.LFFormsException
Message: An error occurred when generating pages for PDFs in a Save to Repository service task. [LFF5437-STRErrorGeneratePage]
at Laserfiche.Forms.Routing.SaveToLaserficheService.Execute(Int32 instanceId, IRoutingContext routingContext, RoutingInstanceStatus OriginalStatus)
at Laserfiche.Forms.Routing.ServiceTask.Execute(Int32 instanceId, IRoutingContext routingContext)
Inner exception: f6
Message: PDF stream is damaged and it could not be loaded.
at f5.a(Stream A_0, Byte[] A_1)
at O2S.Components.PDFRender4NET.PDFFile.a(String A_0, Stream A_1, Byte[] A_2)
at O2S.Components.PDFRender4NET.PDFFile.Open(Stream stream)
at Laserfiche.PdfServices.PdfExtractor.LoadFile(Stream pdfStream)
at Laserfiche.PdfServices.PdfExtractor.ImportPDFPagesFromStream(Stream pdfStream, DocumentInfo doc)
at Laserfiche.PdfServices.PdfExtractor.ImportPDFStream(Stream pdfStream, DocumentInfo doc, DateTime dtLastModified)
at Laserfiche.Forms.CommonUtils.LFHelper.TryImportAttachment(Session sess, cf_bp_attachment_data attachment, FolderInfo parentFolder, String volume, String attachmentName, String ext, Boolean ignorePageError, Boolean& checkOutVersionDocument)