You are viewing limited content. For full access, please sign in.

Question

Question

Laserfiche Forms Error: LFF5437-STRErrorGeneratePage

asked on August 31, 2023

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)

1 0

Replies

replied on August 31, 2023 Show version history

Hi Robin,

Is this error happens for all instances or  just some instances with specific pdf uploaded?

Usually, the error "PDF stream is damaged and it could not be loaded." is because the pdf is damaged so that repository cannot generate pages with text for it. 

With Forms 11, there is an option to ignore the generate page error in Save to Repository service task so the process can proceed on.

1 0
replied on September 1, 2023

Hi Yuxuan,

The error occurred only for a handful of documents.  The users did not realize that the instances were suspended, so they tried to submit the documents multiple times.  One thing that is odd is that several of the documents actually made it into the repository and were filed.  In other words, the error occurred intermittently for the same document, which seems to indicate that the document was not damaged.

Thank you for the information regarding the "ignore errors when generating pages" option.  We were not aware of this option.  Is there any reason that you can think of that we would not want to enable this option?

Robin

 

 

1 0
replied on September 5, 2023

Hi Robin,

By enabling the "ignore errors when generating pages" option, the process will not suspend when page cannot be generated so the business process can proceed.

Since only several instances failed, we may need more information to investigate the issue. I would suggest to open up a support ticket and our support engineer will help you to investigate further :)

Yuxuan

0 0
replied on July 11

Just to add, this error also occurs when the PDF is password-protected. Needs to be removed as per https://www.adobe.com/za/acrobat/how-to/unlock-pdf.html frown

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.