Error with uipath Screen OCR

19.4.4+Branch.support/v2019.4.Sha.6d308c7f5a32b559373887ae421ce7eaec8f8d24

Source: Throw

Message: Error performing OCR: Error while copying content to a stream. ScreenOCRErrorRunningEngine

Exception Type: System.Exception

An ExceptionDetail, likely created by IncludeExceptionDetailInFaults=true, whose value is:
System.Exception: Error performing OCR: Error while copying content to a stream. ScreenOCRErrorRunningEngine ----> System.ServiceModel.FaultException: Error while copying content to a stream. ScreenOCRErrorRunningEngine
at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
at System.ServiceModel.Channels.ServiceChannel.EndCall(String action, Object outs, IAsyncResult result)
at System.ServiceModel.Channels.ServiceChannelProxy.TaskCreator.<>c__DisplayClass7_01.<CreateGenericTask>b__0(IAsyncResult asyncResult) at System.Threading.Tasks.TaskFactory1.FromAsyncCoreLogic(IAsyncResult iar, Func2 endFunction, Action1 endAction, Task`1 promise, Boolean requiresSynchronization)
— End of stack trace from previous location where exception was thrown —
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at UiPath.Vision.VisionClient.d__5.MoveNext()
— End of inner ExceptionDetail stack trace —
at System.Activities.Statements.Throw.Execute(CodeActivityContext context)
at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
at System.Activities.ActivityInstance.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)
at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)

Limited experience with OCR but just a quick question… Have you set up the OCR activity properly? ServerURL, ApplicationID, Password, APIkeys, etc.?

yes, in community version works, but i migrated to test enviroment with enterprise version 19.4.4 and i update all package and this activity don´t work

i´m reseach a posible cause and is a proxy or firewall blocking the endpoint

1 Like

“Error while copying content to a stream”

Ya, looks like the issue is due to the content not reaching the OCR service.

Check to see if the provider recommends opening ports?

@ovi @qateam who knows which ports uses the uipath screen OCR service because my company has a stricted control over the ingoing and outgoing ports

@badita