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

Question

Question

Import Agent not importing PDF

asked on November 2, 2017

I have users who will send pdf's to a network folder.  At the end of the day I want to send those pdf's to Laserfiche (not all of the users have Laserfiche).  We have Import Agent 10.0.0.219.  The profile I created searches for All files.  During testing, IA runs and moves the pdf to an error folder (for files that fail to import).  If I put the document in the folder as a tif it will move with no issue.  I'm not generating text, only Laserfiche pages.  The pdf isn't Hidden or Read-Only. I have other profiles that move tif and lst files but I can't get it to work for pdf.   The event viewer error states that it can't find the specified file, even though it moves it to the failed folder.  Here is the Windows Logs Application Error:

There was an error running the profile PCard Receipts while importing the file "C:\Testing\TXN1300.pdf". (Could not load file or assembly 'O2S.Components.PDFRender4NET, Version=4.7.4.0, Culture=neutral, PublicKeyToken=6753860be21d84fb' or one of its dependencies. The system cannot find the file specified.)

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)

 

Any help would be appreciated.

0 0

Answer

SELECTED ANSWER
replied on November 2, 2017

Hi Shannon,

The error reported in the application event log indicates that Import Agent is trying to use version 4.7.4.0 of O2S.Components.PDFRender4NET, however, that specific version of the dll can't be found on the computer. 

By default, Import Agent 10 would not be using that dll. By default it would use version 4.7.1.4. 

It appears that someone edited the C:\Program Files\Laserfiche\Import Agent\ImportAgentService.exe.config file and told it to specifically look for the version 4.7.4.0 files. 

With that being said, one way to resolve the matter would be to just install the 10.2.1 Client on the computer where Import Agent is installed. That will install the 4.7.4.0 files that Import Agent is referencing. 

Or you can change the ImportAgentService.exe.config to remove the assembly binding 4.7.4.0.

1 0

Replies

replied on November 2, 2017 Show version history

The error seems to indicate a problem with the installed components; it is saying one of the assembly components could not be found in the GAC (global assembly cache).

Under C:\Windows\assembly\GAC_MSIL on that server you should find a folder for O2S.Components.PDFRender4NET, which should contain the dll in question.

If that folder is missing, the newest version subfolder does not contain the DLL, etc., then you may need to repair or reinstall Import Agent.

 

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

Sign in to reply to this post.