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

Question

Question

[5427]: An error occurred during the execution of the Save to Repository service task. [LFF5427-ErrorExecuteSTR] Saving PDFs

asked on January 29, 2018

We have a customer that is getting this error when when the Form gets to the "Save to Repository".

They are on version 10.2.1.246

They are able to fill out the form with no issues and the size of the 2 PDF attachments are no where close to the maximum size (428.83KB and 172.74KB). Here is the error log:

 

[5427]: An error occurred during the execution of the Save to Repository service task. [LFF5427-ErrorExecuteSTR]

Details:

URL:

Error: ErrorExecuteSTR

Date: 1/24/2018 7:02:45 PM (Central Standard Time)

HTTP Status Code: 500

Business Process ID: 2

Instance ID: 21999

Business Process Name: FIN-Travel Authorization Form

Stack Trace:

Caught exception: Laserfiche.Forms.CommonUtils.Exceptions.LFFormsException

Message: An error occurred during the execution of the Save to Repository service task. [LFF5427-ErrorExecuteSTR]

   at Laserfiche.Forms.Routing.SaveToLaserficheService.Execute(Int32 instanceId, IRoutingContext routingContext, RoutingInstanceStatus OriginalStatus)

   at Laserfiche.Forms.Routing.ServiceTask.Execute(Int32 instanceId, IRoutingContext routingContext)

Inner exception: System.ArgumentException

Message: Parameter is not valid.

   at System.Drawing.Graphics.MultiplyTransform(Matrix matrix, MatrixOrder order)

   at ..( , Graphics , GraphicsPath , Boolean )

   at ..( )

   at ..(Graphics , Double , Double , Double , Double )

   at ..(Graphics , PDFPrintContent , Boolean , Boolean , Double )

   at O2S.Components.PDFRender4NET.PDFFile.(Int32 , Graphics , Double , Double , Boolean , PDFPrintContent , Boolean , Boolean , Double )

   at O2S.Components.PDFRender4NET.PDFFile.(Int32 , Double , PDFPrintContent , Boolean , Double , Int32 )

   at Laserfiche.PdfServices.PdfExtractor.ImportPDFPageImage(PDFFile file, DocumentInfo doc, Int32 nPageIndex, Int32& height)

   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)

   at Laserfiche.Forms.Routing.SaveToLaserficheService.Execute(Int32 instanceId, IRoutingContext routingContext, RoutingInstanceStatus OriginalStatus)

 

Does anyone know what the issue may be? Maybe a corrupted version of the PDFs?

Thank you! :)

0 0

Replies

replied on January 29, 2018

Are they saving it with a template? If so, have them try the task without the template to see if the error persists. If it saves fine, then I'd take a look at the metadata fields to make sure they're not trying to pass incompatible variables.

 

replied on January 29, 2018

Hi Jonathan,

It seems that the error was related with saving the PDF attachment to repository and extracting images from the PDFs.

Have you tried manually import the PDF file to repository and see if there is error? If there is error, it may be PDF file issue like file corrupted; if there is no error on manual import but error persists when importing through Forms, can you open a support case and provide the files to us? Thanks.

0 0
replied on January 30, 2018

I will have the user test. Thanks!

0 0
replied on January 30, 2018

So we tested and concluded that one of the PDFs were not able to import manually. The user has removed it from the form and it saved into Laserfiche. 

0 0
replied on January 30, 2018

On the 10.2 upgrade Forms now tried to automatically generated pages from PDFs when it is imported.  Unless it is essential for you to have the pages generated, try turning that off in client/Web Access (whichever you are using) and try importing again.  Upgrade notes say that this feature is dependent of having the generate pages turned on.  Unfortunately this is a user by user thing so whoever is importing with the form will need to make the change to test it.

Under Options - New Documents - Settings make sure the When Importing PDFS: Generate Laserfiche pages is unchecked then try importing again.

 

GeneratePDFPages.jpg
0 0
replied on January 30, 2018

I will have the user test. Thanks!

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

Sign in to reply to this post.