Open multiple PDFs in Acrobat, launching/selector problem

My workflow is intended to do the following:

  1. Get PDF files list from a folder
  2. Loop through each file
  • Open in Acrobat
  • Perform processing
  1. Persist data in Excel/SQL

What is the best way to do Step 2? I need to open Acrobat.exe because I need to perform OCR to detect company logos. Currently the workflow works when I run the first file, but for subsequent files I get selector error. I am currently passing the file name to open into the arguments field for Acrobat.exe.

The loop of the workflow currently looks something like
For each filename
(open application Acrobat.exe “filename”
(run processing steps e.g. OCR, extraction))

Error info:


Source: Open Application ‘Acrobat.exe Adobe’

Message: Selector not found

Exception Type: System.Runtime.InteropServices.COMException

An ExceptionDetail, likely created by IncludeExceptionDetailInFaults=true, whose value is:
System.Runtime.InteropServices.COMException: Selector not found
at UiPath.Executor.WorkflowRunner.EndExecute(IAsyncResult result)
at UiPath.Core.Activities.InvokeWorkflowFile.EndExecute(AsyncCodeActivityContext context, IAsyncResult result)
at System.Activities.AsyncCodeActivity.System.Activities.IAsyncCodeActivity.FinishExecution(AsyncCodeActivityContext context, IAsyncResult result)
at System.Activities.AsyncCodeActivity.CompleteAsyncCodeActivityData.CompleteAsyncCodeActivityWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)