Hello!
Please tell me. I can not handle the error “OCR: Scrape returned empty text”:
I tried to handle the error in possible ways:
- Set ContinueOnError to True for activity “Get OCR Text”
- Use a Try-Catch Block for activity “Get OCR Text” (I used SystemException and RemoteException)
In the first case, the process stops and I get an error:
RemoteException wrapping System.ArgumentNullException: Value cannot be null.Parameter name: source **
** at System.Linq.Enumerable.ToList[TSource](IEnumerable1 source) at UiPath.Core.Activities.GetOCRText.OnScrapeCompleted(NativeActivityContext context, ActivityInstance completedinstance, IEnumerable
1 result) at System.Activities.Runtime.FuncCompletionCallbackWrapper`1.Invoke(NativeActivityContext context, ActivityInstance completedInstance) at System.Activities.Runtime.CompletionCallbackWrapper.CompletionWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)
In the second case, the process stops and I get an error:
RemoteException wrapping System.Exception: Scrape returned empty text. **
** at UiPath.Core.Activities.GetOCRText.OnScrapeFaulted(NativeActivityFaultContext faultContext, Exception propagatedException, ActivityInstance propagatedFrom) at System.Activities.Runtime.FaultCallbackWrapper.Invoke(NativeActivityFaultContext faultContext, Exception propagatedException, ActivityInstance propagatedFrom) at System.Activities.Runtime.FaultCallbackWrapper.FaultWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)