When importing PDFs into the repository, either via Import Agent or the Client (web or desktop), certain ones are throwing a "General database error [9008]". The Import Agent event viewer logs suggested the problem had something to do with the PDF annotations, and after looking at the PDFs themselves -- these are architectural/engineering drawings generated by AutoCAD -- we think the problem has something to do with how AutoCAD's SHX text is written to the PDF.
Please see below for an example Import Agent log. Although I'm pretty sure the problem has something to do with these SHX text comments, I'm not sure why they would be causing a problem with the generation of pages, but if not, we'd appreciate it if anyone can shed light on this.
Log Name: Application
Source: Laserfiche Import Agent Service
Date: 2017-02-07 16:48:54
Event ID: 0
Task Category: None
Level: Error
Keywords: Classic
Description:
There was an error running the profile Initial Upload - Engineering Plans while importing the file "\\BGM-LF1.corp.datavu.biz\C\IA\EP\E502 First Floor Plan Fire Alarm---16-1271.pdf". (General database error. [9008])
at Laserfiche.RepositoryAccess.Annotation.SendSaveRequest(HttpUrl url, IEnumerable`1 col, String lockToken, Boolean created, Session session)
at Laserfiche.RepositoryAccess.PageInfo.AddAnnotations(IEnumerable`1 annotations)
at Laserfiche.PdfServices.AnnotsImporter.ConvertRectangleAnnotation(PdfDictionary annotDict, PageInfo page)
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.PdfServices.PdfExtractor.ImportPDFFile(String strPDFFile, DocumentInfo doc)
at Laserfiche.ImportAgent.Service.ExecuteProfileFile.ImportPDFFile(ExecutionContext context, DocumentInfo LFDoc, FileInfo fi, Profile profile)
at Laserfiche.ImportAgent.Service.ExecuteProfileElectFile.ImportFile(ExecutionContext context)
at Laserfiche.ImportAgent.Service.ExecuteProfileFile.Execute(ExecutionContext context) (9008)