asked on December 20, 2021

Hi everyone.

One of our clients has a problem with importing a tif document through our connector which uses the Laserfiche SDK. If we specify OcrImages = true, then during the call to ImportImages it returns an exception System.UnauthorizedAccessException: Access is denied which is thrown from the BPIClientLib.IBPProcessEx.Process (IBPPageEx pUnkPage) method, here is the StackTrace call:

Export to LF: System.Exception: Abbyy.Connectors.Dms.Infrastructure.DmsConnectorException: An error occurred while creating. System.UnauthorizedAccessException: Access is denied.
at BPIClientLib.IBPProcessEx.Process(IBPPageEx pUnkPage)
at Laserfiche.DocumentServices.OcrEngine.ProcessImage(String imagePath, DocumentInfo document, PageInfo page)
at Laserfiche.DocumentServices.DocumentImporter.OcrImage(String image, PageInfo page)
at Laserfiche.DocumentServices.DocumentImporter.InternalImportImages(String imagePath, PageRange pagesToImport)
at Laserfiche.RepositoryAccess.Extensions.DocumentInfoExtensions.ImportContent(DocumentInfo docInfo, FileContent importedFile, Dictionary`2 dmsSettings)
at Laserfiche.RepositoryAccess.Extensions.DocumentInfoExtensions.Update(DocumentInfo docInfo, DocumentCreationJob job)
at Abbyy.Connectors.LaserficheConnector.RepoConnector.CreateDocument(FolderInfo folderInfo, DocumentCreationJob job)
at Abbyy.Connectors.LaserficheConnector.RepoConnector.Create(Folder folder, DocumentCreationJob job) ---> System.UnauthorizedAccessException: Access is denied.

Connector code:

var importer = new DocumentImporter();
importer.Document = docInfo;
importer.OcrImages = true; 
importer.PagePosition = 1;
importer.OverwritePages = true;
importer.ImportImages(tempPath);

If OcrImages = false, then the import goes through without errors.

LF 10.4 server is installed, SDK Runtime 10.4 and OCR with OmniPage 19.2 is installed (also tried on SDK 10.2 and OCR 18.5).

The import goes through the ADMIN user with all permissions.

Searching online I haven’t found anything about similar problems. Has anyone else come across this issue with LF SDK?

 

0 0