InvalidCastException

uiautomation

#1

hi,
i am trying to extract from pdf file, i am following Uipath you tube tutorial step but getting below error


[Main has thrown an exception
Message: Unable to cast object of type ‘EmptyDelegateActivity’ to type ‘System.Activities.ActivityWithResult’.
Source: Read PDF with OCR
Exception Type: InvalidCastException]

please help


#2

You need to add an OCR engine in Read Pdf body. You should have Google OCR by default, search the activities pane for it.


#3

@andrzej.kniola Thanks. This helps.