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

Question

Question

Quick Field Agent Error - Unable to Cast COM Object

asked on April 3, 2023

I keep getting this error when one of our session runs.  The session appears to be doing everything correctly.  It's processing the file and placing the broken down files into the correct location in the repository.  I can't find anything wrong with what it is doing but the error keeps popping up in Quick Fields Agent Admin Console.  

Error:  Type="InvalidCastException" Message="Unable to cast COM object of type 'System.__ComObject' to interface type 'BPINTERFACES81Lib.IBPEngineEx'. This operation failed because the QueryInterface call on the COM component for the interface with IID '' failed due to the following error: The RPC server is unavailable.

Error:  Type="COMException" Message="The RPC server is unavailable.

Since the file is processing correctly, I'm not super concerned about it but it would be nice to know what is causing it.  We are on Quick Fields Agent 11.0.

1 0

Replies

replied on April 3, 2023

Hi Scott,

There is a similar post Quick Fields Agent Session Errors - RPC server is unavailable - BPINTERFACES81Lib.IBPEngineEx - Laserfiche Answers related to your issue, is the detailed error trace the same as yours? Do you mind attach a full log here or open a new support case for your issue?

0 0
replied on April 4, 2023

Thanks for your response Shengyao Que.  In looking at the post, it seems like we have the same/similar error going on here.  I seem to get the error anytime the pages get over a couple hundred.  If the page count gets to 700/800, then I get a similar error but not all of the pages are processed.  It will process everything up to that 700/800 point correctly, but nothing after that.  The file stays in the same place and the next time it runs, it will duplicate the first 700/800 pages and again act almost like a timeout for anything after that. 

The interesting thing is if I run the Quick Fields session manually inside the software, by just hitting the "Start Scanning" button.  It runs without issue even when the page totals are over a 1000.  This error only seems to happen when QF Agent starts a session via a set schedule.  I'll paste in the error log and also just a screenshot of the Events tab.  If you need anything else let me know.

Error Details:

<Errors>
<Error Time="04/01/2023 02:34:17" Type="InvalidCastException" Message="Unable to cast COM object of type 'System.__ComObject' to interface type 'BPINTERFACES81Lib.IBPEngineEx'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{5168B92F-51B0-46CF-9094-30BFCA8F77ED}' failed due to the following error: The RPC server is unavailable. (Exception from HRESULT: 0x800706BA).">
  <HelpLink />
  <Trace>   at System.StubHelpers.StubHelpers.GetCOMIPFromRCW(Object objSrc, IntPtr pCPCMD, IntPtr&amp; ppTarget, Boolean&amp; pfNeedsRelease)
   at BPINTERFACES81Lib.IBPEngineEx.set_Properties(String Name, Object pVal)
   at Laserfiche.BatchProcessor.ComponentModel.EngineProxy.set_Item(String propertyName, Object value)
   at Laserfiche.QuickFields.Processes.Proxies.CaptureEngineProxy.ResetQueue()
   at Laserfiche.QuickFields.Runtime.QFSessionProcessor.ProcessingThread_QueueEmpty(Object sender, EventArgs e)
   at Laserfiche.BatchProcessor.Runtime.ProcessingThread.ProcessItemsThread(Object state)</Trace>
</Error>
<Error Time="04/01/2023 02:34:28" Type="COMException" Message="The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)">
  <HelpLink />
  <ErrorCode>-2147023174</ErrorCode>
  <Trace>   at System.Runtime.InteropServices.ComTypes.IConnectionPoint.Unadvise(Int32 dwCookie)
   at Laserfiche.BatchProcessor.ComponentModel.EngineAdapter.DisconnectEngine()</Trace>
</Error>

</Errors>

Thanks so much for looking into this.

Scott

QF Agent Events Tab.png
0 0
replied on April 11, 2023

Hi Scott,
We tried to reproduce the issue using Quick Fields 11Update2(11.0.0.596) and 11Update3(11.0.2303.30120), using Laserfiche Capture Engine as scan source to scan a document (around 1200 pages) from a cloud repository. It does run into the second error "The RPC server is unavailable.", but we cannot reproduce the first error.

 

When the second error occurred, document can be scanned and stored properly. All 1200 pages were successfully stored. With that we suspect it is the first error you posted that caused the documents stopped scanning.

 

Since we couldn't reproduce the first error, do you mind open a support case and share your session file? So it's easier to find the cause. Besides, can you tell us the exact Quick Fields version you are on. You can find it by click Help -> About... in Quick Fields.

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

Sign in to reply to this post.