InvalidCastException

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

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

1 Like

@andrzej.kniola Thanks. This helps.