Howdy all,
We're getting an odd case of a PDF being move to the recycle bin by Email Archive when there's an error. It's deleted before workflow can access it, and it the users it's never visible. I'm hoping someone here has seen it before.
The biggest problem is that file is functionally lost.
Email Archive Version 11.0.0.332
Audit Trail reports the following sequence in the first second:
- Create Document
- Write E-File Contents
- Create Page
- Modify Page
- Create Page
- Modify Page
- Create Page
- Modify Page
- Recycle Entry
The event viewer for Email Archive reports the error:
Account [EMAIL ACCOUNT]: Exception occurred when processing mail (22a52dee-e968-42bb-937a-13c8ba1db4bb) attachment in profile Project Invoice. System.InvalidCastException Message: Unable to cast object of type 'iTextSharp.text.pdf.PdfDictionary' to type 'iTextSharp.text.pdf.PdfArray'. StackTrace: at Laserfiche.PdfServices.AnnotsImporter.ImportPDFPageAnnotsWithiTextSharp(PdfDictionary pageDict, DocumentInfo doc, PageInfo page) at Laserfiche.PdfServices.AnnotsImporter.ImportPDFAnnotsWithiTextSharp(PdfReader pdfReader, DocumentInfo doc) at Laserfiche.PdfServices.PdfExtractor.ImportPDFPagesFromStream(Stream pdfStream, DocumentInfo doc) at Laserfiche.PdfServices.PdfExtractor.ImportPDFStream(Stream pdfStream, DocumentInfo doc, DateTime dtLastModified) at Laserfiche.EmailArchive.Workers.ImportDocumentWork.GeneratePdfPages(DocumentInfo doc, IImportDocumentWorkSettings settings, IImportDocumentSource source) at Laserfiche.EmailArchive.Workers.ImportDocumentWork.ImportDoc(DocumentInfo doc, IImportDocumentWorkSettings settings, IImportDocumentSource source) at Laserfiche.EmailArchive.EmailExecuteJob.AttachmentDistWrapper.CreateAttachments(LfAttachmentCollection attachments, ICreateDocumentWorkParameters emailCreateDocParameter, IImportDocumentWorkSettings importSettings, AssignMetadataWork assignMetaWork)